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.
Photo

Custom Actions


4 replies to this topic

Martin Dammann

Martin Dammann
  • Members
  • 2 posts

Posted 02 August 2001 - 07:33

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?


Ian Blake

Ian Blake
  • Members
  • 483 posts

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.


Martin Dammann

Martin Dammann
  • Members
  • 2 posts

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.

Joe Fegan

Joe Fegan
  • Members
  • 38 posts

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.

Tom

Tom
  • Members
  • 15 posts

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.