Archive: Installation Drive


Installation Drive
Hello,

Ive got my installer running fine, although now i want to find out the drive that im installing to i.e C:/ then install some other data there.

Is there any way to get the drive that the installer is pointing at, only thing ih ave at the moment is $installdir or something similar, if i cant get the drive associated, could i get the first 3 characters in the installdir anyway?


Is been posted a lot, see this.


Brilliant!

I also was wondering about the windows directory, i tried using $WinDir but it didnt seem to exist, is there a standard variable to use for getting the windows directory?


what?, you don't have WinDir? :confused: Are you using linux? :D


It may be case sensitive, but I'm pretty sure it isn't.
Try $WINDIR.

-Stu


GetRoot also works for UNC paths.