PDA

View Full Version : Not delete registry key if installation aborts



yonitr
11-10-2004, 09:27 AM
Hi,
Here's my question:
In case the installation succeed, I want to create a key "install" = "success" in the registry. In case that the installation fails or aborted by the user, I need this value to be set to "failure". (the problem is in case of failure: it deletes everything from the registry)
I tried to use JScript: WScript.Shell, but Norton Anti Virus alerts that this action is not safe. I can not use InstallScript since the user will not install the Script engine.
What can I do? Maybe something with disable rollback, though I don't know where and how.

10x

MarcoHeineck
11-10-2004, 03:21 PM
how about two exe custom actions,
one of type rollback another of type commit.

Something like "regedit.exe /s myAppInstalled.reg" should do the trick.

yonitr
11-14-2004, 05:28 AM
Hi,
First thanks a lot.
Do you mean to create custom action that launches an exe and that exe will be the regedit.exe? now I can add the "/s" in the Target, but where do I add the "myAppInstalled.reg"?
Should the custom actions be installed in binary table?
By what do you mean with "one of type rollback another of type commit"?

I understood the GREAT idea, but not the way to do it...
10x