cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
abdou24
Level 2

abort or exit setup in vbscript??

hi,

I'm just a beginner in Installshield.
I'll try to be clear in my explanation:

- I'm trying to display a messagebox in vbscript which warn the user that the installation will upgrade the current version of his product. So, I want to display a Yes\No dialog box, and when he clicks on No I want to abort or exit the installation.
I've seen in some posts that the function abort\ do(exit) exist but in Installscript.
Is there any similar function to exit setup installation in vbscript?

Any idea....:confused:
Labels (1)
0 Kudos
(1) Reply
Christopher_Pai
Level 16

I'm assuming you are doing a Major Upgrade because a Minor Upgrade driven by Setup.exe already has this type of MessageBox.

The first thing to realize is that you don't really even need a custom action at all to do this. Insert a dialog in your UISequence prior to InstallWelcome and condition it to fire only if FindRelatedProducts finds a related product. ( The Action Property as shown in the Upgrades view )

On the Yes button, call EndDialog Return control event. The install welcome dialog will then be shown.

On the No button, call the EndDialog Exit control event. The Install will show a setup abort dialog and quit.
0 Kudos