Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinUI 3 - Windows Application Packaging Project (Desktop) #5139

Open
PRZEMPM opened this issue Feb 10, 2025 · 0 comments
Open

WinUI 3 - Windows Application Packaging Project (Desktop) #5139

PRZEMPM opened this issue Feb 10, 2025 · 0 comments
Labels
area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) area-External

Comments

@PRZEMPM
Copy link

PRZEMPM commented Feb 10, 2025

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.

  1. 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).
  2. 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

  1. In InnoSetup, section [Run] type:
    Filename: "powershell.exe"; Parameters: "-NoExit -ExecutionPolicy Bypass -File ""{app}\name_app\Install.ps1"""; StatusMsg: "Installation my app..."; Flags: waituntilterminated;
  2. Compile and run the application.
  3. It will throw an error that the application is already installed and cannot be reinstalled.
  4. Clean in PowerShell as administrator with the option "Allow deployment operations in special profiles" enabled by entering the command Remove-AppxPackage -Package "name_id".
  5. Repeat steps 2 and 3.
  6. 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

@PRZEMPM PRZEMPM added the bug Something isn't working label Feb 10, 2025
@snigdha011997 snigdha011997 transferred this issue from microsoft/microsoft-ui-xaml Feb 12, 2025
@RDMacLachlan RDMacLachlan added area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) area-External and removed bug Something isn't working needs-triage labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Deployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) area-External
Projects
None yet
Development

No branches or pull requests

2 participants