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.
LVL 6
ReubenwelshAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ReubenwelshAuthor Commented:
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.
0
n2fcCommented:
Add this to your WISE script:

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

change "%TestDIR%\abc.bat" to YOUR bat file!
0
ReubenwelshAuthor Commented:
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!
0
n2fcCommented:
No... That should do it!  (Don't like simple answers?)...

You MIGHT consider the following:
+ If C:\WINDOWS\SYSTEM32 is already in the path, you could TRY just cmd.exe /c
+ If it is a strong possibilty that the WINDOWS path might be in a different place, consider using the variable %WINDIR% as in:   %WINDIR%\system32\cmd.exe /c "{batfile.bat}"

Other than that, should work for you!

Good luck!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Desktops

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.