I regularly develop .net applications and use deployment projects to install them on different servers.
I have 3 different environments:
- Dev
- QA (2 servers)
- Prod (3 servers)
I want to create a custom actions project in which I can do some configuration when installing the application. Some tasks such as:
- make sure debug is set to false
- pick up the necessary config files based on the environment - eg. qa use the qa config etc.
And some more based on the environment.
I want this as automated as possible to speed up deployments. I have looked in to creating custom actions and dont see an issue with this. I have reached a stumbling blocker though:
How does the installer know what server (dev, qa etc) I am installing the application to? Can it look at the server and know based on this or do I input it during setup?