CDRom identification - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Stevep
Posts: 1
Joined: Thu Jan 17, 2008 12:16 am

CDRom identification

Newbie here and I cannot find answer - can someone please help

I need to use (as a variable) the drive being used for installation. For example, if my customer is placing the installation CD in his "X" drive, I need to use "X" as a parameter in a custom action.

How / where can I find the drive letter from which the CD is running? I tried using [SourceDir] but it did not seem to work.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

If you run a MSI package from the CD-ROM drive root you can use the [SourceDir] property.

If you run the EXE bootstrapper of the MSI package from the CD-ROM drive root you can use the [SETUPEXEDIR] property.

Note that these properties are available only after the "CostInitialize" standard action and they cannot be used in deferred custom actions.

If the problem persists when using the correct property please send us the AIP (if it doesn't contain confidential information) or a small test case which reproduces this behavior to support at advancedinstaller dot com so we can investigate this issue.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”