Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Update database (http://forums.winamp.com/showthread.php?t=255200)

Gust2002 10th September 2006 13:50

Update database
 
Hi! I need help!
This is my first NSIS project and I can’t update my FireBird’s database with NSIS. I have the script file (SQL) in the installer package, copy them in some directory and after try to execute some commands with FireBird utilites:
Section "MainSection" SEC01
…
SetOutPath "$EXEDIR\$UPDATE_NAME"
SetOverwrite ifnewer
File "<my temp directory>\Update007.sql"
ExecWait '"$FIREBIRD_DIR_bin\gfix" -shut -force 1 DATABASE_1_5_1.gdb -user SYSDBA -pas masterkey'
…
Other update commands
…
SectionEnd

As result "update commands" don’t work. If turn off "SetOutPath…" string all commands work properly…

kichik 15th September 2006 07:52

Provide the full path to DATABASE_1_5_1.gdb. Using SetOutPath change the working directory, so the path where this database will be looked for is changed as well. If you provide a full path, it will always look in the correct path.

Gust2002 15th September 2006 11:36

Thank you very much.


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.