Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

How to show a Warning messge before setup starts?

1 reply to this topic


  • Full Members
  • 11 posts

Posted 04 May 2006 - 22:23


How can a warning message box be shown before the pre-requisites are run for an install? Basically I need to warn the user that the application needs a certain service pack to function normally but then continue with the install. I tried an Error Custom action but it kills the setup after the message box. Any help greatly appreciated.



  • Full Members
  • 11 posts

Posted 05 May 2006 - 21:28

This can be achieved by creating a vbscript custom action. The function to be called can be specified. One can pass values to the script by using session properties. Also the return value of the function will help the installer decide weather to continue the install or not... sample script below

Option Explicit
Dim language, retval
On Error Resume Next
Function MyFUNCTION()
retval= 1
language= Session.Property("LANGUAGE")
if (MsgBox (language, vbOKCancel, "My Product" ) = vbCancel) then
retval= 5
end if
MyFUNCTION = retval
End Function