Reputation: 951
I have created a WiX MSI installer for my application and would like to be able to manipulate its web.config file during installation as follows:
Disable or comment out an existing element in the web.config file
Enable an existing element that is currently disabled or commented out, in the web.config file
Any tips or advice on how I can achieve this would be greatly appreciated, as my rigorous search on this online has so far yielded no positive results.
Thank you.
Upvotes: 0
Views: 535
Reputation: 1884
If you can avoid needing to comment out and rather just set a value you can use the WiXUtilExtension, here's an example.
Other wise for commenting out you are probably looking at using a transform, I think the WiXUtilExtension approach would be more obvious to the maintenance developer in the future though.
Upvotes: 2