Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

How can I launch my batchfiles without reboot?

4 replies to this topic


  • Members
  • 2 posts

Posted 16 December 2002 - 10:16

I am the first time using Installshield.Now,I want to run a batchfile  created by the script without reboot the system.And the batchfile was put in the <TARGETDIR>.
I try the function such as LaunchAppAndWait(),LaunchApp(), but both of them did not work.
While I Write the script like this:
the setup ignored it .
little helpness,very much thank!

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 16 December 2002 - 17:09

LauchAppAndWait needs the complete path, so instead pass <TARGETDIR> ^ "mybatch.bat" as your first parameter.
user posted image


  • Members
  • 2 posts

Posted 17 December 2002 - 02:29

thank you very much!
I wrote the fully path as you mentioned,and then it works!
You know I am so happy because it is my first program.
Thank you again!

best regards


  • Members
  • 6 posts

Posted 15 December 2004 - 11:57

Hi Husky

can you plzzz.. tell me how you gave parameters in LauchAppAndWait.
How you defined path your bat file

I tried various combination like

TARGETDIR = "c:/Program Files/Apache Software Foundation/jakarta-tomcat-5.0.28/bin";

szPathTomcat = TARGETDIR ^ "/service.bat install service";
if (LongPathToQuote (szPathTomcat, TRUE) < 0) then
WriteLogMsg("First call to LongPathToQuote failed.");
szPathTomcat = "/C" + szPathTomcat;
_LaunchAppEx("cmd.exe" ,szPathTomcat, WAIT,SW_HIDE,-1,nExit);

cmd.exe gave because I using windows NT 2000 and trying to install tomcat5 as NT service using .bat file

I will be very thankful if help me out as this first program of mine.


  • Full Members
  • 407 posts

Posted 15 December 2004 - 13:48

crossposted, so see http://forum.install...showtopic=11526

Edited by Perotin, 15 December 2004 - 13:49.

Gruß / regards