Download Free Installshield Vb Script Custom Action

Active10 years, 9 months ago
  1. Download Free Installshield Vb Script Custom Actions
  2. Vb Script Reference
  3. Installshield Wizard Free Download

First the disclaimer: I'm new to installshield, and vbscript, not new to scripting (go autoit!). I've got a feeling this is a real newb type question, and that I maybe should be posting in the Package Development forum (feel free to slap me if that's the case). Download InstallShield Limited Edition for Microsoft Visual Studio 2010, 2012 and 2013. Select Activate or Register for free copy of InstallShield and click Next. Enter your serial number. Schedule a custom action to run at precisely the right moment in your installation.

Download Free Installshield Vb Script Custom Actions

  • Executing a script file from a Windows Installer Custom Action. Ask Question 5. VDProj Installation project adding custom action script on commit.
  • How to deploy the Installshield MSI without having to run Setup.exe. HOWTO4204 April 6th, 2011 https. Add a condition to the 'OnCheckSilentInstall' custom action in the InstallExecuteSequence that always resolves to False or remove the custom action from the sequence. With downloads, knowledge base articles, documentation, and more.
  • Question about running a vbscript custom action If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

I created a vbscript custom action which checks for some registry keys and alters them if neccessary. In case a key could not be written or something like that, the setup should be aborted.

In order to achieve this, I set a property which I tried to use as a condition for the next step within the execute sequence but this does not work.

I found out that this can not work since the custom action cannot write the property at the time it is executed.

So the question is: How can I achieve an abort of installation depending on what my custom action says? Is there a method to pass an 'abort installation request' to the Installer or something like that?

MarcusMarcus
7141 gold badge17 silver badges35 bronze badges

2 Answers

Vb script reference

Vb Script Reference

If you search on http://community.installshield.com you'll find an article by Robert Dickau entitled 'Exiting an MSI Installation from a Custom Action'. It's at the following link:

Here's the snippet of code he uses as his example:

Good luck.

Installshield Wizard Free Download

KenKen

You should need return 3 from your function for a fail and 0 or 1 for success.

Here is a msdn article on the topic : http://msdn.microsoft.com/en-us/library/aa371254(VS.85).aspx

Make sure you put your script in a function.

WebReferenceDownload free installshield vbscript custom action figuresWeb
1,1422 gold badges18 silver badges35 bronze badges

Not the answer you're looking for? Browse other questions tagged vbscriptwindows-installerinstallshield or ask your own question.