How to change configuration file when clickonce is deployed?

I have an application deployed via clickonce, but how can I change the configuration file on the deployment server ?. I mean, after testing the product, it should be deployed to our production server, but do you need to change some configuration parameters to consume production resources ?. I heard that we should use MageUI.exe, but still not sure.

I appreciate your help.

thanks

+6
clickonce
source share
2 answers

Yes, the best way to do this is probably MageUI. Just open your manifests using MageUI, click Save , and it should ask you to cancel the manifests.

When signing the manifest, you have two options. You can use a self-test or purchase a certificate. Self-signed certificates are easy to use, but when the application is installed, the publisher will display as Unknown . If you buy a certificate, use these instructions to create the files necessary for signing ClickOnce manifests - http://www.softinsight.com/bnoyes/CommentView.aspx?guid=78d107d1-3937-4d8d-81d9-73cb6ae18eee .

+4
source share

codeConcussion is correct - we do this all the time for our configuration changes. It should be remembered that if you are managing versions, so that the user receives only the new version of smartclient, when the server has a new version, you need to arbitrarily increase the version in the manifest file to get the configuration of the change for the user to download again.

This, of course, can be dangerous depending on how you are deploying the application version. For us, we use a time-based algorithm, reinstall the version as the date, followed by HHMM (for example, 2008.9.23.1317). This is done in our build / deployment scripts, so we can pretty much guarantee that we can change the version to 2008.9.23.1318 in the manifest without worrying about another build using the same version.

Anyway, something to think about.

+2
source share

All Articles