Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Installer has problems with batch file (http://forums.winamp.com/showthread.php?t=270046)

gephcott 23rd April 2007 20:06

Installer has problems with batch file
 
Hi,

I am trying to run a bat file that looks like this from the installer.

java sjsql org.h2.Driver jdbc:h2:tcp://localhost/Integrity sa "" Integrity.sql

while being run from the installer it gives the error that is can't find the sjsql driver, even though it is contained in the same directory as the bat file. When the bad file is run by itself it works perfectly. I updated the classpath EV during the installation and before i call the bat file, is this the problem? If so is there anyway around it?

Thanks for your time,
Jeff Wolcott

Afrow UK 23rd April 2007 21:46

Make sure you set the correct working directory first with SetOutPath.

Stu

gephcott 24th April 2007 13:05

I did that and the I still have the same problem

kichik 24th April 2007 13:15

How did you update the class path? Did you also update the environment block of the installer?

gephcott 24th April 2007 13:27

I updated the class path through a bat file run before the one i am having problems with, so i guess i didn't update the installer. How do I do this?

gephcott 24th April 2007 13:29

never mind i followed the link, thanks for your help!

kichik 24th April 2007 13:30

With the code from the page I linked to in my last reply.

http://nsis.sourceforge.net/Setting_...taller_Process


All times are GMT. The time now is 04:11.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.