Hi,
How can I specify the system drive (sometimes, it's not C🙂
For instance, if I want c:\MyProg :
InstallDir $SYSTEMDRIVE\MyProg
System drive
11 posts
Copy the first chars from $WINDIR.
StrLen $R0 $WINDIR
StrCpy $R0 $WINDIR 1 -$R0
$R0 = e.g. C or D
-Stu
StrCpy $R0 $WINDIR 1 -$R0
$R0 = e.g. C or D
-Stu
You don't need StrLen. StrCpy with 1 as maxlen is enough.
StrCpy $R0 $WINDIR 1
StrCpy $R0 $WINDIR 1
It should be a instruction for this... /* hint hint */
Something like $WINDRIVE....
Something like $WINDRIVE....
Originally posted by kichikAh thanks Kichik, I forgot about that 😁
You don't need StrLen. StrCpy with 1 as maxlen is enough.
StrCpy $R0 $WINDIR 1
-Stu
Thank you very much.
I think a variable $SYSTEMDRIVE should be useful
I think a variable $SYSTEMDRIVE should be useful
You can easily declare your own variable called $SYSTEMDRIVE and set it using one line of code.
But I'll be easier if already was made 😛
If we add everything that can be done with a few lines code NSIS will become huge.
In fact it was because I come from Innosetup where there is a {sd} constant