PSADT 4.1.6 APPX / MSIX - better idea?
The only disadvantage is that the execution action is not visible in the log.
I only see my Write-ADTLogEntry
[Install] :: Commandline: Add-AppxPackage -AppInstaller C:\Windows\IMECache\793c1434-2269-4557-a4f2-289d45c8a7e3_1\Files\Geberit.ProPlanner.appinstaller
Do you perhaps have a better idea?
Maybe I want too much control again.
my solution
# Install
# https://learn.microsoft.com/en-us/windows/msix/app-installer/install-update-app-installer
# Update: winget upgrade Microsoft.AppInstaller
# pure Microsoft Function
$MyAppxVersion=(Get-AppxPackage Microsoft.DesktopAppInstaller).Version
Write-ADTLogEntry -Message "Meine Microsoft.DesktopAppInstaller Version $MyAppxVersion"
$MySource=$($adtSession.DirFiles)+'\Geberit.ProPlanner.appinstaller'
Write-ADTLogEntry -Message "Commandline: Add-AppxPackage -AppInstaller $MySource"
Add-AppxPackage -AppInstaller $MySource
# remove
$MyPackage=(Get-AppxPackage -Name "Geberit.ProPlanner").Name
[version]$MyVersion=(Get-AppxPackage -Name "Geberit.ProPlanner").Version
$MyPackageinst=(Get-AppxPackage -Name "Geberit.ProPlanner").InstallLocation
Write-ADTLogEntry -Message "Installiertes APP: $MyPackage"
Write-ADTLogEntry -Message "Installiertes Version: $MyVersion"
Write-ADTLogEntry -Message "Installierter Pfad: $MyPackageinst"
Write-ADTLogEntry -Message "Command Remove: Get-AppxPackage `"Geberit.ProPlanner`" | Remove-AppxPackage"
Get-AppxPackage "Geberit.ProPlanner" | Remove-AppxPackage
I still need to download and configure version 4.1.7.