-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Package Issue]: JohnMacFarlane.Pandoc user install asks for administrator credentials #213403
Comments
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
|
It looks as though this issue was previously (partially?) solved in the scope of #118528, but was re-introduced in an update. |
There`s two different scenarios that need to be considered. Initial Installation: Version Upgrade: Suggested Install Arguments by @apaulfox :
Correct Machine Install Arguments :
Correct User Install Arguments :
My tests with a direct installation through |
Looks like the pandoc installer is created with WiX, but the package config doesn't explicitly place anything in HKLM. There's probably some WiX defaults for ARP entries, but I'm not sure what controls this. |
It looks like the update issue is a known issue with winget, as Windows installer always puts ARP entries in HKLM: microsoft/winget-cli#3011 |
Please confirm these before moving forward
Category of the issue
Installation issue.
Brief description of your issue
When trying to install JohnMacFarlane.Pandoc in user scope, the installer asks for administrator credentials. It appears that the flags aren't specified correctly in the installer.yaml file. It specifies:
- Architecture: x64 Scope: user InstallerUrl: https://github.com/jgm/pandoc/releases/download/3.6.2/pandoc-3.6.2-windows-x86_64.msi InstallerSha256: E9A8036CC298AE3D92105D5909C805A0A069CC988E7938703C4041B3E24A13AA InstallerSwitches: Custom: ALLUSERS=1
I believe it should be:
- Architecture: x64 Scope: user InstallerUrl: https://github.com/jgm/pandoc/releases/download/3.6.2/pandoc-3.6.2-windows-x86_64.msi InstallerSha256: E9A8036CC298AE3D92105D5909C805A0A069CC988E7938703C4041B3E24A13AA InstallerSwitches: Custom: ALLUSERS=2 MSIINSTALLPERUSER=1
These settings appear to work correctly when I run the installer standalone
Steps to reproduce
Install JohnMacFarlane.Pandoc in user scope using:
winget install -e --id JohnMacFarlane.Pandoc --scope User
Actual behavior
User Account Control window pops up asking for an admin user name and password.
Expected behavior
Application installers in user scope without administrator permission.
Environment
Screenshots and Logs
No response
The text was updated successfully, but these errors were encountered: