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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 12/13/2004 by: ARCater
Senior Yellow Belt

Please log in to comment
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
Answered 12/14/2004 by: ab2cv
Orange Senior Belt

Please log in to comment
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.
Answered 12/14/2004 by: ARCater
Senior Yellow Belt

Please log in to comment
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
Answered 12/14/2004 by: ab2cv
Orange Senior Belt

Please log in to comment
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.
Answered 12/14/2004 by: dbowe
Orange Belt

Please log in to comment
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
Answered 12/15/2004 by: ab2cv
Orange Senior Belt

Please log in to comment
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.
Answered 12/20/2004 by: ARCater
Senior Yellow Belt

Please log in to comment
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 

Answered 06/25/2013 by: 786_ak
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity