Install folders from CD 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!

mjmfgm
Posts: 4
Joined: Mon Jul 16, 2007 4:30 pm

Install folders from CD Drive

I use the "Feature Installations option and I need to asked the user to "Insert " the CD. After that the user clicks a confirm button I need to open a browser window where the user can browse to a folder and select that folder and able to upload the folder to a predefined directory.

How can I do that ?
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi Fred,

This would require using Custom Actions and it will not be according to Windows Installer rules and best practices (as the files will just be copied and will not be managed by Windows Installer). You would need to use another Custom Action to delete the files when the package is uninstalled.

I recommend using a different approach:

1. The data files for your application will be added in the Files and Folders page under the appropriate folder.

2. In the Organization page you will create a distinct Feature and move all the Components attached to the data files under this Feature.

3. In the Media page select the option "One CAB archive per feature" such that a distinct CAB file is created for each Feature. Each CAB file will be copied to a CD and the MSI package will reside on the first CD.

4. In the Dialogs page you can add the "SetupTypeDlg" dialog such that the user can choose whether to install the data files Feature or not.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
mjmfgm
Posts: 4
Joined: Mon Jul 16, 2007 4:30 pm

Make Sense,
Thank you very much for your help.

Return to “Common Problems”