Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Conditional installation of merge module using windows installer
 

Conditional installation of merge module using windows installer

Hi Friends,

I am trying to create a installer for a .net 2005 solution. Kindly let me know if you have any idea on following issues.

1. Is it possible to add a .net 2005 solution to Installshield Devstudio 9.0 version of installshield. When I add solution to the project, nothing happens.

2.Can we install a merge module conditionally. i.e merge module should be installed only if it is not already installed. I want to do this using windows installer.

Do reply if you have any tip.

Even a small tip might solve my problems.

Thanks

Mirr Rahul

Mirr  Monday, July 23, 2007 6:36 AM

1. I think you just add the files to the InstallShield project. I'm not sure what adding the solution is supposed to do unless there's some DevStudio feature that does something, but I don't really expect DevStudio to be able to figure out what files you want to installwhere just by looking at the solution.

2. When a merge moduleis added to an MSI fileitloses itsidentity andit's just a collection of files. It will use the same overwrite rules asother files in the setup. Basically you just add the merge module. In many circumstances it doesn't matter if the files in the merge modulewere already installedbysome other product because when that other product is uninstalled those files in the merge module will be uninstalled, so in those cases you are required to install using the merge module to keep a copy of the files for your app.

PhilWilson  Monday, July 23, 2007 11:43 PM

Hi Phil,

Thank you for the reply.

This is with reference to reply to my second question.

Thesituation where I need to conditinally install or uninstall a merge module is described here: Suppose I am installing my application with higher version. Under this condition installer will uninstall the application with previous version and install new version of the application.

Here installer will uninstall merge module and then install it again.

For this condition I do not wnat my installer to uninstall the previous version of merge module and then again install it with newer version.

There is one peoperty for merge modules i.e "Exclude". Can we use this property and set its property to "True" or "False" during installation so that it may be installed or not as required.

Thank you again for the reply.

Regards,

Rahul

Mirr  Wednesday, July 25, 2007 9:30 AM

You can use google to search for other answers

Custom Search

More Threads

• Windows 2000 File DownLoad, Open/Save Dialog
• how to migrate db to new release w/o refresh?
• Do web references need to be deployed?
• UnauthorizedAccessException
• J# Deployment Problem
• Contextual launch of applications
• Uninstall fails due to lack of privileges in Vista
• Multiple deployments; Shortcuts get overwritten instead of created for each type of deployment
• ClickZero?
• ClickOnce vs Application Updater Block vs ????