PerUserOrMachine will not do "Program Files" directory for all users #7289
Unanswered
Captnwalker1
asked this question in
Questions
Replies: 1 comment 5 replies
-
-v-
FWIW, WixUI_Advanced predates dual-purpose packages so doesn't support them. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to implement a dual-scope package with WiX4, using the new
scope="PerUserOrMachine"
. However every time I would select the PerMachine option it would still give me a%LOCALAPPDATA%
path e.x.:C:\Users\USERNAME\AppData\Local\Programs\PerUserOrMachine-Example
See my example project with workaround. Just add scope to Package tag and it still breaks even with the workaround.
https://github.com/Captnwalker1/Wix4-PerUser-OR-PerMachine-Example
Bug
Which version of WiX are you building with?
4.0.0-rc.4+dea44a7d
Which version of Visual Studio are you building with (if any)?
Microsoft Visual Studio Enterprise 2022 Version 17.5.0
Which version of the WiX Toolset Visual Studio Extension are you building with (if any)?
HeatWave for VS2022 0.9.5
Which version of .NET are you building with?
7.0.201
If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?
Version 10.0.19044 Build 19044
Describe the problem and the steps to reproduce it.
Add Scope="perUserOrPerMachine" to wix project, if you use [ProgramFilesFolder] it will then only try to go within %localappdata%.
See Example Project with workaround for InstallScopeDlg: https://github.com/Captnwalker1/Wix4-PerUser-OR-PerMachine-Example
Describe the behavior you expected and how it differed from the actual behavior.
Expecting a path with %localappdata% when picking perUser install, but not when selecting perMachine install. Should be like C:\Program Files\ or C:\Program Files(x86)\
Beta Was this translation helpful? Give feedback.
All reactions