Skip to content
⌘ NSIS Forum Archive

About AllowRootDirInstall

5 posts

Bardy#

About AllowRootDirInstall

Hello everyone,

There is a problem for me about "AllowRootDirInstall". You know, "AllowRootDirInstall" Controls whether or not installs are enabled to the root directory of a drive, or directly into a network share. However, the installer still can be installed into a network share even if set "AllowRootDirInstall false". (ie: My computer name is a. Anotherone is b with a share Disk for me. I run the installer and select "\\b\D\installdir" as installdir. The installer still admits me to install.)

Now my NSIS version is 2.33. But this problem still appear. How can I block the installation if choose the network share folder as installdir.


Thanks.
kichik#
\\b\D\installdir is not the root of the network share. \\b\d is the root of the network share.
Bardy#
Thank you for your answer. Sorry, I misunderstood on "AllowRootDirInstall". But I still want to blok all the network share Disk during the installation. Could you please show me the solution?

Thank you very much.
kichik#
You can use GetDriveType in .onVerifyInstDir or .onInit or any section. An example can be found in the following thread:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.