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_7BB3E9F45F0CCode: Select all
FileSearchSign.AA2EBBCC_4E3B_3442_865E_7BB3E9F45F0C msvcr90.dllCode: 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 0Where do I specify this condition?Now you can use "RESULT_PROPERTY.GUID" as a condition for the components of the merge module.
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
FOLLOW US
Get the latest news in Application Packaging