Skip to content
⌘ NSIS Forum Archive

Constant for the CD Drive

6 posts

aemik#

Constant for the CD Drive

Hello,

Need the Constant for the CD Drive. Cant find it in the Documentation.

Thanks for help
Red Wine#
You'd need to find it, use function GetDrives

Afrow UK#
Or, if your installer is running off the CD drive, use

Var $CDDRIVE
...
StrCpy $CDDRIVE $EXEDIR 1

Stu
aemik#
Mmmmh...

I use this command:

(!include "FileFunc.nsh")
${GetDrives} "CDROM" "Function I like"

But the compiler always says that "${GetDrives}" is an invalid command