开发者

Windows Service - Multiple Setup projects required?

开发者 https://www.devze.com 2023-03-05 00:51 出处:网络
I have a windows service having different config files for dev, test and live environments. For each of these, I have created separate setup projects like \'ServiceDevSetup\', 开发者_StackOverflow社区

I have a windows service having different config files for dev, test and live environments. For each of these, I have created separate setup projects like 'ServiceDevSetup', 开发者_StackOverflow社区'ServiceTestSetup' and 'ServiceLiveSetup' (with their pre/post build events setup).

I was wondering if it is really required to have these separate projects or can I do with just one setup project?

Is there any way I can have just one setup project and then at the build time, I get prompt for which config file to use?

Please guide.

Thank you!


Why don't you build it all into a single .msi and then arrange that the bootstrapper passes a parameter to the installer to specify which of the configs you desire. That would give a nice decoupling and make maintenance easier.

0

精彩评论

暂无评论...
验证码 换一张
取 消