Open
Description
Describe the bug
The entire process that I described, I performed on a regular account and checked in PowerShell as a regular user and as an administrator. I created the installer in InnoSetup, although the Add-AppDevPackage.ps1 script works, it does not work if I run it indirectly through PowerShell or CMD.
- I noticed that the Add-AppDevPackage.ps1 script generated by the Packaging Project option does not allow the application to be installed if the "Allow deployment operations in special profiles" option in the "Local Group Policy Editor" is not enabled. When the entire installation process is successful, the application icon does not appear in the start menu, even though the application exists in the location "C:\Program Files\WindowsApps" to which I do not have access, because I do not have an administrator account (higher level, I have a regular one).
- When uninstalling an application performed in WinUI 3, the simplest method is Start Menu -> Our application -> Uninstall. Complete cleaning of the application from the system occurs when we remove it using the command Remove-AppxPackage -Package "name_id"
Steps to reproduce the bug
- In InnoSetup, section [Run] type:
Filename: "powershell.exe"; Parameters: "-NoExit -ExecutionPolicy Bypass -File ""{app}\name_app\Install.ps1"""; StatusMsg: "Installation my app..."; Flags: waituntilterminated;
- Compile and run the application.
- It will throw an error that the application is already installed and cannot be reinstalled.
- Clean in PowerShell as administrator with the option "Allow deployment operations in special profiles" enabled by entering the command Remove-AppxPackage -Package "name_id".
- Repeat steps 2 and 3.
- The application installs, but there is no icon. During uninstallation, it also exists in Get-AppxPackage -AllUsers | Where-Object { $_.Name -eq "name_ID" }
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
Windows 10 (21H2): Build 19044
Additional context
No response