How to invoke a batch file (files with .bat extension) from Wise Script
Updated: 22 May 2010 | 15 comments
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
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.
I tried this command, but wise script is not supporting this command.
use a execute program from destination custom action
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.
No, it's not you......!!
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Thanks. We can invoke batch file using this.
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
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.
It worked!!
Thanks!!
-Dhanya
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.
"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
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
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
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.
Don't be silly Ian
that means I'd have to look in a help file. How old fashioned are you!
Cheers
Phil
Would you like to reply?
Login or Register to post your comment.