Is this possible? - 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!

scorro
Posts: 4
Joined: Sat Sep 10, 2011 8:22 am

Is this possible?

I am having some problems making an installer for an application i have made. The mainfeature and prerequisites are no problem but i have some features that are giving lots of trouble. The other features must have files included that have the same name and extension that are included in the mainfeature and must overwrite the mainfeature files when selected in a custom dialog selection tree on install. So i want to make an installer wich install the mainfeature and prerequisites and optional features that will overwrite files in the mainfeature.

Hope someone can help. :?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Is this possible?

Hi,

You can try using an approach similar to the one explained in our Install 32/64-bit files how-to. Basically, the optional files can be placed in a subfolder of the folder with your original files. This subfolder can use "Install folder content into the parent folder" option so in the end they all end up in the same folder.

Also, each set of files can be placed in a separate feature (main and optional). These features can then be conditioned any way you want through your custom dialog. Please note that the optional files cannot overwrite the original ones. Through conditions you must make the features mutually exclusive.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
scorro
Posts: 4
Joined: Sat Sep 10, 2011 8:22 am

Re: Is this possible?

cosmin wrote:Hi,

You can try using an approach similar to the one explained in our Install 32/64-bit files how-to. Basically, the optional files can be placed in a subfolder of the folder with your original files. This subfolder can use "Install folder content into the parent folder" option so in the end they all end up in the same folder.

Also, each set of files can be placed in a separate feature (main and optional). These features can then be conditioned any way you want through your custom dialog. Please note that the optional files cannot overwrite the original ones. Through conditions you must make the features mutually exclusive.

Regards,
Cosmin
Thank you very much for your help. It works great. Acctualy it can overwrite the original file if you set the option "Ensure that this file overwrites any installed target file" to the file that has to overwrite the original in the versions tab of properties. :D

Return to “Common Problems”