gephcott
23rd April 2007 21:06 UTC
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 22:46 UTC
Make sure you set the correct working directory first with SetOutPath.
Stu
gephcott
24th April 2007 14:05 UTC
I did that and the I still have the same problem
kichik
24th April 2007 14:15 UTC
How did you update the class path? Did you also update the environment block of the installer?
gephcott
24th April 2007 14:27 UTC
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 14:29 UTC
never mind i followed the link, thanks for your help!
kichik
24th April 2007 14:30 UTC
With the code from the page I linked to in my last reply.
http://nsis.sourceforge.net/Setting_...taller_Process