Win32 Service and Private Assemblies - 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!

cogowo
Posts: 6
Joined: Sun Sep 20, 2009 4:56 am

Win32 Service and Private Assemblies

I am trying to resolve a problem associated with 'Side-by-Side configuration information contains errors with KB 971090' (MSDN Forums). I have developed a Win32 service with VS 2005. The service dependencies include

C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989

due to the VS 2005 update of July ’09. The service will be installed on thousands of XP and Server 2003 machines which do not satisfy the aforementioned dependency. I am using AI 6.1 and have the following questions:

1. Is this problem best resolved by installing the missing assembly as a private assembly or a shared assembly?
2. How do I specify the installation of the appropriate assembly in:
a.“Files and Folders”
b.“Organization”
c."Assemblies”?
cogowo
Posts: 6
Joined: Sun Sep 20, 2009 4:56 am

Re: Win32 Service and Private Assemblies

I've made progress, but, still have an unanswered question.

In my AI project "Merge Modules" I right-clicked to "Add Merge Module" to add the following files from "C:\Program Files\Common Files\Merge Modules":

Microsoft_VC80_CRT_x86.msm
policy_8_0_Microsoft_VC80_CRT_x86.msm

After rebuilding the project, installation with the MSI file resulted in the following insertions at the specified paths:

C:\Windows\WinSxS:
x86_Microsoft_VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989
C:\Windows\WinSxS\Policies\x86_policy.8.0.Microsoft_VC80.CRT_1fc8b3b9a1e18e3b_x-ww_77c24773:
8.0.50727.4053.cat
8.0.50727.4053.policy

The result is that the service executables dependent upon the v4053 CRT ran. However, I assume it is preferable to install the assembly as a private assembly, in the same folder as the service executable, rather than as a shared assembly in "C:\windows\winsxs". How do I install the v4053 CRT as a private assembly?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Win32 Service and Private Assemblies

Hello,

For installing it as a private assembly, add the assembly from the assembly page, then select it and select "Private install to" after which select the destination folder for the assembly.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
cogowo
Posts: 6
Joined: Sun Sep 20, 2009 4:56 am

Re: Win32 Service and Private Assemblies

Thanks.
1. I removed the Merge Modules
2. In "Files and Folders", I added the following directories and files to my service "C:\program files\<my_srvc>\bin\" directory:
\bin\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989.dll
msvcr80.dll
msvcp80.dll
msvcm80.dll
\bin\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989.manifest
x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989.manifest
3. In "Assemblies"
a. I added msvcr80.dll to "Assemblies"
b. I added msvcr80.dll, mscvp80.dll, msvcm80.dll to "Files"
c. I hi-lited msvcr80.dll in "Files" and clicked "Set Manifest". The "Manifest" edit box was filled with the path
ProgramFilesFolder\SAIC\Windows Data Collector\bin\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989.dll\msvcr80.dll
I expected, instead, the path
ProgramFilesFolder\SAIC\Windows Data Collector\bin\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989.dll\msvcr80.manifest
so, I changed it.
d. I clicked "Private Install To:" and browsed to "C:\program files\<my_srvc>\bin\", but was unable to select a directory
as a destination as the "OK" button was grayed-out. I assumed that a private assembly would be associated with
a directory and not a specific file because many of the exe and dll files in "<my_srvc>\bin" should reference the
CRT assembly. What am I missing?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Win32 Service and Private Assemblies

Hello,

I am sorry, my previous suggestion was incorrect.

I do believe using the mergemodule is the best course of action. The runtime will be bundled with your installer so there won't be any dependency problems.

I am not sure about installing it privately, it should work if the assemblies are in the same folder (or in a specific subfolder) as the service executable. However you would need to research this further to make sure.

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

Return to “Common Problems”