Terminate Install
Posted: Thu Feb 23, 2006 2:51 am
Hi,
I'm new to InstallAware (but I really like it more and more
). I've made a rather small installscript which runs a VB program at the end of installation. If the user hit cancel in my program I want to do an uninstall.
Everything works perfect except that the installprogram still remains in the Control Panel - Add remove programs. When I click on the "Remove" button (in the control panel) I get a warning that the program already is uninstalled and I am asked if I want to remove it from the list.
This behaviour I want to get rid of.
What I do is really simple:
Run Program $SUPPORTDIR$\\LicenseActivation.exe $SUPPORTDIR$\\License.ini|$LIC_PRODUCT$|$LIC_DATABASE$ (WAIT)
if Variable SUCCESS Equals 1
Install/Remove MSI Package {4C7144F6-FEEE-4977-AB5E-80625A1B9143}[REMOVE=ALL]
Terminate Install
end
Is this the wrong way to do it?
Thanks for the help.
/Nicke
I'm new to InstallAware (but I really like it more and more

Everything works perfect except that the installprogram still remains in the Control Panel - Add remove programs. When I click on the "Remove" button (in the control panel) I get a warning that the program already is uninstalled and I am asked if I want to remove it from the list.
This behaviour I want to get rid of.
What I do is really simple:
Run Program $SUPPORTDIR$\\LicenseActivation.exe $SUPPORTDIR$\\License.ini|$LIC_PRODUCT$|$LIC_DATABASE$ (WAIT)
if Variable SUCCESS Equals 1
Install/Remove MSI Package {4C7144F6-FEEE-4977-AB5E-80625A1B9143}[REMOVE=ALL]
Terminate Install
end
Is this the wrong way to do it?
Thanks for the help.
/Nicke