/build/static/layout/Breadcrumb_cap_w.png

Turn Off self Healing

Is there any way to turn of self healing on an MSI? I have developed an MSI that gets stuck in self healing hell. I have gone back and fixed it a few times now but other self healing issues come up. I am done with trying to track down what is going wrong with it now and just want to turn off self healing. I have tried using the public property DISABLEADVTSHORTCUTS=1 from the command line when I install it but that only seems to stop self healing when the app is started.

Any ideas?

Thanks

0 Comments   [ + ] Show comments

Answers (8)

Posted by: 786_ak 11 years ago
Third Degree Green Belt
0

I tried disabling the shortcut property and removed the "Set key file" but the self healing shortcut doesn't stop self healing and I really need to stop this.

Any feedback will be greatly appreciated.

Thanks,
AK 

Posted by: ARCater 20 years ago
Senior Yellow Belt
0
The other thing I could do is clear all of the key files in the MSI. The problem there is that this a pretty big project and i am not sure how to clear key files other than one at a time. I am using Install shield 9.
Posted by: ab2cv 20 years ago
Orange Senior Belt
0
I have never used InstallShield before, so apologies if my copmments do not make sense.

The two ways (that I am aware of) to turn off advertising (self healing) are:-

1. Disable the entry point - this will be the shortcut that launches the app. If you can change the target of the shortcut from a feature to a file then this will disable advertising for this shortcut. Do this for all advertised shortcuts that are to be used.
2. The second method you have mentioned already. Remove all of the keypaths for the components. The quickest way might be to load the MSI in ORCA, goto the component table and delete all of the keypaths from there.

Method 1 will be much quicker if you can figure out how to do it (I use WinINSTALL so can opnly explain how to do it in that - someone else may know for InstallShield).

Alan
Posted by: ARCater 20 years ago
Senior Yellow Belt
0
Thanks, I have already disabled advertised shortcuts using DISABLEADVTSHORTCUTS=1. As it is right now, it does not self heal when the user launches the app, it starts a self heal when they run a report within it. Probably some file is changing and I could track it down but I have been doing this now a few times after it has been tested and released into a production environment.[:@] This app renames and deletes its own exe's !!!

I'll take a look at orca , thanks.

On a side note , since M$ has a switch to shut down advertised shortcuts , I would think they would have a switch to kill self healing but I have not found this anywhere.
Posted by: ab2cv 20 years ago
Orange Senior Belt
0
That's actually quite a useful tip about the DISABLEADVTSHORTCUTS property I didn't know about - might test that one out for myself. I assume you can just define this either in the Property table or on the msiexec command line(?)

Sounds like you need to delete the keypaths for those exe files that are being modified.

Alan
Posted by: dbowe 20 years ago
Orange Belt
0
If it keeps self healing then its broken.
Check event manager for the reason why, then fix your package.
Turning of self healing negates the reason for having done your job in the first place imo.
Posted by: ab2cv 20 years ago
Orange Senior Belt
0
You're absolutely right dbowe.

However, there are still certain situations where it would be nice to be able to turn it off. For example, with the issue I have with nested MSI installs. Self-healing fails to work correctly for an MSI that was installed as the custom action of another - therefore as a result of this limitation, I am not able to take full advantage of MSI self healing.

Even without the benefits of self healing, MSI packages will still cleanly rollback during an installation failure and uninstall themselves more cleanly than any setup.exe so there are still benefits to MSI packaging, even without the advertising.

(not to mention better version control and automated removal of previous versions of s/w during upgrades)

Alan
Posted by: ARCater 20 years ago
Senior Yellow Belt
0
I agree, I would normally try to track down the issue using regmon, or filemon but this app is just geting old. It renames and deletes its own EXE's.


Yes can use DISABLEADVTSHORTCUTS from the command line or the property table.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ