Updating .config file from an Custom Installer Class Action

后端 未结 5 1280
春和景丽
春和景丽 2021-02-04 20:03

I\'ve tried updating my application\'s .config file during installer (via a .NET Installer Class Action). But, I can\'t seem to get ConfigurationManager to lis

5条回答
  •  猫巷女王i
    2021-02-04 20:40

    One thing to try is moving it from install to Commit to ensure that the file has been written first before trying to access it. Alternatively you could use the custom action to write your own file and just alter your config file to point at the alternative xml file.

    I worked on a Sharepoint product install where I dug into all of this and I will admit it is very tedious to get working correctly. I was creating config and batch files on the fly based on install parameters.

提交回复
热议问题