How to exclude component from self-repair? - Vadim Rapp

28-Feb-08 05:38:53
Hello,

One of the registry values installed by the installation is supposed to be
deleted by the application on the first launch.

How to prevent Installer from trying to repair the product when it's started
next time from advertised shortcut? it sees that the registry value is not
there, and repairs.

thanks,
Vadim Rapp
button
 
 

How to exclude component from self-repair? - Anthony [MVP]

29-Feb-08 03:30:10
It repairs based on key files. Perhaps the registry key is also a key file.
You can make something else in that component a key file and it should not
repair,
Anthony,
http://www.airdesk.co.uk
button
 

How to exclude component from self-repair? - mik

02-Mar-08 10:08:45
You can't. An advertised shortcut causes Windows Installer to check that the feature pointed to by the shortcut is suitably installed, and to do that it checks the feature's components, and the components of all parent features. If any of the key paths are missing or out of date, it will invoke the repair to fix them.

So, your options are:

* Don't do this (recommended)
* Move the registry value into a different component, not the key path
* Make the component part of a different feature
* Stop using advertised shortcuts

If you have data that needs to be modified by the application after install, I would strongly recommend making the application write it on first run. Only write registry values in the installer which are necessary for the application's first run.

--
Mike Dimmick

---Original Message---

One of the registry values installed by the installation is supposed to be
deleted by the application on the first launch.

How to prevent Installer from trying to repair the product when it's started
next time from advertised shortcut? it sees that the registry value is not
there, and repairs.
button
 

How to exclude component from self-repair? - Phil Wilson

05-Mar-08 01:07:36
If you want to exclude a specific component from repair use a null entry in
the ComponentId as described here:

http://msdn2.microsoft.com/en-us/library/aa368007.aspx
--
Phil Wilson
[MVP Windows Installer]
button
 
Creating MST based on Commandline parameters