Regardless of whether or not the default directory is used, I would like to append "\lib\extensions\" to the end of the directory. I am copying an extension to an extension directory, and it's just easier if the user only has to tell me where the installation is.
For instance, if the user picks "C:\blah" , I would like to install to "C:\blah\lib\extensions\myext.jar".
Here's my script
; clockIt.nsi
;--------------------------------
; The name of the installer
Name "ClockIt"
; The file to write
OutFile "ClockItInstall.exe"
; The default installation directory
InstallDir c:\bluej
;--------------------------------
; Pages
Page directory
Page instfiles
;--------------------------------
; The stuff to install
Section "" ;No components page, name is not important
; Set output path to the installation directory.
SetOutPath $INSTDIR\lib\extensions
; Put file there
File ClockIt.jar
SectionEnd ; end the section