Packetierung Windows 10 App als appxbundle

Post Reply
User avatar
heinrichmi
Posts: 213
Joined: 12. Nov 2009, 10:13
Location: Würzburg
Contact:

Packetierung Windows 10 App als appxbundle

Post by heinrichmi » 17. Mar 2017, 07:39

Hallo,

welche Lösungen habt ihr um Apps als appxbundle silent zu installieren?

Mein Ansatz sieht bisher so aus:

Als erstes kopiere ich die Installationsquellen nochmals lokal auf den Client. Außen vor lasse ich erstmal das die Pfadlängen zu den Quellen, die bei der Installation via Powershell kritisch sein können.

Der Entwicklermodus wurde per GPO aktiviert.
Zertifikat der App ist via GPO verteilt.

Code: Select all

CallHidden ROBOCOPY "%SRC%\Hersteller" "%ProgramFiles%\Hersteller" /MIR
Dann installiere ich in einer Userinstallation (#Set:Install,CLIENT DONTDELETE) über die nun am Client liegenden Powershellskripte und Quellen die App.

Code: Select all

Callhidden powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files\Hersteller\Produkt\%Version%\Install.ps1
Dort wird dann dies ausgeführt:

Code: Select all

Add-AppxPackage "C:\Program Files\Hersteller\Produkt\Version\WinApp.appxbundle"
Wenn ich das alles als CMD Verpacke und aufrufe geht es.
Im Empirum Paket nicht.

Hat jemand eine Lösung oder einen ganz anderen Lösungsansatz.

Lieben Dank.
Michael Heinrich

MIWE Michael Wenz GmbH
Image

Empirum 19.0.0 UEM mit PM, M42-Cloud, PB, VM-Hosting, Citrix Farm Deployment, ServiceStore 9.0.4

User avatar
heinrichmi
Posts: 213
Joined: 12. Nov 2009, 10:13
Location: Würzburg
Contact:

Re: Packetierung Windows 10 App als appxbundle

Post by heinrichmi » 25. Apr 2017, 07:32

Hat jemand nicht einmal eine Idee? :shock:
Michael Heinrich

MIWE Michael Wenz GmbH
Image

Empirum 19.0.0 UEM mit PM, M42-Cloud, PB, VM-Hosting, Citrix Farm Deployment, ServiceStore 9.0.4

f48614
Posts: 225
Joined: 24. Apr 2007, 14:38
Contact:

Re: Packetierung Windows 10 App als appxbundle

Post by f48614 » 25. Apr 2017, 08:25

Hallo Michael,

ich habe dies wie folgt unter Windows 8.1 gelöst

callhidden cmd.exe /c certutil.exe -addstore "Root" "%SRC%\dasZertifikat.cer"
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx /v AllowAllTrustedApps /t REG_DWORD /d 1 /f

[Set:ProductClient]
callhidden powershell -command add-appxpackage """%APP%\appname.appx""" -dependencypath """%APP%\Dependencies\x64\Microsoft.VCLibs.x64.Debug.12.00.appx"""

Gruß
Thomas
Empirum v18.0 + EPE 4.7.1
Testsystem Empirum v18.0

mhans
Posts: 24
Joined: 27. Jan 2016, 16:18
Contact:

Re: Packetierung Windows 10 App als appxbundle

Post by mhans » 12. Apr 2018, 13:28

Hallo,

ich bin aktuell dabei den AirWatch Content Locker als appx für Windows 10 zu paketieren.

Meine setup.inf wird mit nem /S1 /AW ausgeführt, hier der Teil der theoretisch ausgeführt werden soll

Code: Select all

#Set:Product
#Set:Installation, CLIENT
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product

[Set:Product]
Call cmd.exe /c certutil.exe -addstore "Root" "%SRC%\AW.CL.UWP_1.2.11.0_x64_PROD.cer"
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx /v AllowAllTrustedApps /t REG_DWORD /d 1 /f

[Set:Installation]
Call powershell.exe -command add-appxpackage "%SRC%\AW.CL.UWP_1.2.11.0_x64_PROD.appx" -dependencypath "%SRC%\Dependencies\x64\*.appx"
...innerhalb des Dependencypath liegen 3 *.appx Dateien, der Aufruf sollte so dann korrekt sein?
Mein Problem ist, dass er die Set:Installation nicht auszuführen scheint. Es popt alles kurz auf und ist dann weg - die App Content Locker ist aber nicht installiert.

Lasse ich die commands in einer Admin CMD händisch ausführen, dann funktioniert alles. Es scheint also "nur" ein Problem meiner setup.inf zu sein.

Könnte mir jemand einen Tipp geben? :)

Danke, Martin

f48614
Posts: 225
Joined: 24. Apr 2007, 14:38
Contact:

Re: Packetierung Windows 10 App als appxbundle

Post by f48614 » 13. Apr 2018, 12:51

Hallo Martin,

ich sehe nicht das du die Dateien von %SRC% nach %APP% im Machinenteil kopierst.

Im Userteil ist %SRC% das %APP% Verzeichnis, da die Userteil Installation komplett lokal stattfindet !

Gruß
Thomas
Empirum v18.0 + EPE 4.7.1
Testsystem Empirum v18.0

mhans
Posts: 24
Joined: 27. Jan 2016, 16:18
Contact:

Re: Packetierung Windows 10 App als appxbundle

Post by mhans » 26. Apr 2018, 17:31

Danke, werde ich nochmal ausprobieren sobald wir da nochmal ran gehen. Derzeit ist das erstmal auf Eis gelegt :)

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: No registered users and 6 guests