Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Pre-Install process for deployment
 

Pre-Install process for deployment

I have a VS 2008 solution with deployment project, its final result is a .msi package.

I need to include an extra process into this package as pre-install process. This new process must start before the normal installation method, and the normal installation method should not be start, until it exits.


Is it possible ?


Andrew_ww  Wednesday, August 20, 2008 4:33 PM

Hi Andrew,

Based on my understanding, what you want to do is to do some preprocess before installing the MSI package, right?

I am not sure which process you want to do, but Visual Studio allows you to add Launch Condition to the setup project. This means some conditions that must be met in order to successfully run an installation. For example, you might want to check for a specific version of an operating system �if a user attempts to install on a system that does not meet the condition, the installation will not occur. For more information, please check the following page:

You also can use the Orca tool to add custom action and set the custom action’s sequence to make this custom action run before the installation executes.

Another choice is that you can create your application to do the process. And start the installation after the process complete.

Let me know if this helps, if not, could you please clarify what you mean by 'extra process'?

Best regards.
Rong-Chun Zhang

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Rong-Chun Zhang  Tuesday, August 26, 2008 11:12 AM

Hi Andrew,

Based on my understanding, what you want to do is to do some preprocess before installing the MSI package, right?

I am not sure which process you want to do, but Visual Studio allows you to add Launch Condition to the setup project. This means some conditions that must be met in order to successfully run an installation. For example, you might want to check for a specific version of an operating system �if a user attempts to install on a system that does not meet the condition, the installation will not occur. For more information, please check the following page:

You also can use the Orca tool to add custom action and set the custom action’s sequence to make this custom action run before the installation executes.

Another choice is that you can create your application to do the process. And start the installation after the process complete.

Let me know if this helps, if not, could you please clarify what you mean by 'extra process'?

Best regards.
Rong-Chun Zhang

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Rong-Chun Zhang  Tuesday, August 26, 2008 11:12 AM
Hi Rong-Chun Zhang,

Thank you for tipps. I will try to clarify my needs. There are two examples for a simple if condition (C language):

if (my_variable==3) { something block to execute }
if (my_function()==3) { something block to execute }

The first if checks a static variable as a condition. The second if will execute a function as a condition, and this is what i need.

Launch condition will be great, if it offers something way to execute a function or application included into my solution. Probably i had miss it, but not found syntax for this in Microsoft's documentation (your first link).

Yes, Orca offer something way to do it, but i will be happy, if VS's Deployment project offers it too.

--------------------------------------------------------------------------------------------------------------------------

Edited: it seems, Orca is the only way.



Andrew_ww  Monday, September 08, 2008 10:18 AM

You can use google to search for other answers

Custom Search

More Threads

• Trying to updated to next version via MSBuild but app doesn't know to look for it
• IsFileGroupDownloaded bug?
• ClickOnce download issue
• ClickOnce deployment with Obfuscated files issue
• What is the recommended method for disconnected desktop applications pulling...
• installer requires .Net framework for a native application
• Deploying dll with application question
• Setup & Deployment template not in Visual C# Express 2005
• Publish unsigned clickonce using msbuild
• COM+ service / MTS