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 @@ > > --> > > <Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"> > > <Product > > - 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"> > > > > <Package > > - 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