How to create an installation and deployment project that can run any number of times on a machine without the need for removal?

How to create an installation and deployment project that can be executed any number of times on a machine without the need for removal?

I created an installer to install the WCF service in the IIS directory. It does more than just xcopy, it asks users questions about the proper configuration of web.config.

The problem is that it can only be installed once on the server without asking for removal.

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

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

I cannot figure out how to configure the installer for this.

+3
source share
3 answers

Well, it works for me, I decided that I would answer.

  • I downloaded the Orca window installer editing tool (part of the Windows SDK)
  • In the InstallExecuteSequence table, the following values ​​have changed to 0

    RegisterUser RegisterProduct PublishFeatures PublishProduct

This should allow the installer to work again and again without removal.

+3
source

, , 1 - 1 . 2 , , , , .

0

, 3 :

  •   
  • , ​​ , .    , DefaultLocation " "    . - ;   [ProgramFilesFolder]\[]\[ProductName]\[ProductVersion].  
  • , ProductCode ,    . - ...  
  • Version . Visual Studio ,    ProductCode; .
0

Source: https://habr.com/ru/post/1703608/


All Articles