Retrieving environment variable values at install time with the UI disabled #1702
Unanswered
stephen-quinn-gallagher-com
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You have multiple event that you can use. All of them are nothing else but custom actions that are wrapped into more convenient C# events. See here. ManagedProject.UILoaded is an event that it fired when UI is loaded so it's not fired when you deliberately disable UI ( Thus you may want to use other events, e.g. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am integrating the use of WixSharp generated msi's in our product installer. The msi might need to install a service with a custom account and I would like to make a password available to the msi.
A possible solution is to use a command line parameter. This works but does make the password available to a snooper so I have been investigating setting an environment variable to the password and running some code to retrieve the password from the environment and setting an installer property.
This works just fine when the the code is invoked in an event handler triggered by the ManagedProject.UILoaded event.
However, when I invoke msiexec and pass the /qn parameter, the environment variable is not to code triggered by the ManagedProject,Load event.
Is there a mechanism which allows me to get this working?
Beta Was this translation helpful? Give feedback.
All reactions