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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 11/17/2004 by: jackmcall
Senior Yellow Belt

Please log in to comment
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
Answered 11/18/2004 by: CleverITS
Senior Yellow Belt

Please log in to comment
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.
Answered 11/19/2004 by: MSIMaker
Second Degree Black Belt

Please log in to comment
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
Answered 11/22/2004 by: jackmcall
Senior Yellow Belt

Please log in to comment
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?
Answered 11/25/2004 by: nvdpraveen
Orange Belt

Please log in to comment
0
VBScripts don't run in XP SP2.

Please let's have more information?
Answered 11/25/2004 by: oofemioo
Blue Belt

Please log in to comment
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
Answered 11/25/2004 by: Jim101
Orange Belt

Please log in to comment
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.
Answered 11/25/2004 by: oofemioo
Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity