Archive: nsExec & Vista problem


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.


you have "requestexecutionlevel admin" in your script?


Yes


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.