/build/static/layout/Breadcrumb_cap_w.png

how to run a bat file at the end of an msi install

does anyone know how to run a bat file at the end of an msi install.
or convert it to an exe so that it will run
or get a custom action to run a cmd line prompt

0 Comments   [ + ] Show comments

Answers (8)

Posted by: jackmcall 20 years ago
Senior Yellow Belt
0
bat files are unsupported by msi's
to get around this launch the cmd.exe in the custom action.i brought it in through the binary table and launched that .then in the target type /c and whatever commands u want to execute.
eg /c copy c:\bruce.txt c:\temp
Posted by: CleverITS 20 years ago
Senior Yellow Belt
0
Hi Jack
If possible try to use VBScript Custom Action instead of Batchfiles which You can't really control during runtime

In VBScript You can add errorhandling, populate with MSI Properties, return errorcodes...
and last but not least You can do more stuff than just with .bat (btw: .cmd is a slightliy different (and better) for >Win2K systems as beeing different processed;-) )

If you MUST use your bat files the way You described is the right and only one...
cu

Wolfgang Zerzawy
CleverITS
www.cleverits.com
Posted by: MSIMaker 20 years ago
2nd Degree Black Belt
0
Actually you can create a custom action to execute program from installation and call a batch file to run.

I know its unsupported but if you type in the batch file path and name it will run.
Posted by: jackmcall 20 years ago
Senior Yellow Belt
0
I did try and get the bat file to run by putting in its path and name but i was unsucessful
thank you for your help
the com.exe and /c worked fine after some modification
the main problem was changing the "In-script Execution" to "Commit Execution" or "Deferred Execution" depending on which command i was attempting to call

VB scripts dont work on sp2 for XP so they are no longer an option for it
Posted by: nvdpraveen 20 years ago
Orange Belt
0
Hi Jack,
> VB scripts dont work on sp2 for XP so they are no longer an option for it
Is this problem only for you or is it a problem with XP SP2?
Posted by: oofemioo 20 years ago
Blue Belt
0
VBScripts don't run in XP SP2.

Please let's have more information?
Posted by: Jim101 20 years ago
Orange Belt
0
Could you enlighten us here;

Are you saying VBS does not run on WinXP SP2??

or

Are yousaying that Wise 5.1 does not handle calling VBS on WinXP SP2??

I can confirm that the VBS files run manually work fine on SP2, however the same VBS file fails when included within an MSI??

Cheers
Posted by: oofemioo 20 years ago
Blue Belt
0
Is this a problem wih Wise 5.1 or SP2?

Is there someone who's used the Wise 5.1 on XP SP1? Kindly provide more information.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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