Skip to content
⌘ NSIS Forum Archive

AllowRootDirInstall not working for me

7 posts

chui#

AllowRootDirInstall not working for me

Having a bit of difficulty with AllowRootDirInstall in the code below. I still cannot select (for example) c:\ or \\SHARENAME\

Can anyone help?

Thanks in advance... Neil

;--------------------------------
;Configuration
;General
OutFile "${SETUPNAMEPREFIX}${PRODUCTNAME}.exe"
AllowRootDirInstall true
;--------------------------------
;Modern UI Configuration
!define MUI_WELCOMEPAGE
!define MUI_CUSTOMPAGECOMMANDS
!define MUI_COMPONENTSPAGE
etc...
chui#
I have two directory selection pages. In both of them the "next" button becomes greyed out if I type in c:\ or \\server\share
chui#
Ok found the problem in a function .onVerifyInstDir which was checking for root directory. Thanks for your help.