Skip to content
⌘ NSIS Forum Archive

System drive

11 posts

fabiochelly#

System drive

Hi,

How can I specify the system drive (sometimes, it's not C🙂

For instance, if I want c:\MyProg :
InstallDir $SYSTEMDRIVE\MyProg
Afrow UK#
Originally posted by kichik
You don't need StrLen. StrCpy with 1 as maxlen is enough.

StrCpy $R0 $WINDIR 1
Ah thanks Kichik, I forgot about that 😁

-Stu
Joost Verburg#


You can easily declare your own variable called $SYSTEMDRIVE and set it using one line of code.