Hello,
I am new to Wix and have a question regarding wix and reading settings from an 
xml file when running the installer. I have an xml file with database 
connectionstrings that are different for my test and production environment:
<configuration><prodservername><connectionstring>connstr1</connectionstring></prodservername><testservername><connectionstring>connstr2</connectionstring></testservername></configuration>
   When running installer I want to use the [COMPUTERNAME] variable to find the 
correct connectionstring value from the xml file and use this in a Custom 
Action (e.g. "conntr1" to be used when installing on prod server and "connstr2" 
on test server):<CustomAction Id="MyAction" 

              ExeCommand="cmd.exe /C MyDatabaseInstaller Connstr " 
              Execute="deferred" 
              Return="check" /> 
Please guide me to the best way to do this simple task.
 
BR, Carl
 
 
                                          
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&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