Skip to content
⌘ NSIS Forum Archive

How to detect letter of HD where $PROGRAMFILES is?

5 posts

atsuk#

How to detect letter of HD where $PROGRAMFILES is?

in my PC i have $PROGRAMFILES in "D:\Program Files". I need to put the letter of default Hard Drive(where $PROGRAMFILES is) to the variable..any idea? tnx
deguix#
Like:
StrCpy $0 $PROGRAMFILES "" 1 
Will return the drive letter used by $PROGRAMFILES in $0.