Non-existant drive. - 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!

gsimpson
Posts: 13
Joined: Sat Dec 31, 2011 8:13 pm

Non-existant drive.

Greetings.
I want to use a drive that may or may not exist that will be populated in the wizard.
Under Install Parameters, I set a Property called DB_PATH that has a default value of Q:\DB.
I then have an editbox that has DB_PATH as the property (with a default value of Q:\DB).
This works very good. Until the drive does not exist, then I get INVALID DRIVE and the installer stops.

I saw this explained and dont know how to implement the fix. I create a Search for the Q drive. Did that. Called in QDRIVE.
What do I do now?

What I would like to have done is to have the editbox filled in with Q:\DB if the Q drive exists, otherwise I would like the editbox showing C:\DB, by default.

The questions I have are:
1. If I create a new custom action, where do I put it? Before something? After something? I dont know what these Somethings are...
2. How do I put the logic of:
IF Q is set
THEN put the value of Q:\QA in the editbox
ELSE put the value of C:\DB in he editbox?
3. What do I put in for the property of the editbox?

Thanks,
Greg
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Non-existant drive.

Hi Greg,

This should be simple:
- add a search for the location you are uncertain it will exist on the target machine(e.g. RESULT_PROPERTY)
- set the edit box's "Property Name" to RESULT_PROPERTY
- add an init event on the dialog with the edit box:
init event.jpg
init event.jpg (34.67 KiB) Viewed 2247 times
You should use WindowsVolume property in the default value of your edit box instead of hard coding it.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”