PDA

View Full Version : Installer has problems with batch file


gephcott
23rd April 2007, 20:06
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 (http://nsis.sourceforge.net/Setting_Environment_Variables_to_Active_Installer_Process)?

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_Environment_Variables_to_Active_Installer_Process