0
votes

We have installer generator as part of build process that generate wix files and then build it to create installer. I can customize installation by specifying a wix file and a xpath that tell where to include the file that will customize setup.

It generate install directory structure automatically and i want to use a include file to rename INSTALLDIR name inside by include file. How do i do that. Define a CustomAction? and if yes then how and where should i define it. It should override the default so when installer run and user is given option to choose directory the default path should be the one that i overridden and not the one that is by default generated by our build process.

1

1 Answers

0
votes

Have you tried using WixUI_InstallDir (adding <UIRef Id="WixUI_InstallDir"/> to your installer code and a reference to WixUIExtension)? Should be quite simple to add to your installer, alternatively you can edit the existing dialogues you have (if you use them) to add a new control but that's a bit more work.

Check out http://wix.sourceforge.net/manual-wix2/WixUI_dialog_library.htm