Error 2753 Question - 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!

chen
Posts: 18
Joined: Mon Nov 26, 2007 6:02 pm

Error 2753 Question

Yesterday I got a user to report an error 2753 when he try to upgrade our software from previous release. Both release is built using AI 7. After examining the log file, I figured out the cause but I don't know how to solve it. Hope you can help.

Our software has an Microsoft add-in component. I grouped all the files into a feature and configure that the installer only install the feature if there are any Office products installed. However this user installed MS Office after he installed our software. So, when he upgraded the software, the software first tried to uninstall the previous version and raised error 2753 when it tried to uninstall the Office feature.

My question is: how can I configure the feature so that it doesn't need to uninstall if it has been never installed?

Here is how I configure the Feature Properties:
  • Installation Behavior: Installed by default (Install Level 1 - Typical).
  • Conditional Levels: Office Installed = 1, No Office = 0
  • Install Settings: Install Locally
  • Advertise Settings: Allow Advertise
    The default installation state is advertised. (Unchecked)
    Disable advertise if the target system doesn't support it (Unchecked)
Thanks for help!!

P. Chen
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Error 2753 Question

Hi,

A solution is to condition all the components under the Office feature instead of the actual feature. This way there shouldn't be a problem. You can select multiple components by pressing SHIFT + F4 on a feature.

Another approach is to use an uninstall custom action which sets the feature action based on its state and on the search. For example, the code in VBScript would look something like this:

Code: Select all

Const msiInstallStateUnknown = -1
Const msiInstallStateAbsent = 2
Const msiInstallStateLocal  = 3

If Session.Property("FOUND_OFFICE") = "1" Then 
  If Session.FeatureRequestState("Feature") = msiInstallStateLocal Then
    Session.FeatureRequestState("Feature") = msiInstallStateAbsent
  Else
    Session.FeatureRequestState("Feature") = msiInstallStateUnknown 
  End If
End If
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chen
Posts: 18
Joined: Mon Nov 26, 2007 6:02 pm

Re: Error 2753 Question

Thanks, it does the trick. However, I am encountering another problem and I don't if it is associated with this new configuration. I posted it as a separate question in the forum:

http://www.advancedinstaller.com/forums ... =2&t=10968

Regards,

P. Chen

Return to “Common Problems”