As described in this blog (thanks to Tom Tan for directing me to it)
http://blogs.msdn.com/vcblog/archive/2008/05/15/vc-runtime-binding.aspx,
Microsoft has changed the default binding of an app to the VS version.  Now the 
default binding is to the RTM version, and it is possible to bind to the latest 
version.

The issue I am having seems to be that the VS 2008 Feature Pack updated the 
Merge Modules, and SP1 did not update them.

So after installing the RTM Visual Studio (version 9.0.21022.8) the merge 
modules (e.g. C:\Program Files\Common Files\Merge 
Modules\Microsoft_VC90_MFC_x86.msm) will include version 9.0.21022.8 into your 
.msi file.  No big surprise there.  

After installing the Feature Pack 1 - the merge modules were updated to include 
the new version - 9.0.30411.0
After installing SP1 - the merge modules were not updated.  Therefore they 
still will include version 9.0.30411.0.

I assume (but I have not verified) that if the Feature Pack was not installed 
and only SP1 was installed that the merge modules would still use 9.0.21022.8

The problem is that now I don't know how to get anything to work.  By default 
(as stated in the blog above) my executable is bound to the RTM version 
(21022), and I can use a define to bind with the latest SP1 version (30729).  
However either way the merge module will cause my install to install the 
Feature pack version (30411).  So in either scenario the customer will get the 
wrong dlls in their winsxs directory and my app will fail.


Is there any way around this?  What is the best way to fix it?  I feel like I 
have to reinstall VS2008 and the SP1 - without installing the feature pack.  
Has any one else run into this issue?  Is there a reason that the feature pack 
updated the merge modules?


Thanks,
Travis




Travis Burkitt wrote:
> (Apologies - this was previously sent, but was accidentally sent in 
> response to another unrelated message.  Please reply to this one to 
> avoid the responses being in the wrong thread. )
>
>
> Hello,
>
> I am adding the VC 9.0 and the MFC 9.0 Merge modules to an installation. 
> Previously I was directly including the required files in my application 
> directory, but now I wanted to do it properly.  Everything seems to work 
> fine except that I would like to keep this install as small as possible 
> and the install is now significantly larger.  (previously was less than 
> 3MB, but now it is almost 15Mb)
>
> Part of what is confusing me is that in that in my windows\winsxs 
> directory I have 3 VC and 3 MFC directories (3 versions)
>        x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_a173767a
>        x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.30411.0_x-ww_421e9f78
>        x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_405b0943
> The dlls in the 21022 directory are much smaller than those in the other 
> two directories.  (1.1Mb vs 3.6Mb) The MFC merge modules picking up the 
> middle version 9.0.30411.
>
>
> My main questions are:
> - Why do I have an MFC merge module that is picking up the middle 
> version of the 3 that are installed?  (FYI the VC module does the same 
> thing)
> - Is there a way to reduce the size of the msi file and still ensure 
> that the necessary files are included for the end user?  (e.g. any way 
> to use version 9.0.21022.8 which likely has all I need and is much 
> smaller?)
> - It isn't as clean, but is it acceptable to require users to download 
> and install the MS VC++ 2008 Redistributable Package.
> - Also I need to use the policy merge modules?  (e.g. 
> policy_9_0_Microsoft_VC90_MFC_x86.msm)
>
>
> Thanks,
> Travis
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to