docswab
Posts: 14
Joined: Mon Jan 11, 2010 8:18 pm

Install on USB drive: various problems

We are trying to make an installer tailored specifically for installation on USB drives, including updating USB drive instances. I have already found the option to display removable drives in the Dialog options for Enterprise projects. (Thanks to earlier forum postings!)

However, I am having trouble with the following steps:

1. I can't set up the initial installation location such that the user MUST choose the USB drive, and not accidentally install on the internal drive. I would like to have the user select a destination drive, rather than default to the desktop or C: drive.

2. I can't figure out how to specify an enclosing folder on the USB drive to be created as part of the installation (the equivalent of the [APPDIR][PRODUCTNAME] path on the internal drive.

3. Running the updater on an instance installed on a USB drive fails during the installation process of the update, stating that there are not sufficient permissions to access a file in the installation (which has just been deleted by the installer). The update detection works, but applying the update installer to the USB version does not.

Any suggestion would be most welcome.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Install on USB drive: various problems

Hello,
I can't set up the initial installation location such that the user MUST choose the USB drive, and not accidentally install on the internal drive. I would like to have the user select a destination drive, rather than default to the desktop or C: drive.
You can customize the FolderDlg from the Dialogs page to use a Volume Select Combo control instead of the existing path edit. You can then set the APPDIR property with the selected value when the "Next" button is pushed. Here is an article with more guidance on this.
I can't figure out how to specify an enclosing folder on the USB drive to be created as part of the installation (the equivalent of the [APPDIR][PRODUCTNAME] path on the internal drive.
Here's an article to help you with this.
Running the updater on an instance installed on a USB drive fails during the installation process of the update, stating that there are not sufficient permissions to access a file in the installation (which has just been deleted by the installer). The update detection works, but applying the update installer to the USB version does not.
I am not sure what you mean by this, are you using multiple instances, or... ? Can you please exemplify the behavior using snapshots?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
docswab
Posts: 14
Joined: Mon Jan 11, 2010 8:18 pm

Re: Install on USB drive: various problems

Thank you so much for your help! We have upgraded to Enterprise and gotten the drive selection and folder configuration working correctly.

I've posted a further query about the upgrade/update failure to a new thread.

Return to “Common Problems”