BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

Visual C++ 2008 Redistributable Merge Modules in Vista

Hi,

I have an installer that auto-registers DLLs that are dependent on the VC++ 2008 redistributable.

I've been using a prerequisite installer to add these merge modules, but am now trying to get rid of this prerequisite and put the merge modules in the main installer.

On XP/2003 systems this works great, however on Vista/2008 systems the installer fails to register my DLLs. My DLLs cannot resolve the DLLs that should have been installed via the merge modules for the redistributable.

Note that this works on Vista/2008 installing the same merge modules via a prerequisite, then running the installer that registers the DLLs. I'd sorely like to get rid of the whole prerequisite step and bundle the merge modules in with my main installer (I have the Enterprise version; this is one of the features that I purchased it for).

Any ideas?

Thanks,

Justin
BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

Re: Visual C++ 2008 Redistributable Merge Modules in Vista

Hi,

I believe I've identified the problem from looking at this thread:

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

It looks like Vista does not install the merge modules until the InstallFinalize step, so the auto register step fails because it occurs before InstallFinalize.

I'll try one of the solutions posted in that thread to try and resolve the problem

Justin
BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

Re: Visual C++ 2008 Redistributable Merge Modules in Vista

I've resolved the issue of registering the DLLs by calling regsvr32.exe in custom actions in the commit phase.

I also have a COM EXE server that I register via a custom action in the commit phase as well. That same EXE file is used as a Windows service, which I've been setting up via the 'Services' tab. However this does not work now as it looks like the service installation needs to happen in the commit phase after I've registered the EXE.

Is there a way to set the service installation in the commit phase? If not, how may I replicate the functionality of the Service Installation via custom actions? I need to set the service's display name, description and dependencies.

Thanks,

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

Re: Visual C++ 2008 Redistributable Merge Modules in Vista

Hi Justin,

You could try placing your custom action before InstallServices standard action.

Also, you can use the sc command in a custom action for installing the service.

Alternately you can move the InstallServices standard action after InstallFinalize, or in other places in the install sequence. To achieve this:
- go to Custom Actions page
- right click on Install
- select Show Standard Action->Before Finalization->InstallServices
- right click on Install again
- select Show Standard Action->Before Finalization->InstallFinalize
- right click on InstallServices which is now listed
- select Move After->Before Finalization->InstallFinalize
Although I am not sure if this will work.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

Re: Visual C++ 2008 Redistributable Merge Modules in Vista

Hi,

I have a problem regarding the merge modules again.

Just to refresh the situation:
My installer is registering its .DLL files via custom actions that are run in the commit phase (so that they are run after the InstallFinalize action that installs the merge modules of the Visual C++ 2008 runtime)

My installer is able to register the modules successfully on install. However, on an upgrade, the registration action fails. The event viewer logs an error saying that a dependent assembly could not be found with the side by side configuration. When I look in the winsxs folder, ATL90.DLL (one of the dlls installed by the merge module) is still present. However, if I view the dependencies of one of my .dlls in Dependency Walker, it says that the ATL90.DLL dependency is not found.

I tried editing the version # of files in the file tables using Orca, as detailed in this thread without any success:
http://www.advancedinstaller.com/forums ... 037&p=6970

Any help on this issue would be appreciated. Thanks!

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

Re: Visual C++ 2008 Redistributable Merge Modules in Vista

Hi Justin,

I am not sure why you are encountering this behavior. Please send your .aip project file and an install log to support at advanced installer dot com so we can further investigate the issue.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”