Archive: How to disable the browse button?


How to disable the browse button?
I would like to use the NSIS installer to create an ultra simple installer that copies a file into a harcoded directory. Everything in the following script works except that the person that runs the installer has the option to browse to the installation directory. I desire to disable the browse capability.

Your assistance is appreciated.

Thank You,
Paul




; ValidationRpt.nsi
;
; This script is perhaps one of the simplest NSIs you can make. All of the
; optional settings are left to their default settings. The installer simply
; prompts the user asking them where to install, and drops a copy of makensisw.exe
; there.

;--------------------------------

; The name of the installer
Name "ValidationRpt"

; The file to write
OutFile "ValidationRpt.exe"

; The default installation directory
InstallDir C:\testlogin\test

;--------------------------------

; 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

; Put file there
File ValidationRpt.pl

SectionEnd ; end the section


Why not just leave out the directory page? Scripts are not required to use it.

If you want to tell the users what you're going to do, you can use the welcome page with some custom text, or create a custom page with InstallOptions.