Why is my install program running? - 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!

PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Why is my install program running?

I have created an installation that installs several different components. One of these components is an API common to a large number of our applications (it only needs to be installed once), the others are not used by anything outside of this installation. If (when logged in as a non-administrative user) I start an external application that uses this API, on the first time the application is run the installer starts up. I've turned on logging and it appears to be doing a re-install for one of the non-common components. If I abort the install, the program works fine, so I'm not entirely sure what is going on.
Has anyone any suggestions how I can work out why the installer thinks it needs to re-install a component that is not being used!?

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Why is my install program running?

Hi Phil,

Are you using advertised shortcuts or file associations? If so, Windows Installer automatically performs a repair if it detects that some resources are missing. Usually this happens with resources installed in per-user locations. A solution would be to move these resources into another feature.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: Why is my install program running?

I'm not using any advertised shortcuts and I'm not intentionally setting up any file associations. I've done some experiments and the re-install only happens when the apps that I run are old vb6 apps. The feature that is being re-installed also contains some vb derived items. After further tests I have discovered that if I configure the (microsoft) merge module for the microsoft common controls (MSCOMCTL.MSM) to be associated with a new feature rather than with the feature that was being re-installed then I don't see the problem. I still don't really understand what is happening though!

If I use this work-around is it possible to hide the feature from the customize dialog but ensure that the feature is always installed?

Phil
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Why is my install program running?

Hi Phil,

I am not sure if Windows Installer supports this behavior. However you might want to consider using the "Always install this feature" option found on the Organization page by selecting the feature in question.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: Why is my install program running?

This turned out to be embarrassingly easy. Having set the "Always install this feature" option I then set the "Feature Tree" option to be Not Displayed. Seems to work!

Thanks for your help,

Phil

Return to “Common Problems”