Archive: Problems when I want to execute a file .bat


Problems when I want to execute a file .bat
Hello

I'm trying to run a. Bat file from the installer. I try with Exec, ExecWait and also with a plugin but not working.

Exec "C:\Tomcat_4.1\bin\service.bat"



I want to execute the file service.bat in order that installs the TOMCAT as service

Any ideas?


Do you set the working path correctly?

See following for a related topic:
http://forums.winamp.com/showthread....hreadid=284386

Anyway, why do you need a batch file?
You can install a service by using a plugin like http://nsis.sourceforge.net/NSIS_Simple_Service_Plugin


I think you need a shell to execute a .bat file.
You should Exec "c:\windows\system32\cmd.exe /C C:\Tomcat_4.1\bin\service.bat" or something similar.
Best way should be to look at what is done by 'service.bat' and do the same using nsis and its plugins.
hope this helps
Stefano