We need help with using VBscript to create a custom action. The action will be used to search the registry for a previous version of software, and if not found, return a "value" to InstallShield, to gracefully exit the installation. Therefore can one send an "exit" code to InstallShield from a VBScript action and if so, how?
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.
Custom Actions
Started by
Martin Dammann
, Aug 02 2001 07:33
4 replies to this topic
Posted 02 August 2001 - 09:10
There are functions tables built into windows installer to do this task.
See AppSearch and RegLocator Table for legacy installs.
See Upgrade Table for windows installer installations.
Posted 02 August 2001 - 09:41
Thank you. However we are evaluating IS Express 3.5 to do patches, using custom actions-vbscript, not full version upgrades. We don't want to upgrade to installer 2, as Express 3.5 really meets all our requirements, except for the patching feature.
Posted 03 August 2001 - 10:58
You might find some useful info in the Windows Installer help topic "Return Values of JScript and VBScript Custom Actions" or the more generic help on custom action type 22.
Posted 10 August 2001 - 19:58
For the exit code, assuming you're using Windows Installer (MSI files) just set a property...
Property("MyRegSearch") = 1
Then you can use that property elsewhere in the setup as a condition or whatever else you want to do with it.