Location of Installation Media

Got a problem you cannot solve? Try here.
Post Reply
K1pp3r
Posts: 7
Joined: Mon Oct 22, 2007 3:30 am
Location: Grimsby, UK

Location of Installation Media

Post 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!!!
Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Post 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.
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
K1pp3r
Posts: 7
Joined: Mon Oct 22, 2007 3:30 am
Location: Grimsby, UK

Post 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 !!!
Post Reply