Replies: 1 comment
-
Also, I need to ask if I keep my Directory to LocalAppDataFolder (any Folder Directory which doesn't required privileges) not allowing user to select the installation path and in case user doesn't have the sufficient space then how can I counter this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the latest version of Wix toolset (version -5), Using the Bootstrapper Application project to chain all my MSI files and
I have Created my own Custom UI using WPF and Allowing the User to Select the Installation Path and that path I will be setting to my Directory. Like this -
now I want to change the scope of my project based on user selected path, If User Select the path which required the ADMIN ACCESS I want to change my scope to perMachine so that UAC prompt will appear which will asked for Admin USERNAME and Password, Otherwise I want to keep the scope to perUser.
I have tried to use the scope as "perUserOrMachine" in my project and Setting value of MSIINSTALLPERUSER to empty or 1 based on the value of property INSTALLSCOPE value which will be update based to user selected install path.
Here is the code where I am updating the value of MSIINSTALLPERUSER :-
But Every time during the installation I can check in my log that the Condition is set to False, so my scope value is never changed.
Is the approach I am using is correct? - If not, then what are the other alternative WIX provide.
Below the Complete file codes -
Bootstrapper - Bundle.wxs File which contains the MSI file name PermanentPackage which have the MSI Property Name INSTALLSCOPE value. Currently I have not decided how will I change the property value based on user selected path, therefore keeping the default value as perMachine.
`
`
Here is the PermanentPackage Product.wxs File -:
`
`
Beta Was this translation helpful? Give feedback.
All reactions