chrisb1980
Posts: 9
Joined: Thu Jul 30, 2009 2:47 pm

Re: Side-by-side error - Microsoft.VC80.CRT

Thanks for the response.

Apologies for my limited understanding of WinSxS, but taking your example, I have 7 instances of msvcr90.dll in the WinSxs subdirectories on my computer:

C:\WINDOWS\WinSxS\amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_0296e955\
C:\WINDOWS\WinSxS\amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_a17e7c1e\
C:\WINDOWS\WinSxS\amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_069f922e\
C:\WINDOWS\WinSxS\ia64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_9ecf7cde\
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375\
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e\

Other than this, the file only exists in subdirectories of c:\Program Files\Microsoft Visual Studio 9.0\, which wouldn't be present on a non-development system. Your answer to the OP suggested searching c:\program files\common files\, but it doesn't exist in there.

I've looked through the merge modules using Orca and the only thing that corresponds to these directory names is under 'Directory':

payload.30729.4148.Microsoft_VC90_CRT_x86.QFE.AA2EBBCC_4E3B_3442_865E_7BB3E9F45F0C WinSxsDirectory.30729.4148.Microsoft_VC90_CRT_x86.QFE.AA2EBBCC_4E3B_3442_865E_7BB3E9F45F0C svxo6ro6|x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e:dlCRTx86

I assume that the corresponding row in each merge module will have the correct directory name in it?

Reviewing your steps then, I need to add 'AppSearch' table, with:

Code: Select all

Property                  Signature_
RESULT_PROPERTY.AA2EBBCC_4E3B_3442_865E_7BB3E9F45F0C      FileSearchSign.AA2EBBCC_4E3B_3442_865E_7BB3E9F45F0C
'Signature' table with:

Code: Select all

FileSearchSign.AA2EBBCC_4E3B_3442_865E_7BB3E9F45F0C      msvcr90.dll
'DrLocator' table with:

Code: Select all

Signature              Path                   Depth
FileSearchSign.AA2EBBCC_4E3B_3442_865E_7BB3E9F45F0C    [WindowsFolder]/WinSxs/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e    0
I'm a bit confused by:
Now you can use "RESULT_PROPERTY.GUID" as a condition for the components of the merge module.
Where do I specify this condition?

Also, does this need to be done for every file installed by the merge module?

VC90 must be a very common dependency, is this really the only way to stop it from being uninstalled on upgrade?

Thanks,

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

Re: Side-by-side error - Microsoft.VC80.CRT

Hi Chris,
Apologies for my limited understanding of WinSxS, but taking your example, I have 7 instances of msvcr90.dll in the WinSxs subdirectories on my computer
You can configure the search for a more generic location, for example:

Code: Select all

[WindowsFolder]WinSxs
By modifying the search depth you can make sure that the installer will also search subfolders of "WinSxs".
I'm a bit confused by:
Now you can use "RESULT_PROPERTY.GUID" as a condition for the components of the merge module.
Where do I specify this condition?
You can manually condition all components in "Component" table of the merge module. You can also try conditioning the merge module feature in your Advanced Installer project. This is done through conditional install levels.
Also, does this need to be done for every file installed by the merge module?
The search can use only one file. However, all components should be conditioned.
VC90 must be a very common dependency, is this really the only way to stop it from being uninstalled on upgrade?
No, this is the hard way. A simpler approach is to install the appropriate runtime files into your application folder and make your application load them from there. This is how Advanced Installer does it. An even simpler approach is to add the Visual C++ runtime as a prerequisite. Advanced Installer has predefined prerequisites for all Visual C++ runtime versions.

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

Return to “Common Problems”