cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
josephine
Level 5

Is there a way to turn off auto-repair?

If one of the installed dlls is missing, the auto-repair feature is triggered.
Is there a way to turn off this feature?
Thanks.
Labels (1)
0 Kudos
(1) Reply
Reureu
Level 10

Hi,

You can disable auto-repair after installation on a target machine by following this procedure:

  • Identify the product code of the application you have installed (For example, our application's product code is 4FE58D04-55DE-4C70-BAB0-EA3B47BB5DC8)
  • Open regedit
  • Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products and identify the key which corresponds to the compact product code of your application (for example 40D85EF4ED5507C4AB0BAEB374BBD58C).
  • Rename this key, for instance by adding an underscore in front of it: _40D85EF4ED5507C4AB0BAEB374BBD58C
  • Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features and identify the key which corresponds to the compact product code of your application (for example 40D85EF4ED5507C4AB0BAEB374BBD58C)
  • Rename this key, for instance by adding an underscore in front of it: _40D85EF4ED5507C4AB0BAEB374BBD58C


That's it! The auto-repair feature is now disabled.
To enable it again, rename the 2 registry keys above to their original names.

Now, I haven't found a way to disable this auto-repair feature in my MSI package. If anybody can propose a solution applicable to a Basic MSI project, that would be cool.

Regards
0 Kudos