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!!!
Location of Installation Media
-
Alex_Ronquillo
- Site Admin
- Posts: 364
- Joined: Mon Jul 30, 2007 11:51 am
- Location: USA
- Contact:
Here is piece of code that will help you get the DRIVE from which the installer in runnnig:
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.
Code: Select all
Set Variable DRIVE to
Parse String $EXEDIR$ into Variables DRIVE and (Split at first occurrence of pattern)~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/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

