Old 10th May 2009, 22:55   #1
cadsmn
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.
cadsmn is offline   Reply With Quote
Old 10th May 2009, 23:31   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
you have "requestexecutionlevel admin" in your script?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 11th May 2009, 00:11   #3
cadsmn
Junior Member
 
Join Date: May 2009
Posts: 2
Yes
cadsmn is offline   Reply With Quote
Old 13th May 2009, 16:13   #4
dbach
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.
dbach is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump