|
|
|
|
#1 |
|
Junior Member
Join Date: May 2009
Posts: 1
|
drive of windows installed
sir,
anybody have the code of getting the drive name (eg: C:\, D:\) where windows installed for a nsis file? . i created a setup program to install my program using nsis. now i coded C:\ or D:\ directly on the code, but i want the setup program to check whether the windows installed on C:\ or D:\ and that drive letter shown in setup program to install . any help?? with regards G.H.Kumar |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
you could just make use of e.g. $SYSDIR (the full path to the system32 folder, which I think you can't change from the windows installation drive's; unless you did some major hacking after install, I suppose), and then just grab the drive from that using string manipulation.
|
|
|
|
|
|
#3 |
|
Junior Member
|
StrCpy $YourVar "$SYSDIR" 3
This will give you C:\ Change the number to change the number of characters (i.e. 1-C, 2-C:, 3-C:\, etc) |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
code: Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|