rprussell
Posts: 38
Joined: Tue Feb 24, 2009 5:34 pm

Need to gracefully exit the installation...

Hi, all -

I'm performing a search at initialization to set flags if SQL Express (or SQL Server 2008) is installed, based on registry entries.

Later in the dialog sequence I check these flags and use them to display a custom dialog which offers to open Microsoft's SQL Express download/installation web page.

This is all working just fine.

What I would like to do then is either
  • a) exit the installer without an error message, or
  • b) open the "Special Dialog" called "UserExit" which displays "[ProductName] setup was interrupted. Your system has not been modified. To install this program at a later time, please run the installation again" and presents a "Finish" button to exit the installer.
But I cannot figure out how to move the "UserExit" dialog from the "Special Dialogs" section to the "First Time Install" section. I can't drag it, I can't use "add new dialog" or "add dialog in sequence"

I have also tried creating a .VBS script file which assigns the code 1602 to the UserExit property (and returns 1602) - this jumps to "an error has occurred," which isn't the message I want to show.

And finally, adding a "EndDialog" action with parameter "Exit" onto the button does not exit the installer, it continues to the next dialog.

All I want is a method for gracefully exiting the installer without an error message that I can trigger from a published button event.

Thoughts?

Rob
rprussell
Posts: 38
Joined: Tue Feb 24, 2009 5:34 pm

Re: Need to gracefully exit the installation...

Okay - well, as tends to happen, as soon as I post the public help message, I got it figured out :lol:

I ended up creating a new "Finish" button for this screen, and whereas putting "DoAction/EndDialog/Exit" on the original built-in dialog button didn't end the installer, putting it on a new custom button (also labeled "Finish") did have the expected result.

So I hid the original button and moved it to one side, and put the new button in its place.

All is well.

Return to “Common Problems”