Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   nsExec & Vista problem (http://forums.winamp.com/showthread.php?t=306240)

cadsmn 10th May 2009 22:55

nsExec & Vista problem
 
I am fairly new to NSIS and am using an installer script that I have inherited with the application I am supporting. I am trying to make an installer that will work on Vista but am having issues getting nsExec to run my database installer that is part of the application. nsExec is returning "error" and I can't figure out why. I am not having the problem on XP.

Here is my line of code:
nsExec::ExecToLog '"$INSTDIR\${DB_SETUP_DIR}\${DB_SETUP_FILE}" -s -f1"$INSTDIR\${DB_RESPONSE_FILE}" -f2"$INSTDIR\${DB_LOG_FILE}"'

I am able to install the database manually from the command line when logged in as administrator using the same command line switches for the executable so I know that it works.

Any help is appreciated.

Anders 10th May 2009 23:31

you have "requestexecutionlevel admin" in your script?

cadsmn 11th May 2009 00:11

Yes

dbach 13th May 2009 16:13

I had (or still have) the same issue here. I fixed it with an workaround:

Instead of:
nsExec::ExecToLog '"z:\startup\framework\UAC_settings.exe"'
... I now use ...
nsExec::ExecToLog '"$SYSDIR\cmd.exe" /C "z:\startup\framework\UAC_settings.exe"'

Hope this works for you too.


All times are GMT. The time now is 17:25.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.