Re: [WiX-users] How do I remove a file on upgrade
Justin Dearing wrote: >So it seems like I have broken WiX rules and cannot properly fix them. More accurately, you have broken Windows Installer component rules. (WiX is only used to build the MSI file, and multiple files within the same component can be valid in some scenarios.) The mechanism that you say you used (i.e. separating out the dll, exe and license into different components, none of which retain the GUID used for the original shared component) sounds like it should have worked. I for one would be interested to hear from any of the Microsoft Installer gurus why it didn't. I wonder if the problem you describe could possibly be caused by the way you retained the same feature ID. Perhaps (and this is just me thinking on the fly as I type) Microsoft Installer is trying to be over intelligent and recognizes that the dll is associated with a feature that is still installed. (That's not the way I understood that it worked - i.e. by component not by file - but I've been wrong before.) The other thing, of course, would be to see if the verbose log of the second installation tells you anything (i.e. something else happens to be using the DLL at the time the attempt is made to remove it). Good Luck! Richard * C O N F I D E N T I A L I T Y N O T I C E * --- The content of this e-mail is intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, be aware that forwarding it, copying it, or in any way disclosing its content to any other person, is strictly prohibited. Peek Traffic Corporation is neither liable for the contents, nor for the proper, complete and timely transmission of (the information contained in) this communication. If you have received this communication in error, please notify the author by replying to this e-mail immediately and delete the material from any computer. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How do I remove a file on upgrade
Justin Dearing wrote: > Ok that worked I setup the component for the DLL as below. The only > remaining problem is I can install 0.93 and then 0.92 and windows > seems to think both installations can coexist. I think this is because > I am doing a major upgrade. I will have to study the upgrade mechanism > of wix further. > Installing 0.92 and then 0.93 or vice versa? http://www.tramontana.co.hu/wix/lesson4.php describes how to prevent a downgrade. -- sig://boB http://bobs.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How do I remove a file on upgrade
On 3/26/07, John Vottero <[EMAIL PROTECTED]> wrote: > You could try using . Ok that worked I setup the component for the DLL as below. The only remaining problem is I can install 0.93 and then 0.92 and windows seems to think both installations can coexist. I think this is because I am doing a major upgrade. I will have to study the upgrade mechanism of wix further. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How do I remove a file on upgrade
So it seems like I have broken WiX rules and cannot properly fix them. What I have done is separate out the dll, exe and license into separate components. All of the components have different ids and GUIDs than the original mega component. All three components belong to the original feature. When I install 0.92 and then upgrade to 0.93, I still get the old and new DLL. Uninstalling removes both copies. If there is no way to fix my mistake properly, is there a way to delete the old file using a custom action? On 3/26/07, John Vottero <[EMAIL PROTECTED]> wrote: > I think you're breaking the component rules. You put PlaneDisaster.exe > and PlaneDisaster.Dba.dll in the same component which you really don't > want to do. I don't think you ever want more than one executable file > in a component. In most cases, you only want one file in each > component. > > If PlaneDisaster.lib.dll was in its own component, you could change the > name and the component id and Windows Installer would install the new > component and remove the old component. One of the rules for when you > need to change the component code is: "A change in the name or target > location of any file, registry key, shortcut, or other resource in the > component. In this case, you must also change the name or target > location of every resource in the component." > > That is from: http://msdn2.microsoft.com/en-us/library/aa367849.aspx > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:wix-users- > > [EMAIL PROTECTED] On Behalf Of Justin Dearing > > Sent: Sunday, March 25, 2007 11:17 PM > > To: wix-users@lists.sourceforge.net > > Subject: [WiX-users] How do I remove a file on upgrade > > > > Hello, > > > > I am having a problem in that I renamed a DLL in my open source > > project (http://plane-disaster.sf.net) and it is not being removed > > when I perform an upgrade. The old version of the file is called > > PlaneDisaster.LIB.dll and the new version is called > > PlaneDisaster.Dba.dll. I just made the DLL name match the namespace. > > When I perform an uninstall both DLLs are removed. The diff of > > Setup.wxs after the file rename is below. How do I remove > > PlaneDisaster.LIB.dll if I upgrade from pre version 0.93 to version > > 0.93 (or later). > > > > Index: C:/SRC/PlaneDisaster.NET/PlaneDisaster.NET Setup/Setup.wxs > > === > > --- C:/SRC/PlaneDisaster.NET/PlaneDisaster.NET Setup/Setup.wxs > > (revision 48) > > +++ C:/SRC/PlaneDisaster.NET/PlaneDisaster.NET Setup/Setup.wxs > > (revision 53) > > @@ -7,8 +7,8 @@ > > --> > > http://schemas.microsoft.com/wix/2003/01/wi";> > >> - Id="942fbc80-9e58-4436-aa7c-5e40c4f95ce7" > > - Name="PlaneDisaster.NET 0.9.2" > > + Id="5725e292-d33f-11db-8314-0800200c9a66" > > + Name="PlaneDisaster.NET 0.9.3" > > Language="1033" > > Codepage="1252" > > Version="0.9.2" > > @@ -16,7 +16,7 @@ > > Manufacturer="ZippySoft"> > > > >> - Id="E77100E0-6CE2-40DE-BE21-BB4C76C1CA80" > > + Id="63bc6e90-d33f-11db-8314-0800200c9a66" > > Description="#Description" > > Comments="Comments" > > InstallerVersion="200" > > > > > --- > > -- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD > > EV > > ___ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How do I remove a file on upgrade
I think you're breaking the component rules. You put PlaneDisaster.exe and PlaneDisaster.Dba.dll in the same component which you really don't want to do. I don't think you ever want more than one executable file in a component. In most cases, you only want one file in each component. If PlaneDisaster.lib.dll was in its own component, you could change the name and the component id and Windows Installer would install the new component and remove the old component. One of the rules for when you need to change the component code is: "A change in the name or target location of any file, registry key, shortcut, or other resource in the component. In this case, you must also change the name or target location of every resource in the component." That is from: http://msdn2.microsoft.com/en-us/library/aa367849.aspx > -Original Message- > From: [EMAIL PROTECTED] [mailto:wix-users- > [EMAIL PROTECTED] On Behalf Of Justin Dearing > Sent: Sunday, March 25, 2007 11:17 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] How do I remove a file on upgrade > > Hello, > > I am having a problem in that I renamed a DLL in my open source > project (http://plane-disaster.sf.net) and it is not being removed > when I perform an upgrade. The old version of the file is called > PlaneDisaster.LIB.dll and the new version is called > PlaneDisaster.Dba.dll. I just made the DLL name match the namespace. > When I perform an uninstall both DLLs are removed. The diff of > Setup.wxs after the file rename is below. How do I remove > PlaneDisaster.LIB.dll if I upgrade from pre version 0.93 to version > 0.93 (or later). > > Index: C:/SRC/PlaneDisaster.NET/PlaneDisaster.NET Setup/Setup.wxs > === > --- C:/SRC/PlaneDisaster.NET/PlaneDisaster.NET Setup/Setup.wxs > (revision 48) > +++ C:/SRC/PlaneDisaster.NET/PlaneDisaster.NET Setup/Setup.wxs > (revision 53) > @@ -7,8 +7,8 @@ > --> > http://schemas.microsoft.com/wix/2003/01/wi";> >- Id="942fbc80-9e58-4436-aa7c-5e40c4f95ce7" > - Name="PlaneDisaster.NET 0.9.2" > + Id="5725e292-d33f-11db-8314-0800200c9a66" > + Name="PlaneDisaster.NET 0.9.3" > Language="1033" > Codepage="1252" > Version="0.9.2" > @@ -16,7 +16,7 @@ > Manufacturer="ZippySoft"> > >- Id="E77100E0-6CE2-40DE-BE21-BB4C76C1CA80" > + Id="63bc6e90-d33f-11db-8314-0800200c9a66" > Description="#Description" > Comments="Comments" > InstallerVersion="200" > > --- > -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD > EV > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How do I remove a file on upgrade
Bob, thanks for your reply. I'm new to wix and still learning the finer points. On 3/26/07, Bob Arnson <[EMAIL PROTECTED]> wrote: > How are you handling upgrades? If you're using Upgrade/UpgradeVersion, > where are you scheduling RemoveExistingProducts? Upgrades are handled by : Remove ExistingSequence occurs at : > > > Version="0.9.2" > > > > If you're using major upgrades, you'll need to change the product version. I did bump the version number up to 0.9.3 as my diff illustrated. If you want to just look at my setup code look at: http://plane-disaster.svn.sourceforge.net/viewvc/plane-disaster/trunk/PlaneDisaster.NET%20Setup/ Setup.wxs. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How do I remove a file on upgrade
Justin Dearing wrote: > How do I remove > PlaneDisaster.LIB.dll if I upgrade from pre version 0.93 to version > 0.93 (or later). > How are you handling upgrades? If you're using Upgrade/UpgradeVersion, where are you scheduling RemoveExistingProducts? > Version="0.9.2" > If you're using major upgrades, you'll need to change the product version. -- sig://boB http://bobs.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] How do I remove a file on upgrade
Hello, I am having a problem in that I renamed a DLL in my open source project (http://plane-disaster.sf.net) and it is not being removed when I perform an upgrade. The old version of the file is called PlaneDisaster.LIB.dll and the new version is called PlaneDisaster.Dba.dll. I just made the DLL name match the namespace. When I perform an uninstall both DLLs are removed. The diff of Setup.wxs after the file rename is below. How do I remove PlaneDisaster.LIB.dll if I upgrade from pre version 0.93 to version 0.93 (or later). Index: C:/SRC/PlaneDisaster.NET/PlaneDisaster.NET Setup/Setup.wxs === --- C:/SRC/PlaneDisaster.NET/PlaneDisaster.NET Setup/Setup.wxs (revision 48) +++ C:/SRC/PlaneDisaster.NET/PlaneDisaster.NET Setup/Setup.wxs (revision 53) @@ -7,8 +7,8 @@ --> http://schemas.microsoft.com/wix/2003/01/wi";> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users