You're "supposed" to use publisher (publishing?) assemblies to accomplish what you're doing.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Sleightholm Sent: Friday, July 11, 2008 00:22 To: General discussion for Windows Installer XML toolset.; General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Assembly file versions in wixlibs Thanks Rob, I'll take a look at 3. Sorry to go on about it but why would making -fv the default be a problem? If you are doing the "right" thing then it wouldn't matter as the versions would match and if you need it the assembly will be installed using the normal versioning rules. I must be missing something. I think this does cause problems as I have replied to a couple of questions where people don't understand why their assembly is not put in the GAC. Worse still in my case I was releasing and SDK and need to install to the file system (so that Visual Studio could pickup the assembly) and the GAC, I found the file in the GAC wasn't updated and the file on the file system was! I wonder whether the correct place for this option is not a light command line, maybe it should be part of <File> element, e.g. a new option in the Assembly attribute. Then you could selectively use it and it would get in to wixlib. Does this sound possible? Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ________________________________ From: [EMAIL PROTECTED] on behalf of Rob Mensching Sent: Fri 11/07/2008 00:38 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Assembly file versions in wixlibs 1. Note in my original comment: "One more legacies of Fusion and its, IMHO, under-informed design choices." I agree with you. I very strongly believe that Fusion did a lot to set back the progress toward real solutions to real problems. 2. "-fv" doesn't mean anything in a .wixlib because the files are resolved yet. In a binary .wixlib it would make some sense but the binder isn't part of that process. 3. You should be able to get the behavior you want by manually adding the AssemblyName element and refer to the !(wix. FileVersion.FileId). -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Sleightholm Sent: Thursday, July 10, 2008 14:50 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Assembly file versions in wixlibs I think I might have replied in hast, in my opinion the GAC is evil, DLL hell in system32 was simply replaced by GAC hell! To be serious I know the reasons for not using file versions but they just don't stack up in the real world and I guess that is why the "rules" are broken by everyone. Is it worth adding a feature request to get the -fv affect in the wixlib implementation or is there no real demand for it. Neil -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching Sent: 10 July 2008 21:07 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Assembly file versions in wixlibs I understand the issues but I was answering the question "why isn't -fv the default" (sorry, if that wasn't clear). It's not the default because it isn't the recommended way to use the GAC. I'm not even saying I agree with the design. Also, teams in Microsoft do things wrong all the time just like everyone else. I can assure you that you will be disappointed if you expect perfection from humans (especially collections of humans). <smile/> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Sleightholm Sent: Saturday, July 05, 2008 16:19 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Assembly file versions in wixlibs If it is not the "correct way" how come Microsoft do it all the time! The issue is that if you do nightly builds to ensure compatibility with other applications built against the source you need to keep the assembly version the same. Look in the GAC, lots of MS assemblies have fixed assembly versions but there file versions change. -bf doesn't seem to help, hence the question. Neil -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching Sent: 05 July 2008 23:05 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Assembly file versions in wixlibs Using "-fv" is not the "correct way" to install files into the GAC. The "correct way" is to update the Assembly version not the assembly file version. One more legacies of Fusion and its, IMHO, under-informed design choices. You might try and see if a binary .wixlib (pass "-bf" switch) gets you what you want. If that doesn't work, you can author the MsiAssemblyName table using AssemblyName elements. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Sleightholm Sent: Friday, July 04, 2008 11:19 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Assembly file versions in wixlibs I am creating a wixlib that contains some components that go in the GAC, because the assembly version stays the same but the file version changes I need to use the light option "-fv" to get them to install. Is there any way to embed the assembly file versions in the wixlib so that I don't have to rely on the consumer of the wixlib setting the "-fv" option? Neil P.S. Personally I think "-fv" should be on by default, it is too confusing to explain to someone why an assembly isn't being overritten in the GAC and I can't see any penalty for using it. Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ------------------------------------------------------------------------ - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users