Skip to content
⌘ NSIS Forum Archive

finding root directory

4 posts

firepages#

finding root directory

Hi sorry to be dull... but 😉

I know I can find C:\windows or c:\winnt using $WINDIR

but I need to put a file in the root directory (in my case c:\my.cnf (mysql configuration file))

so how can I find out the root drive letter? I assume I can parse the $WINDIR somehow but have not a clue where to start - any pointers appreciated.
kichik#
StrCpy $1 $WINDIR 2

The third parm is how much chars to copy... When you specify 2 it will only copy C:

KiCHiK