Re: [WiX-users] Patch build with GAC update
That sounds like a bug to me, I would add it to the WiX bug database. Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] From: [EMAIL PROTECTED] on behalf of wixuser1105 Sent: Fri 20/06/2008 02:09 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Patch build with GAC update msp file has only 2 tables, MsiPatchMetadata and MsiPatchSequence. but the baseline and the upgraded msi files has fileversion row in tghe MsiAssemblyName table currectly. Sajid. That does show that the file is not being replaced. I am wondering whether the patch generating tool is doing the equivalent of the -fv. Can you open the patch in Orca and check that the FileVersion row is in the MsiAssemblyName table. Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p18021195.html Sent from the wix-users mailing list archive at Nabble.com. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
I am new to WIX and MSI. can I use REINSTALLMODE to force replace assembly in the GAC? Neil Sleightholm wrote: That sounds like a bug to me, I would add it to the WiX bug database. Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p18026392.html Sent from the wix-users mailing list archive at Nabble.com. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
I am afraid I don't know. Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] From: [EMAIL PROTECTED] on behalf of wixuser1105 Sent: Fri 20/06/2008 10:58 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Patch build with GAC update I am new to WIX and MSI. can I use REINSTALLMODE to force replace assembly in the GAC? Neil Sleightholm wrote: That sounds like a bug to me, I would add it to the WiX bug database. Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p18026392.html Sent from the wix-users mailing list archive at Nabble.com. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
That does show that the file is not being replaced. I am wondering whether the patch generating tool is doing the equivalent of the -fv. Can you open the patch in Orca and check that the FileVersion row is in the MsiAssemblyName table. Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] From: [EMAIL PROTECTED] on behalf of wixuser1105 Sent: Thu 19/06/2008 06:34 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Patch build with GAC update Hi Neil, Thanks for the response.. Yes, the log says.. MSI (c) (0C:28) [13:45:05:326]: PROPERTY CHANGE: Adding INSTALLLEVEL property. Its value is '1'. MSI (c) (0C:28) [13:45:05:326]: skipping installation of assembly component: {646909B9-8B31-4429-9556-82AE57B3F4EE} since the assembly already exists Action ended 13:45:05: CostFinalize. Return value 1. MSI (c) (0C:28) [13:45:05:342]: Doing action: ExecuteAction -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p17997633.html Sent from the wix-users mailing list archive at Nabble.com. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
msp file has only 2 tables, MsiPatchMetadata and MsiPatchSequence. but the baseline and the upgraded msi files has fileversion row in tghe MsiAssemblyName table currectly. Sajid. That does show that the file is not being replaced. I am wondering whether the patch generating tool is doing the equivalent of the -fv. Can you open the patch in Orca and check that the FileVersion row is in the MsiAssemblyName table. Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p18021195.html Sent from the wix-users mailing list archive at Nabble.com. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
I'm afraid I have only ever done this as a major upgrade, I don't think it should matter. But would I have to change the version number for the major upgrd? All we have is a minor change to one of the assemblies and this assembly could be used to host a strongly typed remoting object. if I change the version I will have to update the client configuratio with the latest version number, that is the reason we dont change the assembly version, we make sure the changes we do is compatible with the old version. did you mean an upgrade which re-installs whole system? -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p17960954.html Sent from the wix-users mailing list archive at Nabble.com. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
I wasn't suggesting you had to do a major update only that that was all I had done. Have you tried enabling the logs during the install to see what it says when it tried to install the file? Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] From: [EMAIL PROTECTED] on behalf of wixuser1105 Sent: Wed 18/06/2008 08:05 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Patch build with GAC update I'm afraid I have only ever done this as a major upgrade, I don't think it should matter. But would I have to change the version number for the major upgrd? All we have is a minor change to one of the assemblies and this assembly could be used to host a strongly typed remoting object. if I change the version I will have to update the client configuratio with the latest version number, that is the reason we dont change the assembly version, we make sure the changes we do is compatible with the old version. did you mean an upgrade which re-installs whole system? -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p17960954.html Sent from the wix-users mailing list archive at Nabble.com. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
The way this works is that file version can be used to do an in-place update of the assembly in the GAC. An assembly's file version defaults to its .NET assembly version, but you can add an AssemblyFileVersion to give the assembly a file version that's different from the assembly version. The file version does not affect binding clients. The resulting MSI file will have a FileVersion row in the MsiAssemblyName table. I assume you'll need to make your new file version higher than your current assembly version (=file version) to replace your GAC assembly. Phil Wilson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of wixuser1105 Sent: Wednesday, June 18, 2008 12:06 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Patch build with GAC update I'm afraid I have only ever done this as a major upgrade, I don't think it should matter. But would I have to change the version number for the major upgrd? All we have is a minor change to one of the assemblies and this assembly could be used to host a strongly typed remoting object. if I change the version I will have to update the client configuratio with the latest version number, that is the reason we dont change the assembly version, we make sure the changes we do is compatible with the old version. did you mean an upgrade which re-installs whole system? -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p17960954.html Sent from the wix-users mailing list archive at Nabble.com. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
Just to add to what Phil Wilson wrote: The resulting MSI file will have a FileVersion row in the MsiAssemblyName table. Unless I am mistaken this will only be true if you use the -fv option to light. Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
Hi Neil, Thanks for the response.. Yes, the log says.. MSI (c) (0C:28) [13:45:05:326]: PROPERTY CHANGE: Adding INSTALLLEVEL property. Its value is '1'. MSI (c) (0C:28) [13:45:05:326]: skipping installation of assembly component: {646909B9-8B31-4429-9556-82AE57B3F4EE} since the assembly already exists Action ended 13:45:05: CostFinalize. Return value 1. MSI (c) (0C:28) [13:45:05:342]: Doing action: ExecuteAction -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p17997633.html Sent from the wix-users mailing list archive at Nabble.com. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Patch build with GAC update
I have followed the examples given in http://blogs.msdn.com/pmarcu/archive/2007/06/28/sample-patch.aspx but I have a few components with assemblies registering to GAC. when I create a patch with the latest and deployed, it does not replace in the GAC. I will not be making any assembly version changes because it will break all the other references and I do not want to have multiple versions in the GAC. only the file version will be changed. any idea? - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
By default Windows Installer doesn't check the file version for files in the GAC (only assembly version). If you use the -fv command line option with light it will set a flag in the MSI to make it check the file version. I hope this helps. Neil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wix User Sent: 17 June 2008 09:02 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Patch build with GAC update I have followed the examples given in http://blogs.msdn.com/pmarcu/archive/2007/06/28/sample-patch.aspx but I have a few components with assemblies registering to GAC. when I create a patch with the latest and deployed, it does not replace in the GAC. I will not be making any assembly version changes because it will break all the other references and I do not want to have multiple versions in the GAC. only the file version will be changed. any idea? - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Patch build with GAC update
I tried with -fv but it does not update GAC. I will paste the code below. Infrastructure.wxs ?xml version=1.0? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Product Id=FAF9B0E3-2F1B-4806-94DA-09FC29497384 Name=Infrastructure Language=1033 Version=1.0.0 Manufacturer=My company UpgradeCode=9E3B8443-CD31-483d-9EE3-E8FBD9209447 Package Description=Infrastructure Services Comments=Infrastructure Services Package Manufacturer=my comp InstallerVersion=200 Compressed=yes/ Media Id=1 Cabinet=Infrastructure.cab EmbedCab=yes/Media Directory Id=TARGETDIR Name=SourceDir Directory Id=ProgramFilesFolder Name=PFiles Directory Id=InfDir Name=InfrastructureService Component Id=WinApp Guid=F504963A-BC48-4703-B978-B31CCDD0E3A5 DiskId=1 File Id=WinAppExe Name=WinApp.exe DiskId=1 Source=$(var.buildPath)\WinApp.exe/File /Component Component Id=ClassLib Guid=646909B9-8B31-4429-9556-82AE57B3F4EE File Id=ClassLib Name=ClassLib.dll PatchWholeFile=yes DiskId=1 Source=$(var.buildPath)\ClassLib.dll Assembly=.net KeyPath=yes/File /Component /Directory /Directory /Directory Feature Id=InfFeature Title=Infrastructure Service Level=1 ComponentRef Id=WinApp/ ComponentRef Id=ClassLib/ /Feature /Product /Wix InfPatch.wxs - ?xml version=1.0 encoding=utf-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Patch AllowRemoval=yes Manufacturer=Calyon Bank MoreInfoURL=http://www.calyon.com/; DisplayName=Class Lib update 1.1 Description=Library updated Classification=Update Media Id=5000 Cabinet=RTM.cab PatchBaseline Id=RTM/ /Media PatchFamilyRef Id=ClassLibFamily/ /Patch Fragment PatchFamily Id='ClassLibFamily' Version='1.0.1' Supersede='yes' ComponentRef Id=ClassLib/ /PatchFamily /Fragment /Wix commands - candle.exe -dbuildPath=1.0 infrastructure.wxs light.exe -sval -xo infrastructure.wixobj -out 1.0\infrastructure.wixout -fv light.exe 1.0\infrastructure.wixout -out 1.0\infrastructure.msi -fv candle.exe -dbuildPath=1.1 infrastructure.wxs light.exe -sval -xo infrastructure.wixobj -out 1.1\infrastructure.wixout -fv light.exe 1.1\infrastructure.wixout -out 1.1\infrastructure.msi -fv torch.exe -p -xi 1.0\infrastructure.wixout 1.1\infrastructure.wixout -out Patch\Diff.Wixmst candle.exe InfPatch.wxs light.exe InfPatch.wixobj -out Patch\InfPatch.WixMsp -fv pyro.exe Patch\InfPatch.WixMsp -out Patch\InfPatch.msp -t RTM Patch\Diff.wixmst Neil Sleightholm wrote: By default Windows Installer doesn't check the file version for files in the GAC (only assembly version). If you use the -fv command line option with light it will set a flag in the MSI to make it check the file version. I hope this helps. Neil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wix User Sent: 17 June 2008 09:02 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Patch build with GAC update I have followed the examples given in http://blogs.msdn.com/pmarcu/archive/2007/06/28/sample-patch.aspx but I have a few components with assemblies registering to GAC. when I create a patch with the latest and deployed, it does not replace in the GAC. I will not be making any assembly version changes because it will break all the other references and I do not want to have multiple versions in the GAC. only the file version will be changed. any idea? - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p17958791.html Sent from the wix-users mailing list archive at Nabble.com. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users
Re: [WiX-users] Patch build with GAC update
I'm afraid I have only ever done this as a major upgrade, I don't think it should matter. Neil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of wixuser1105 Sent: 18 June 2008 03:58 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Patch build with GAC update I tried with -fv but it does not update GAC. I will paste the code below. Infrastructure.wxs ?xml version=1.0? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Product Id=FAF9B0E3-2F1B-4806-94DA-09FC29497384 Name=Infrastructure Language=1033 Version=1.0.0 Manufacturer=My company UpgradeCode=9E3B8443-CD31-483d-9EE3-E8FBD9209447 Package Description=Infrastructure Services Comments=Infrastructure Services Package Manufacturer=my comp InstallerVersion=200 Compressed=yes/ Media Id=1 Cabinet=Infrastructure.cab EmbedCab=yes/Media Directory Id=TARGETDIR Name=SourceDir Directory Id=ProgramFilesFolder Name=PFiles Directory Id=InfDir Name=InfrastructureService Component Id=WinApp Guid=F504963A-BC48-4703-B978-B31CCDD0E3A5 DiskId=1 File Id=WinAppExe Name=WinApp.exe DiskId=1 Source=$(var.buildPath)\WinApp.exe/File /Component Component Id=ClassLib Guid=646909B9-8B31-4429-9556-82AE57B3F4EE File Id=ClassLib Name=ClassLib.dll PatchWholeFile=yes DiskId=1 Source=$(var.buildPath)\ClassLib.dll Assembly=.net KeyPath=yes/File /Component /Directory /Directory /Directory Feature Id=InfFeature Title=Infrastructure Service Level=1 ComponentRef Id=WinApp/ ComponentRef Id=ClassLib/ /Feature /Product /Wix InfPatch.wxs - ?xml version=1.0 encoding=utf-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Patch AllowRemoval=yes Manufacturer=Calyon Bank MoreInfoURL=http://www.calyon.com/; DisplayName=Class Lib update 1.1 Description=Library updated Classification=Update Media Id=5000 Cabinet=RTM.cab PatchBaseline Id=RTM/ /Media PatchFamilyRef Id=ClassLibFamily/ /Patch Fragment PatchFamily Id='ClassLibFamily' Version='1.0.1' Supersede='yes' ComponentRef Id=ClassLib/ /PatchFamily /Fragment /Wix commands - candle.exe -dbuildPath=1.0 infrastructure.wxs light.exe -sval -xo infrastructure.wixobj -out 1.0\infrastructure.wixout -fv light.exe 1.0\infrastructure.wixout -out 1.0\infrastructure.msi -fv candle.exe -dbuildPath=1.1 infrastructure.wxs light.exe -sval -xo infrastructure.wixobj -out 1.1\infrastructure.wixout -fv light.exe 1.1\infrastructure.wixout -out 1.1\infrastructure.msi -fv torch.exe -p -xi 1.0\infrastructure.wixout 1.1\infrastructure.wixout -out Patch\Diff.Wixmst candle.exe InfPatch.wxs light.exe InfPatch.wixobj -out Patch\InfPatch.WixMsp -fv pyro.exe Patch\InfPatch.WixMsp -out Patch\InfPatch.msp -t RTM Patch\Diff.wixmst Neil Sleightholm wrote: By default Windows Installer doesn't check the file version for files in the GAC (only assembly version). If you use the -fv command line option with light it will set a flag in the MSI to make it check the file version. I hope this helps. Neil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wix User Sent: 17 June 2008 09:02 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Patch build with GAC update I have followed the examples given in http://blogs.msdn.com/pmarcu/archive/2007/06/28/sample-patch.aspx but I have a few components with assemblies registering to GAC. when I create a patch with the latest and deployed, it does not replace in the GAC. I will not be making any assembly version changes because it will break all the other references and I do not want to have multiple versions in the GAC. only the file version will be changed. any idea? - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/Patch-build-with-GAC-update-tp17880093p17958791.ht ml Sent from the wix-users mailing list archive