PDA

View Full Version : Auto Heal appears after deleting a file



chuck1
10-17-2003, 08:07 PM
Hi,

Does any one know how to disable the auto heal function in Install Shield 7.xx.

I have an application that was installed using install shield, after the install is complete and an attempt was made to run the application; the install shield started to execute again.


Can any one help me?

Chuck

tsauerbeck
10-20-2003, 06:32 AM
You can't and shouldn't disable it.

If you don't want to put some files under auto-heal control (such as optional configuration files), don't install them in a component but install them with CopyFile() in InstallScript or a Custom Action.

When you install them using InstallScript, call

Disable(LOGGING);

before you copy the files and call

Enable(LOGGING);

when you're done.

oliverb
10-20-2003, 08:28 AM
Disabling self-healing is not recommended b/c since it is a service, you'd be affecting other installed applications.

If you have a component you want to replace or remove from the machine after installation, you should not make the file in question a keyfile within a component. By not setting the file as a keyfile, your installation should not be able to repair itself once the file is replaced, thus achieving the desired result.

Hope this helps.