|
|
#1 |
|
Junior Member
Join Date: May 2009
Posts: 2
|
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. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
you have "requestexecutionlevel admin" in your script?
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2009
Posts: 2
|
Yes
|
|
|
|
|
|
#4 |
|
Member
Join Date: Apr 2006
Location: Somewhere in Germany
Posts: 81
|
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|