Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce and conditional deployments
 

ClickOnce and conditional deployments

Hey all,

I'm trying to figure out, if possible, to conditionally deply/publish parts of a clickonce app. Specifically, the configuration file (app.config). The scenario is there are two web server environments: Development and Production. Each with it's own configuration settings.

I want to use an MSI to install the smart client to these web servers and conditionally install the correct configuration file.

I know how to do the conditional install in the MSI. How can I get the security checks tonot complain since everything is 'signed'?

----- Ed

EdLost  Wednesday, February 27, 2008 4:48 PM
Yup, ClickOnce is lightweight and is built for certian needs, but it can in no way handle all that msi can. Im sorry this hasnt workedout for you.

Dan Rigsby  Thursday, February 28, 2008 9:24 PM
I dont think you can do this out of the box, but you coudl do it in the application itself. It could pull a config file from some other source after install. The other option is to setup multiple deploy folders with different app.config files.

Dan Rigsby  Wednesday, February 27, 2008 10:17 PM

We do the 'other source' idea today. Actually, we pull config data based on an environment variable or query string (DEV, PROD, etc). That means all configs for all environments get deployed everywhere (works great for xcopy but xcopy has problems/weakneses).

I'm can use MSI conditional deployment options in non-click once apps but click once uses a totally different model.

Oh well.

EdLost  Thursday, February 28, 2008 4:04 PM
Yup, ClickOnce is lightweight and is built for certian needs, but it can in no way handle all that msi can. Im sorry this hasnt workedout for you.

Dan Rigsby  Thursday, February 28, 2008 9:24 PM

You can use google to search for other answers

Custom Search

More Threads

• Migrating from JApplet to WHAT ?
• Modify assemblies before MSI packaging
• number to words
• ClickOnce: Do you want to install this application?
• Publishing with Visual Studio 2008 Express gives errors when I publish with prerequisites from install location
• Remove "Repair" and "Change" buttons from "Add or remove programs" with projects installed using a "web setup project"
• Publishing problems with prerequisites
• Installer runs after reboot - VS2005
• Problem with multiple ClickOnce versions of same executable installed on a machine
• Repair doesnot work