Msi installer to run twice

I have a program that installs via msi. MSI was created using the VS2008 deployment project and has a special action to run the program after installation is complete.

After running msi, I can simply update the version number, generate a new product code, and msi can be run again on the same PC. However, I want to be able to run msi a second time on the same PC (without using msi repair) and reinstall the software (even if nothing has changed). Is it possible?

+3
source share
4 answers

You can do this by removing the RegisterEvent Action, RegisterUser action, PublishProduct and PublishFeatures from the InstallExecuteSequence table. By deleting these standard actions, the application will not be registered in the MSI system database, and you can start and restart the installation again and again, as if it were the first installation.

MSDN:
Adding and Removing an Application and Lack of Tracing in the Registry

+3
source

EDIT: I read it wrong.

Oneshot

0
source

, . ProductCode ProductVersion, , , . .

- - ARP, , , , , MSI .

I have done this in the past using a clean InstallScript installation. Once the configuration is complete, I delete the registry entries associated with ARP, so another installation will act as a new installation.

0
source

use instance conversion for the second installation http://msdn.microsoft.com/en-us/library/aa367797(VS.85).aspx

0
source

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


All Articles