Page 1 of 1
Location of Installation Media
Posted: Wed Oct 24, 2007 6:29 pm
by K1pp3r
OK - It's late, I'm tired but I need to get the drive letter of the installation media - various media files are left on the cd/dvd and I need to check for existence on running the installed product - I guess it's obvious and I'm going to look stupid but don't care.
Please Help!!!
Posted: Thu Oct 25, 2007 12:24 pm
by Alex_Ronquillo
Here is piece of code that will help you get the DRIVE from which the installer in runnnig:
Code: Select all
Set Variable DRIVE to
Parse String $EXEDIR$ into Variables DRIVE and (Split at first occurrence of pattern)
Here it is in a way you can copy and paste it:
~InstallAware Clipboard Data~
~Parse String~
~{94FDCCC6-A641-49DA-B305-FA1E6888C794}~
~$EXEDIR$~
~\\~
~DRIVE~
~~
~0~
~FALSE~
~TRUE~
~Set Variable~
~{BEB0240E-53F0-43BC-BA45-7B2452CB32ED}~
~DRIVE$MYAH$MYAH$FALSE~
Variable DRIVE will end up with D:, E:, F: or whatever the drive for your CD/DVD is.
Posted: Sat Oct 27, 2007 5:11 am
by K1pp3r
Thanks for that - I got up the following morning - rationalized my searching and found the full list of internal pre-defined variables, so now I have my answer and more besides !!!