You'll want to make sure that your CA is scheduled during
InstallExecuteSequence and is "deferred". Then, set the CustomActionData for
that CA, passing it your ENV property that way.
However, since you're updating an XML file, then the UtilExtension has XML
elements (XmlConfig) to do that, so you
In the bundle.exe define a string Variable element and use
bal:Overridable='yes'. Then in MsiPackage use a MsiProperty element to pass
the value of the variable into the msi. At that point follow the examples
that you found to pass the msi property to your CA, depending on the type of
CA.
VarN
I am in a need to pass the value from command line to custom action.The
custom action should get the value from command line and modify one
file(app.config) during installation of EXE.I have the below code in custom
action
if (Context.Parameters["ENV"] == "test") //Test environment
I am in a need to pass the value from command line to custom action.The
custom action should get the value from command line and modify one
file(app.config) during installation of EXE.I have the below code in custom
action
if (Context.Parameters["ENV"] == "test") //Test environment
4 matches
Mail list logo