Version 6.0.1750

I am creating a custom uninstall script which is contained in an SBI file. This in turn is included in my install project.

During the uninstall I want to offer the user the opportunity to visit a special web page. First I check to see if there is currently a connection to the internet. If so, I ask the user permission to launch the browser and go to the web site.

With users permission, using the "Run Program" function, I launch the browser and open the web page.

*** Code Snip **** (Lines May Wrap)
Set Variable % SB PARAM1% to ScriptItem->Check HTTP Connection "http://www.domain.com/index.htm"
If % SB PARAM1% Equals "0" Then
Display Message Box "Body Text" -- "Header Text"
If % SB RETURN% Equals "$IDYES$" Then
*Run Program http://www.domain.com/index.htm (Always Install) [Wait]*
If % SB ERRORCODE% Not Equals "0" Then
Display Message Box "No Internet" -- "No Internet"
End
End
End

If % SB INSTALLERFLAG% Not Equals "1" on Position "$SB SILENTMODEFLAG$" Then
Display Message Box "#UNINST CONFIRM#" -- "#UNINST HEADING#"
Else
**** END SNIP ****

All the code above works perfectly except for one problem. The uninstall script does not wait while I execute the "Run Program" function no matter how I set up the parameters. (Wait, Hide etc.) I have literally tried all combinations. The #UNINST CONFIRM# message box above opens immediately on top of the web browser window and stays on top.

Can anyone tell me what I need to do to get the #UNINST CONFIRM# message box to delay opening until the "Run Program" function has completed?

Thanks a bunch.

--
Regards,

Lee
http://www.cya2day.com