Click here to Skip to main content
15,891,763 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,
   i have created One Setup using Windows installer XML(WIX)  (actually using Dark.exe and i have created the Wix source file from .msi file and now given the new paths to all the things) and it is successfully installed in program files.

    Now After installation i want to change the Connections string of sqlserver in Config file in the program file folder(which is project installed location). i tried that by modifying the Config file connection string in programfiles folder but after saving the running setup .exe it showing error like " the source has been changed you need to restart the installation"(it only takes the connection string path as at the time of installation).

    i have the requirement to change the Connection string in program file based on the Client location string. what will be the problem for that , is am i have to change any properties to change the connection string(dynamically) after installation.


Thnak you
Posted

1 solution

In WIX, you can use the element 'util:XMLFile'.
More here: http://wix.tramontana.co.hu/tutorial/com-expression-syntax-miscellanea/xml[^]

Hope this helps,
Pablo.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900