Old 11th March 2004, 12:05   #1
yandalf
Junior Member
 
Join Date: Mar 2004
Posts: 2
Question How i can know the unit letter of the system?

Hi! i would like to know how i can obten the unit letter in which the system is installed. The program I made use 2 directories and i need place thats directories in the same unit. For example:

D:\directory1

D:\directory2

The second directory will have the common files of the differents aplications that the program use.
yandalf is offline   Reply With Quote
Old 11th March 2004, 12:26   #2
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
like this:

$WINDIR

The windows directory (usually C:\windows or C:\winnt but detected at runtime)

$SYSDIR

The windows system directory (usually C:\windows\system or C:\winnt\system32 but detected at runtime)

VAR DRIVE

StrCpy $drive $WINDIR 2
or
StrCpy $drive $SYSDIR 2

you'll get 'c:' for example

HTH

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 11th March 2004, 16:06   #3
yandalf
Junior Member
 
Join Date: Mar 2004
Posts: 2
Thank you

Thank you for your quickly answer.
yandalf is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump