Why does [ProgramFilesFolder] resolve to C:\Users\[USERNAME]\AppData\Local\Programs\... in advanced installer with Per Machine selected? #8885
-
Package.wxs:
Folders.wxs:
Components.wxs:
The binary is installed correctly according to the selected location in the Install scope dialog, but for some reason the resolved path for "Per Machine" installation is: If I create a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This link is for wix v3 but it notes a property called WixUISupportPerUser that you can use to prevent a user from setting the install context to per-user: <WixVariable Id="WixUISupportPerUser" Value="0" /> |
Beta Was this translation helpful? Give feedback.
-
What is your ALLUSERS property set to when it comes time to call the CustomAction I suspect it might be something around this area that's causing some problem So you'll want to look at the log file around this, and confirm that in both PerMachine and PerUser all of the values are matching expectations. |
Beta Was this translation helpful? Give feedback.
What is your ALLUSERS property set to when it comes time to call the CustomAction
WixSetPerMachineFolder
or where theAPPLICATIONFOLDER
property is set?I suspect it might be something around this area that's causing some problem
https://github.com/wixtoolset/wix/blob/523c66a62a619e6aa9f30070173ea33edfb5e328/src/ext/UI/wixlib/WixUI_Advanced.wxs#L101-L109
So you'll want to look at the log file around this, and confirm that in both PerMachine and PerUser all of the values are matching expectations.