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.
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
FOLLOW US
Get the latest news in Application Packaging