Prev Previous Post   Next Post Next
Old 18th June 2014, 06:23   #1
wrybread
Junior Member
 
Join Date: Oct 2007
Posts: 22
Question about setting the output path

I'm trying to let users browse to whatever folder they'd like to install a package, but my NSIS script keeps adding the directory name of InstallDir to their selection. For example, if my default InstallDir is set like this:

InstallDir "c:\test1234"

But the user browses to c:\pics, it will then try to install to c:\pics\test1234.

Is there a way to take the path they browse to, without appending the InstallDir (in other words, without the "test1234" subfolder in the above example)?

Here's my stripped down sample script:

code:
;Include Modern UI
!include "MUI.nsh"

Name "Teste123"
OutFile "Test_Installer.exe"

;Default installation folder
InstallDir "c:\test1234"

;Pages
!insertmacro MUI_PAGE_DIRECTORY

;Installer Sections
Section "ASDF" SecDummy
SetOutPath "$INSTDIR"
SectionEnd

wrybread is offline   Reply With Quote
 
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