PDA

View Full Version : Custom action using Vbscript abort install?



pdidow
11-10-2006, 01:53 PM
I am using a custom action written in vbscript. I call a function called ContinueInstall()


Function ContinueInstall()
if bContinueInstall=1 then
ContinueInstall()=1
else
ContinueInstall()=2

end if
end Function

My intention is for the install to abort if ContinueInstall()=2.....
or is where I would put an installshield error code? I looked at the documentation but Im still a little confused over this one as my install seems to continue regardless of what I have set ContinueInstall equal to.

TsungH
11-10-2006, 08:57 PM
If you have not, please read up on Exiting an MSI Installation from a Custom Action (http://www.installshield.com/news/newsletter/0308-articles/msi.asp) by Robert Dickau.