Archive: About AllowRootDirInstall


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.


\\b\D\installdir is not the root of the network share. \\b\d is the root of the network share.


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.


You can use GetDriveType in .onVerifyInstDir or .onInit or any section. An example can be found in the following thread:

http://forums.winamp.com/showthread.php?postid=2187641


Thanks. I will try.