Execute batch file
Hi,
I'm new to InstallJammer, and I appreciate
your help, and forgiveness if I'm asking newbie-questions.
Even though it seems to be both powerful
and easy to use, I've been struggling with a few things in my effort to
set up a package for Windows XP. I've looked in the help guides, but I
miss one thing: examples.
In my installation process I wish to
start two win services. Perhaps there is a better way to do it, but I've
set up a batch file for installing/registering and starting each of them.
I run the batch files by adding the "Execute External Program"
action with the following Advanced Properties:
Execute as Root:
No
Execute in Concole:
No
Program Command Line:
"<%InstallDir%>/some/folder/first_service_install.bat"
Wait for Program to Finish Running:
Yes
Working Directory:
"<%InstallDir%>/some/folder/"
I had to experiment a little (building
and testing) to find out that the slashes should be forward, unix style.
An example in the help file would've been very useful to me.
When the batch file tries to call an
.exe file which is located in the same folder as the batch file itself,
it says that "'xxx.exe' is not recognized as an internal or external
command". I think the reason for this error is that the batch file
is not run with the "Working Directory" as the actual current
directory?
I've managed to work around this by
adding the working dir as a parameter in the Program Command Line property,
and in the batch file doing a CD to the %~f1 folder, but I believe there
should be an easier way to achive it? All tips are welcome. :)
I've also tried to use the Add Windows
Registry Key, but didn't manage to get it working - perhaps because I did
not know what to put in the Key, Name and Root Key properties, where to
put the slashes, and which way... Again, I think an example in the Users
Guide would be very helpful.
A last question so far: Can I delete
a folder and all it's subfolders and files in the uninstall process? The
application generates different log files etc in it's own folder structure
that I would like to delete during uninstall - do I have to name every
one of them in the Delete File action?
regards,
--
atle weibell
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Installjammer-devel mailing list
Installjammer-devel@...
https://lists.sourceforge.net/lists/listinfo/installjammer-devel