
For example, in the Install UI Sequence field, select After SetupInitialization.Īfter building and running the installation, the setup should exit when the custom action is encountered. Schedule the action in one of the sequences.

In the Script Function field, enter the function name ExitSetupFromVBS. In the VBScript Filename field, browse for the file exitsetup.vbs.

Rename the new action icon to (for example) "exitsetup". Right-click the Custom Actions icon and select New VBScript > Stored in the Binary table. Next, define the custom action in Developer's Custom Actions view as follows. To use the custom action, first place its code in a source file called (for example) exitsetup.vbs. Instead, only VBScript custom actions with code stored in a VBS file, whether stored in the Binary table or installed with the product, can define functions that return a specific value.įor example, the following VBScript function returns IDABORT to exit the installation. The main limitation to be aware of is that VBScript actions with code stored directly in the CustomAction table cannot return a specific value. In VBScript code, a function can return IDABORT, with value 3, to exit an installation. If you do that, you can set the function return value just like you would do with any function. If anyone could help me I would appreciate it.Īre you calling a vbscript function from within inside of installshield script? Session.Property("PROPERTY NAME") = "HALLO"Īll that I am trying to do is return a string value from VBScript to InstallShield. Then I tried to assign a value in the VBScript file. StrValue = Session.Property("PROPERTY NAME") MsiSetProperty(ISMSI_HANDL E, "PROPERTYNAME", "its value") It is kinda hard to find some stuff on this site.įrom InstallShield script, set a preoprty value.

I know I am asking an INstallShield question in the Programming section but no section exists for InstallShield (I THINK!!!).
