Old 9th March 2015, 18:21   #1
prishra
Junior Member
 
Join Date: Mar 2015
Posts: 8
NSIS doesnt get installed in specified target location

I am using the below statement and subversion doesnt get installed in E:\programfiles\slik
what am I missing here
ExecWait 'msiExec /i "E:\Binaries\SlikSubversion.msi" INSTALLDIR="E:\ProgramFiles\Slik" /passive'
prishra is offline   Reply With Quote
Old 9th March 2015, 18:33   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
Why are you hardcoding paths like that?

It should probably look something like this:
Quote:
Section
InitPluginsDir
File '/oname=$pluginsdir\silk.msi' "c:\myLocalFiles\SlikSubversion.msi"
ExecWait '"$sysdir\msiExec.exe" /i "$pluginsdir\silk.msi' " INSTALLDIR="$programfiles32\Slik" /passive'
SectionEnd
and if that still fails then you can try Process Monitor and see if the file is not found or if the process cannot be started...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 10th March 2015, 13:00   #3
prishra
Junior Member
 
Join Date: Mar 2015
Posts: 8
I tried whatever you mentioned, I see that Slik subversion is getting installed but in c:\programfiles and not in the INSTALLDIR specified. Am I missing anything
prishra is offline   Reply With Quote
Old 10th March 2015, 14:23   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
Quote:
Originally Posted by prishra View Post
I tried whatever you mentioned, I see that Slik subversion is getting installed but in c:\programfiles and not in the INSTALLDIR specified. Am I missing anything
That is not a NSIS issue, if ExecWait is able to start the process correctly then it is out of our control. You have to ask the SilkSvn people...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 10th March 2015, 15:42   #5
aerDNA
Senior Member
 
aerDNA's Avatar
 
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
I took a look inside that msi - using INSTALLLOCATION instead of INSTALLDIR will work.

PostEnd:
aerDNA 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