/build/static/layout/Breadcrumb_cap_w.png

Custom Action Method to Call .bat or vbs file

Would any of you veterans show me how to call a .vbs or .bat with a custom action inside installshield before I compile as an MSI?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: Coriolus 16 years ago
Orange Belt
0
I don't use Install Shield, I use WinINSTALL Packager Pro but here are some universal guidelines to help.

1./ After you have your completed batch file or VBS script copy it to your package's directory.

- Create a new component off the MAIN package feature
- Give the source directory and target directory of teh file in question

Source = the place you copied the file to
Target = the place on the target system you want the MSI to copy the file to and execute it.

- Give the Key path to the file

2./ Once that is completed you can create a Custom Action that will execute the Batch/VBS. I am sure Install Shield must have a wizard for this. Give your custom action a name you will recognize.

3./ Add your custom action to the Execute Sequence, this must be just before the 'InstallFinalize' action so choose your sequence number correctly as to not create any conflicts.

Also add 'NOT Installed' as a condition of the custom action so it runs only on installation. Unless you want it to run on both install or uninstall.

That should do it. Good luck!
Posted by: nrkres 15 years ago
Senior Yellow Belt
0
hi

I am using WInInstall. Please suggest how to create custom action for uninstall the old version while installing the new version.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ