[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Installer class gets given default values on second execution

Asked by JimR123b in Visual Studio, Deployment Software for Development, C# Programming Language

Tags: Visual Studio 2005, deployment

We have a Deployment project which uses a Custom Action to call our own Installer class in an executable.

We pass some values from the User Interface of the Deployment project to the executable via the Custom Action.

The User Interface includes a wizard step with text boxes, into which, amongst others is a textbox in which the user can change our default database server name "(local)" to anything they like, such as "myserver".

When we run the installer, we enter some new values into the user interface (e.g. "myserver"), and when the Installer class gets executed in our executable, the value "myserver" gets passed across correctly in the Context.Parameters["dbservername"] to our Installer class.

So far, everything works great.

The problem comes if we then go and change something that was installed, such as delete a folder which our deployment MSI created and populated with files. If we do this, and then run our main program from one of the shortcuts created by the deployment, we see a "please wait while Windows configures..." progress dialog, and the Installer class in our executable gets called again.

The problem is, when this happens, the values passed to the Installer class, such as through Context.Parameters["dbservername"], are the default values (i.e. "(local)"), instead of "myserver" as we want.

Why does it do this, and how can we make it pass the new values, as entered into the setup wizard?
[+][-]09/11/09 02:49 AM, ID: 25307879Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/02/09 08:38 AM, ID: 25478935Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/06/09 04:06 AM, ID: 25503683Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/06/09 04:18 AM, ID: 25503741Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/10/09 10:14 AM, ID: 25542916Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/06/09 04:40 AM, ID: 25758581Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/06/09 04:42 AM, ID: 25758592Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625