[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-10-06
4
Medium Priority
?
255 Views
Last Modified: 2012-08-14
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.
0
Comment
Question by:Reubenwelsh
  • 2
  • 2
4 Comments
 
LVL 6

Author Comment

by:Reubenwelsh
ID: 36924372
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
 
LVL 20

Expert Comment

by:n2fc
ID: 36924735
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
 
LVL 6

Author Comment

by:Reubenwelsh
ID: 36925088
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
 
LVL 20

Accepted Solution

by:
n2fc earned 2000 total points
ID: 36925164
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Make the most of your online learning experience.
Starting up a Project
Screencast - Getting to Know the Pipeline

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question