I\'ve created a setup project in Visual Studio 2008. I would like the installed location DefaultLocation never to be modified by the user during installation, probably by skippi
Yes, you can do it in Orca, manually, or you can write a post-processing script that uses the WindowsInstaller.Installer COM object to doctor-up the MSI.
The MSI I have generated from Visual Studio present this on install:
On the Folder form, there's a Browse...
button that allows the user to select the folder to install into. Sounds like you just want to disable THAT particular action, without changing the flow of the install otherwise.
If this is the original:
...you want to just lose the Browse button. But to avoid confusion, you will need to also alter the text on that dialog as well. Confirm the install folder instead of Select the install folder. And you need to modify the text that tells people to click Browse. And then probably move the Disk Cost button up, just for aesthetic purposes.
These are the changes:
And the result you want is this:
To do that manually in Orca, you need only to make a few changes in the Control table:
To automate these changes, you can write a Javascript module, as described in this answer, but using the changes described above, instead.