Old 23rd August 2008, 15:35   #1
imtrobin
Junior Member
 
Join Date: Oct 2003
Posts: 7
Path is set correctly but msiexec still fails

Hi,

I'm using nsis 2.36 on an older script,and I'm getting the msi package cannot be verified. It used to work on 2.36 before, I did not update nsis but updated to winxp SP3, could it be so?

The first directx exe execwait can execute fine. I have tried various combination of SetOutPath "$INSTDIR", SetOutPath "$INSTDIR\Redistributable" and placed the files in same folder but still error with the second one.

code:

Section -Prerequisites
; SetOutPath "$INSTDIR\Redistributable"
MessageBox MB_YESNO "Install Microsoft DirectX 9 November 2007 Update?" /SD IDYES IDNO endInstallPhysX
ExecWait "Redistributable\directx_nov2007_redist.exe"
Goto endInstallPhysX
endInstallPhysX:
MessageBox MB_YESNO "Install the PhysX 2.8.1 Game Redistributable?" /SD IDYES IDNO endPrerequisites
ExecWait '"msiexec" /i "Redistributable\PhysX_Game_installer_281.msi"'
endPrerequisites:
SectionEnd

imtrobin is offline   Reply With Quote
Old 23rd August 2008, 17:44   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
why not use the full path to PhysX_Game_installer_281.msi ?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 24th August 2008, 09:22   #3
imtrobin
Junior Member
 
Join Date: Oct 2003
Posts: 7
Because it's not extracted to the installation directory, only in the source dir.
imtrobin is offline   Reply With Quote
Old 24th August 2008, 09:55   #4
imtrobin
Junior Member
 
Join Date: Oct 2003
Posts: 7
Ok, I understand what is going on now. It's trying to read the msi on the installed path, which I didn't copy. Thanks for the insight.
imtrobin 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