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
            {               
                authEndPoint =
"http://192.168.168.4/api/user_authentication/";;                        
            } 
            else if (Context.Parameters["ENV"] == " ") //Production
environment
            {               
                authEndPoint =
"https://livesiteurl/api/user_authentication/";;                        
            } 

I want to install the exe file like below 

             myapplication.exe env=test

I seen lot of sample to pass the value from command line to msi. How to pass
the value from command line to CA and modify the app.config file.

Thanks  



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Pass-value-from-command-line-to-Custom-action-Burn-tp7598487.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to