Link to home
Start Free TrialLog in
Avatar of Reubenwelsh
Reubenwelsh

asked on

How can i get an MSI to call a BAT file when installation complete?

Hi,

I never really do any packeting but we got a small app we need to send out, and to register the application we need to run a bat file.

How can i get Wise8 to run a BAT when installation is complete? I know wise can execute a VBS but im terrible with VBscripts so i havnt really got a chance rewriting this.
Avatar of Reubenwelsh
Reubenwelsh

ASKER

To clearify: The installation completes without any problems in my test environment, but i need to run this BAT files manualy to register the application every time, I would like to skip this part.
Avatar of n2fc
Add this to your WISE script:

(example):
C:\WINDOWS\System32\cmd.exe /c "%TestDIR%\abc.bat"

change "%TestDIR%\abc.bat" to YOUR bat file!
I dont need anything else in the wise script? I thought i would need a load of headers etc like you do in VBS...
This is why i hate when our packeting guy goes on holiday :)...

Thanks ill try it out tomorrow and get back to you!
ASKER CERTIFIED SOLUTION
Avatar of n2fc
n2fc
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial