- Flexera Community
- :
- Columbus
- :
- Columbus Forum
- :
- Add package powershell columbus
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hello.
I create package to install application bundle with cmd powershell but i have an error :
Copy "%_PkgSource%\Server\Setup\Calculator_2020.322.0.0*" TO "C:\temp\"
Begin Script 'PowerShell64'
Add-AppxPackage -path "c:\temp\Calculator_2020.322.0.0_neutral.AppxBundle"
End Script
Delete "c:\temp\Calculator_2020.322.0.0*.*"
If i launch manually it's installed.
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi all
We've successfully tested the package on a Windows 10 2004 H2 x64 machine with minor adaptions to the installation script.
[ServerAdd]
; === Copy the Server files to the target =============================
Copy '%_PkgSource%\Server\Setup\Calculator_2020.322.0.0*' To '%_PkgCache%\Setup\' /sub /changed
[UserAdd]
; === install calculator app ==========================================
Begin Script 'PowerShell64' '' 'PkgCache=%_PkgCache%'
Add-AppxPackage -Path "$PkgCache\Setup\Calculator_2020.322.0.0_neutral.AppxBundle"
End Script
[UserRemove]
; === Remove the app ==============================================
Begin Script 'PowerShell64'
Get-AppXPackage | Where-Object { $_.PackageFullName -like "*RichardWalters.Calculator_2020*" } | Remove-AppXPackage
End Script
Please download the example package attached (Note: Installation sources have been removed. Put them into ..\01.0\Server\Setup)
Regarding the error using the Add-AppxProvisionedPackage command, there were some parameters missing. Basically, beside the installation source a license is needed for distribution. More information can be found here.
For deployment with Columbus, the following snippet can be used (Note: This is untested code. Please refer to the documentation for explanation)
[ServerAdd]
Begin Script 'PowerShell64' '' 'PkgSource=%_PkgSource%'
Add-AppxProvisionedPackage -Online -PackagePath "$PkgSource\Setup\Calculator_2020.322.0.0_neutral.AppxBundle" -LicensePath "$PkgSource\Setup\Calculator_2020.322.0.0_license.xml"
End Script
Robin
This thread has been automatically locked due to inactivity.
To continue the discussion, please start a new thread.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hello
Could you please open a new ticket using the "Get Support" > "Open new case" option in the top menu and attach the "brainware*.log" files of the machine you tried to install the package.
Thanks in advance
Robin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hello,
Running PS under Columbus sometimes behaves unexpectedly. Then I for example try PowerShell instead of PowerShell64. One thing I got accustomed to is to begin every PS with setting execution policy (when running ps1 its basically a must, unless you have signed script with trusted certificate). Also it is beneficial to add some logging so you see what is going on. Try following
Begin Script 'PowerShell64'
Set-ExecutionPolicy Bypass -force
$RetVal = Add-AppxPackage -path "c:\temp\Calculator_2020.322.0.0_neutral.AppxBundle"
Return $RetVal
End Script
Log 'PS finished with %_ReturnValueScript%'
Another thing I noticed, some Appx and alike do not like to be set under SYSTEM. Recently complex package to install Language packs stopped working unattended. Runs well when some1 is logged in. If not, like it does not run. Worked well for a year. Hence you may want to try useradd/clientadd parts.
Best Regards
Michal
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Thanks for you reply Michal
Powershell / Powershell64 must be used on based on the systems architecture. Otherwise it may not work correctly (depending on the commands used).
- Windows x86 -> Powershell
- Windows x64 -> Powershell64
Regarding the AppX installation:
"Add-AppxPackage" installs the package under the current user. Which must be done in the [UserAdd] of the package.
To install it for all users, the command "Add-AppxProvisionedPackage" must be used instead and must be run in the [ServerAdd].
Robin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I add this :
[ServerAdd]
; === Check Prerequisites =============================================
Copy '%_PkgSource%\Server\Setup\Calculator_2020.322.0.0*' TO 'C:\it\'
Begin Script 'PowerShell64'
Add-AppxProvisionedPackage -FolderPath "c:\it\"
End Script
[UserAdd]
; = WRAPPER ONLY = Install software in msi mode =======================
Begin Script 'PowerShell64'
Add-AppxPackage -path "c:\it\Calculator_2020.322.0.0_neutral.AppxBundle"
End Script
Error :
Le jeu de paramètres ne peut pas être résolu.
I test only to serverAdd with Add-AppxProvisionedPackage -FolderPath or -path or packagepath with "c:\it\Calculator_2020.322.0.0_neutral.AppxBundle" but error folderpath or path.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hello
Could you please provide us the package for testing?
Thanks
Robin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I send package to ticket support
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Robin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi all
We've successfully tested the package on a Windows 10 2004 H2 x64 machine with minor adaptions to the installation script.
[ServerAdd]
; === Copy the Server files to the target =============================
Copy '%_PkgSource%\Server\Setup\Calculator_2020.322.0.0*' To '%_PkgCache%\Setup\' /sub /changed
[UserAdd]
; === install calculator app ==========================================
Begin Script 'PowerShell64' '' 'PkgCache=%_PkgCache%'
Add-AppxPackage -Path "$PkgCache\Setup\Calculator_2020.322.0.0_neutral.AppxBundle"
End Script
[UserRemove]
; === Remove the app ==============================================
Begin Script 'PowerShell64'
Get-AppXPackage | Where-Object { $_.PackageFullName -like "*RichardWalters.Calculator_2020*" } | Remove-AppXPackage
End Script
Please download the example package attached (Note: Installation sources have been removed. Put them into ..\01.0\Server\Setup)
Regarding the error using the Add-AppxProvisionedPackage command, there were some parameters missing. Basically, beside the installation source a license is needed for distribution. More information can be found here.
For deployment with Columbus, the following snippet can be used (Note: This is untested code. Please refer to the documentation for explanation)
[ServerAdd]
Begin Script 'PowerShell64' '' 'PkgSource=%_PkgSource%'
Add-AppxProvisionedPackage -Online -PackagePath "$PkgSource\Setup\Calculator_2020.322.0.0_neutral.AppxBundle" -LicensePath "$PkgSource\Setup\Calculator_2020.322.0.0_license.xml"
End Script
Robin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
The package for computer it's ok without error.
For user_add :
2020-11-19T14:12:45.763+01:00 - C7User: Start Script: C:\Windows\Cache\302200_Calculatrice_MUI_01_0\package.wms Section: [UserAdd]
2020-11-19T14:12:47.478+01:00 - C7User: [ERROR] - Failed to execute PowerShell script: Impossible de trouver le chemin d'accès « C:\Windows\Cache\302200_Calculatrice_MUI_01_0\Setup\Calculator_2020.322.0.0_neutral.AppxBundle », car il n'existe pas. (1)
2020-11-19T14:12:47.479+01:00 - C7User: Impossible de trouver le chemin d'accès « C:\Windows\Cache\302200_Calculatrice_MUI_01_0\Setup\Calculator_2020.322.0.0_neutral.AppxBundle »; car il n'existe pas.
2020-11-19T14:12:47.479+01:00 - C7User: Line: 21 Source: End Script
To Pc :
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I had to remove the installation source files from the package due to the attachment size limit. Please add the file "Calculator_2020.322.0.0_neutral.AppxBundle" again to "...\01.0\Server\Setup"
Thanks
Robin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
The installation ready but now, an another error :
2020-11-19T15:32:18.532+01:00 - C7User: Start Script: C:\Windows\Cache\302200_Calculatrice_MUI_01_0\package.wms Section: [UserAdd]
2020-11-19T15:32:22.502+01:00 - C7User: [ERROR] - Failed to execute PowerShell script: Échec du déploiement avec HRESULT : 0x80073CF3, Échec des mises à jour, de la dépendance ou de la validation des conflits du package.; Windows ne peut pas installer le package 61908RichardWalters.Calculator_2020.322.0.0_x64__486nvj664v5b0, car ce package dépend d’une infrastructure qui n’a pas pu être trouvée. Indiquez l’infrastructure « Microsoft.UI.Xaml.2.3 » publiée par « CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US », avec une architecture neutre ou de processeur x64 et la version minimale 2.32002.13001.0, en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.3 » in; Windows ne peut pas installer le package 61908RichardWalters.Calculator_2020.322.0.0_x64__486nvj664v5b0, car ce package dépend d’une infrastructure qui n’a pas pu être trouvée. Indiquez l’infrastructure « Microsoft.UI.Xaml.2.3 » publiée par « CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US », avec une architecture neutre ou de processeur x64 et la version minimale 2.32002.13001.0, en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.3 » installées actuellement sont : {}; REMARQUE : pour obtenir des informations supplémentaires, recherchez [ActivityId] b9b4b913-b7ad-0000-ed8d-b6b9adb7d601 dans le journal des événements ou utilisez la ligne de commande Get-AppPackageLog -ActivityID b9b4b913-b7ad-0000-ed8d-b6b9adb7d601; (1)
2020-11-19T15:32:22.504+01:00 - C7User: Échec du déploiement avec HRESULT : 0x80073CF3; Échec des mises à jour; de la dépendance ou de la validation des conflits du package.; Windows ne peut pas installer le package 61908RichardWalters.Calculator_2020.322.0.0_x64__486nvj664v5b0; car ce package dépend d’une infrastructure qui n’a pas pu être trouvée. Indiquez l’infrastructure « Microsoft.UI.Xaml.2.3 » publiée par « CN=Microsoft Corporation; O=Microsoft Corporation; L=Redmond; S=Washington; C=US »; avec une architecture neutre ou de processeur x64 et la version minimale 2.32002.13001.0; en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.3 » in; Windows ne peut pas installer le package 61908RichardWalters.Calculator_2020.322.0.0_x64__486nvj664v5b0; car ce package dépend d’une infrastructure qui n’a pas pu être trouvée. Indiquez l’infrastructure « Microsoft.UI.Xaml.2.3 » publiée par « CN=Microsoft Corporation; O=Microsoft Corporation; L=Redmond; S=Washington; C=US »; avec une architecture neutre ou de processeur x64 et la version minimale 2.32002.13001.0; en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.3 » installées actuellement sont : {}; REMARQUE : pour obtenir des informations supplémentaires; recherchez [ActivityId] b9b4b913-b7ad-0000-ed8d-b6b9adb7d601 dans le journal des événements ou utilisez la ligne de commande Get-AppPackageLog -ActivityID b9b4b913-b7ad-0000-ed8d-b6b9adb7d601;
2020-11-19T15:32:22.504+01:00 - C7User: Line: 21 Source: End Script
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I test 2 other PC it's done... only this for the moment.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
The package cannot be installed because a dependency is missing.
Échec du déploiement avec HRESULT : 0x80073CF3;
Échec des mises à jour; de la dépendance ou de la validation des conflits du package.;
Windows ne peut pas installer le package 61908RichardWalters.Calculator_2020.322.0.0_x64__486nvj664v5b0;
car ce package dépend d’une infrastructure qui n’a pas pu être trouvée. Indiquez l’infrastructure « Microsoft.UI.Xaml.2.3 » publiée par « CN=Microsoft Corporation; O=Microsoft Corporation; L=Redmond; S=Washington; C=US »;
avec une architecture neutre ou de processeur x64 et la version minimale 2.32002.13001.0; en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.3 » in;
Windows ne peut pas installer le package 61908RichardWalters.Calculator_2020.322.0.0_x64__486nvj664v5b0; car ce package dépend d’une infrastructure qui n’a pas pu être trouvée. Indiquez l’infrastructure « Microsoft.UI.Xaml.2.3 » publiée par « CN=Microsoft Corporation; O=Microsoft Corporation; L=Redmond; S=Washington; C=US »;
avec une architecture neutre ou de processeur x64 et la version minimale 2.32002.13001.0; en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.3 » installées actuellement sont : {};
REMARQUE : pour obtenir des informations supplémentaires; recherchez [ActivityId] b9b4b913-b7ad-0000-ed8d-b6b9adb7d601 dans le journal des événements ou utilisez la ligne de commande Get-AppPackageLog -ActivityID b9b4b913-b7ad-0000-ed8d-b6b9adb7d601;
I've been testing the package with the latest version of Windows 10 2004 H2 (19042.630). What Version / Edition are you testing on?
Could you please run the following command to check if the required package is installed?
Get-AppXPackage | Where-Object { $_.PackageFullName -like "Microsoft.UI.Xaml*"} | Select Name
Thanks
Robin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Last package received to Michael :
2020-11-23T15:55:27.797+01:00 - C7User: Start Script: C:\Windows\Cache\302200_Calculatrice_MUI_01_0\package.wms Section: [UserAdd]
2020-11-23T15:55:31.164+01:00 - C7User: [ERROR] - Failed to execute PowerShell script: Échec du déploiement avec HRESULT : 0x80073CF3, Échec des mises à jour, de la dépendance ou de la validation des conflits du package.; Windows ne peut pas installer le package 61908RichardWalters.Calculator_2020.322.0.0_x64__486nvj664v5b0, car ce package dépend d’une infrastructure qui n’a pas pu être trouvée. Indiquez l’infrastructure « Microsoft.UI.Xaml.2.3 » publiée par « CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US », avec une architecture neutre ou de processeur x64 et la version minimale 2.32002.13001.0, en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.3 » in; Windows ne peut pas installer le package 61908RichardWalters.Calculator_2020.322.0.0_x64__486nvj664v5b0, car ce package dépend d’une infrastructure qui n’a pas pu être trouvée. Indiquez l’infrastructure « Microsoft.UI.Xaml.2.3 » publiée par « CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US », avec une architecture neutre ou de processeur x64 et la version minimale 2.32002.13001.0, en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.3 » installées actuellement sont : {}; REMARQUE : pour obtenir des informations supplémentaires, recherchez [ActivityId] 5ab2726d-be84-0000-f533-b35a84bed601 dans le journal des événements ou utilisez la ligne de commande Get-AppPackageLog -ActivityID 5ab2726d-be84-0000-f533-b35a84bed601; (1)
2020-11-23T15:55:31.165+01:00 - C7User: Échec du déploiement avec HRESULT : 0x80073CF3; Échec des mises à jour; de la dépendance ou de la validation des conflits du package.; Windows ne peut pas installer le package 61908RichardWalters.Calculator_2020.322.0.0_x64__486nvj664v5b0; car ce package dépend d’une infrastructure qui n’a pas pu être trouvée. Indiquez l’infrastructure « Microsoft.UI.Xaml.2.3 » publiée par « CN=Microsoft Corporation; O=Microsoft Corporation; L=Redmond; S=Washington; C=US »; avec une architecture neutre ou de processeur x64 et la version minimale 2.32002.13001.0; en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.3 » in; Windows ne peut pas installer le package 61908RichardWalters.Calculator_2020.322.0.0_x64__486nvj664v5b0; car ce package dépend d’une infrastructure qui n’a pas pu être trouvée. Indiquez l’infrastructure « Microsoft.UI.Xaml.2.3 » publiée par « CN=Microsoft Corporation; O=Microsoft Corporation; L=Redmond; S=Washington; C=US »; avec une architecture neutre ou de processeur x64 et la version minimale 2.32002.13001.0; en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.3 » installées actuellement sont : {}; REMARQUE : pour obtenir des informations supplémentaires; recherchez [ActivityId] 5ab2726d-be84-0000-f533-b35a84bed601 dans le journal des événements ou utilisez la ligne de commande Get-AppPackageLog -ActivityID 5ab2726d-be84-0000-f533-b35a84bed601;
2020-11-23T15:55:31.165+01:00 - C7User: Line: 21 Source: End Script
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Reviewing the AppXManifest.xml shows some dependencies which needs to be installed as well.
You'll need to get an offline license from the Microsoft for business store. Afterwards you should be able to download the dependencies manually
https://msendpointmgr.com/2016/04/05/deploy-offline-licensed-universal-apps-offline-from-windows-store-for-business-with-configmgr/
Put the additional *.appx files into the Source folder ...\Setup\Dependencies and the license into "...\Setup". Run the installation with the following command:
Add-AppxPackage -Path "$PkgCache\Setup\Calculator_2020.322.0.0_neutral.AppxBundle" -DependencyPath "$PkgCache\Setup\Dependencies" -LicensePath "$PkgCache\Setup\License.xml"
Robin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sorry it's complicated. I find solution to replace the calculator original windows because the store is bloqued... I need to find solution to package for more applications store but not time.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hello,
What Robin is saying is correct. But Windows changes, dependencies too, apps get updates. If you need apps from Store, you need Store. Or a person which will be updating apps, dependencies, follow and download new ones at least on a monthly basis. MS Store does this automatically.
This is the way.
Best Regards
Michal
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
That's correct. If you want to deploy this app with Columbus, you'll need to get the dependencies from the store manually as described.
Another way would be to sign up for Microsoft store for Business/Education and create your private store. This allows you to deploy only the apps which you have defined.
Robin
