R – How to create a Setup And Deployment project that can run any number of times on a machine without requiring an uninstall

installationservicewcfwindows-installer

How do I create a Setup And Deployment project that can run any number of times on a machine without requiring an uninstall?

I've created an installer to install a WCF service to an IIS directory. It does more than just xcopy, it asks the users questions to correctly setup web.config.

The problem is when it can only be installed once per server without requesting an uninstall.

"Another version of this product is already installed…."

Typically the service will have 10-15 separate instances per server (each instance pointing most likely to a separate database, or a different security context)

I can't figure out how to set up the installer to do this.

Best Answer

Ok, I've got this working, I figured I'd answer it.

  1. I downloaded the Orca windows installer editing tool (Part of the Windows SDK)
  2. In the InstallExecuteSequence table, changed the following values to 0

    RegisterUser RegisterProduct PublishFeatures PublishProduct

This should allow the installer to run over and over without uninstalling.

Related Topic