file extensions overwritten by beta installation - 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!

robert
Posts: 6
Joined: Mon Mar 03, 2008 6:49 pm

file extensions overwritten by beta installation

Is there any way of only applying the file associations if no other version of the product is installed? I'm doing a beta version and want to allow the customer to install it side by side with the previous stable release to evaluate the product but what I don't want is for the beta to be launched if the user double clicks on one of the associated files. If there is no other installed product the file associations should be linked to the beta version. Is this at all possible without relying on writing my own script file to create the file associations?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Since the file association is linked to the key member of the component of the application (this means it is linked directly with the EXE of the application), Windows Installer doesn't allow you to condition only the creation of the file association.

The solution would be to use a custom action which creates the file association. This custom action can easily be conditioned by using the "Custom Action Properties" page.

You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
robert
Posts: 6
Joined: Mon Mar 03, 2008 6:49 pm

My understanding is that I can execute an exe or script as a custom action at any stage of the installation sequence, but how do I conditionally execute part of the installation sequence? There doesn't seem to be any method for this or am I misunderstanding the documentation?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
how do I conditionally execute part of the installation sequence?
I'm not sure I understand what you mean by this. Can you please give me more details?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
robert
Posts: 6
Joined: Mon Mar 03, 2008 6:49 pm

I have defined my file associations in the project but I do not want to establish these associations if there is another version of the product installed on the system. The only alternative I can see at this stage is to remove this from advanced installer and write my own script or binary that creates these associations as I can't figure out how to tell advanced installer to skip this stage during the install sequence if it has found a previous installation. Is this at all possible? As far as I understand the custom actions section it won't allow me to conditionally execute a standard action, is this true?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Like I said in one of my previous posts, you cannot condition the creation of a file association created by Windows Installer. The only solution is to use a custom action.

Also, you cannot condition a standard action because they are always executed for all MSI-based installation packages. However, you can condition your custom action which creates the file association.

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

Return to “Common Problems”