Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

How to invoke a batch file (files with .bat extension) from Wise Script

Updated: 22 May 2010 | 15 comments
Madhu Samuel's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

How can I invoke a batch file(files with .bat extension) from the Wise Installation Sequence?



Thanks in Advance,

Samuel

discussion Filed Under:

Comments

EdT's picture
01
Dec
2008
0 Votes 0
Login to vote

call [SystemFolder]CMD.EXE /C <full path to BAT file>

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Madhu Samuel's picture
01
Dec
2008
0 Votes 0
Login to vote

I tried this command, but wise script is not supporting this command.

AngelD's picture
01
Dec
2008
0 Votes 0
Login to vote

use a execute program from destination custom action

VBScab's picture
01
Dec
2008
2 Votes +2
Login to vote

Is it me? Is it?



In WiseScript Editor:

- select Execute Program

- in '.EXE Path', enter: %SYS32%\CMD.EXE

- in 'Command line', enter: /C <full path to BAT file>

where '<full path to BAT file>' is, er, the full path to and the name of the batch file you want to call

- check the check-box 'Wait for Program to Exit'.

- click OK

- save the WSE

- compile it

- run the resulting EXE



I have never used WiseScript, BTW, but I can work out, by a tortuous route of deduction, what to enter into a dialog box.

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.

EdT's picture
01
Dec
2008
0 Votes 0
Login to vote

No, it's not you......!!

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Madhu Samuel's picture
02
Dec
2008
0 Votes 0
Login to vote

Thanks. We can invoke batch file using this.

Dhanya's picture
22
Jul
2009
1 Vote +1
Login to vote

WISE standard edition

Hi...

I am trying to build a silent installer for a tool which is launched using a batch file.
How do I execute it using the SetupCapture? I get the following error when i try to execute it after selecting the batch file in .EXE name: "Windows cannot find '.\java\win32\bin\javaw'"

I have added this path to the classpath as well. Can only files of type .exe be run using SetupCapture?

TIA
Dhanya

EdT's picture
22
Jul
2009
2 Votes +2
Login to vote

Setup Capture

You could configure setup capture to launch cmd.exe in the system32 folder, and then you can continue to run your batch file install from the command prompt thus opened. Just make sure you don't close the command window until you have finished the app install. This way you can run any sort of install.

On a separate matter, the reference to java files in your error message means that your application is installing, or expecting to find installed, a version of the Sun Java runtime. As any packager will tell you, it is madness to try and capture a Java install as part of another software install.
Find out which java runtime is required by your application, install it on your test workstation, THEN perform the capture of the application you are trying to package. Then ensure that your deployment first checks and if necessary installs the Java runtime, then installs the application.

That way, you also avoid the consequence of an uninstall of your application which would remove the Java runtime as well, and potentially prevent other Java dependent apps from running.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Dhanya's picture
22
Jul
2009
1 Vote +1
Login to vote

It worked!!

Thanks!!

-Dhanya

EdT's picture
23
Jul
2009
1 Vote +1
Login to vote

If your issue is solved then...

... Please press the "Mark as Solution" link on the answer that helped you

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

philbenson's picture
23
Jul
2009
2 Votes +2
Login to vote

"Mark as Solution"....

WTF???

Yes, I helped myself by asking someone to provided me with the answer! that's the ideal solution. 25 for me!

Cheers
Phil

Eshwar's picture
23
Jul
2009
3 Votes +3
Login to vote

Ed,I can see on Symantec

Ed,
I can see on Symantec Connect that the person who is asking for a solution,and the person who is providing a soltuion are one and the same. In some cases people are posting some dumb questions and marking their comment as SOLUTON and getting points.

I'm tired of asking people to MARK AS SOLUTION. I guess Symantec has to come up with a SOLUTION for this.

Thanks,
Eshwar

ohzone's picture
23
Jul
2009
2 Votes +2
Login to vote

When you see an incorrectly

When you see an incorrectly marked solution - it happens, I know - send me a message and I can make a change. Marking your own comment as a solution doesn't earn any points though... WHEW! The TA's do a great job answering questions and and keeping an eye on things and even though I look into the forums every day I appreciate a heads up when things need to be looked into. Remember, you can always PM an Admin!

Thanks!
Cheryl

Endpoint Management,
Endpoint Virtualization
Community Manager
www.twitter.com/EMnV_symc
Need Altiris help? IRC chat #Altiris

EdT's picture
24
Jul
2009
0 Votes 0
Login to vote

Err - can you not figure it out from the thread

Hi Cheryl,

I would hope that this thread is sufficiently self explanatory to not require us to send you a message about it !

 

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

philbenson's picture
23
Jul
2009
0 Votes 0
Login to vote

Don't be silly Ian

that means I'd have to look in a help file. How old fashioned are you!

Cheers
Phil