There's a lot that could go wrong here. 
Start with this: 
http://robmensching.com/blog/posts/2003/10/18/Component-Rules-101 

What's your exact command complete command line? Are you using 
REINSTALL=<something>

It's likely that it's not being removed because the sharing rules are broken 
(component guids) or you've set SharedDllRefCount in the file that's not being 
removed. 


Phil Wilson 

-----Original Message-----
From: sangeeta1 [mailto:snmsn...@gmail.com] 
Sent: Wednesday, December 08, 2010 9:59 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] uninstall not removing files


I have a requirement to update an existing MSI with new files and I am using
the DTP API to write to data base tables - Files, Components, Directory,
FeatureComponents, Media, etc.
I am doing a reinstall every time I have a new MSI to install
RREINSTALLMODE=VOMUS. This replaces all the files with new set of files on
the target system.

On uninstall however, I was expecting it to remove all the files
automatically. I do not have any permanent attribute to <Component> element.

I am not an installer expert, so please advice if I am doing anything wrong
here.

Many thanks,
sangeeta


On Wed, Dec 8, 2010 at 12:49 PM, Wilson, Phil-2 [via Windows Installer XML
(WiX) toolset] 
<ml-node+5816105-783740139-306...@n2.nabble.com<ml-node%2b5816105-783740139-306...@n2.nabble.com>
> wrote:

> I think you'll need to describe your scenario in more detail. If you modify
> a package by adding a new file and attempt to install it, then it won't work
> if the previous version is already there - that ProductCode guid is already
> installed. Are you doing an upgrade? Or is this a brand new fresh install of
> your new setup?
>
> Note that if you have ever set the Permanent attribute of the component
> guid to true then it will not uninstall. Same with legacy sharing, so it
> makes a difference whether you're on an unspoiled test system or not. Use
> virtual machines!
>
> Phil Wilson
>
>
> -----Original Message-----
> From: sangeeta1 [mailto:[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5816105&i=0>]
>
> Sent: Wednesday, December 08, 2010 7:38 AM
> To: [hidden email] <http://user/SendEmail.jtp?type=node&node=5816105&i=1>
> Subject: [WiX-users] uninstall not removing files
>
>
> Hi all,
>
>
>     I have a wix generated installer that I am programmatically tweaking to
>
> add new files.
>        <Component Id="PolicyComponent"
> Guid="5836d91a-afd9-4d33-8622-d0b39a6870c3">
>                 <File Id="PolicyFile" Source="configFiles\policy.xml"
> KeyPath="yes" Name="policy.xml"/>
>                 <RemoveFolder Id="RemoveAMFolder" Directory="AM"
> On="uninstall" />
>                 <RemoveFolder Id="RemoveCCFolder"
> Directory="INSTALLLOCATION" On="uninstall"/>
>                 <RemoveFile Id="RemovePolicyFile"
> Directory="INSTALLLOCATION" Name="*.*" On="uninstall"/>
>        </Component>
>
> I am having trouble removing files on uninstalling the modified installer.
> I
> am using Windows installer Deployment api to update the MSI file. I can
> correctly install the files, but not remove them on uninstall. Can someone
> advice on what might be missing on my end?
>
> Note that I have included RemoveFile and RemoveFolder tags  in the
> component. Not sure if their ordering matters.
>
> thanks,
> sangeeta
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/uninstall-not-removing-files-tp5815607p5815607.html<http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/uninstall-not-removing-files-tp5815607p5815607.html?by-user=t>
> Sent from the wix-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
>
> What happens now with your Lotus Notes apps - do you make another costly
> upgrade, or settle for being marooned without product support? Time to move
>
> off Lotus Notes and onto the cloud with Force.com, apps are easier to
> build,
> use, and manage than apps on traditional platforms. Sign up for the Lotus
> Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
> _______________________________________________
> WiX-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5816105&i=2>
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> *** Confidentiality Notice: This e-mail, including any associated or
> attached files, is intended solely for the individual or entity to which it
> is addressed. This e-mail is confidential and may well also be legally
> privileged. If you have received it in error, you are on notice of its
> status. Please notify the sender immediately by reply e-mail and then delete
> this message from your system. Please do not copy it or use it for any
> purposes, or disclose its contents to any other person. This email comes
> from a division of the Invensys Group, owned by Invensys plc, which is a
> company registered in England and Wales with its registered office at 3rd
> Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). For
> a list of European legal entities within the Invensys Group, please go to
> http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77.
>
>
> You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail [hidden
> email] <http://user/SendEmail.jtp?type=node&node=5816105&i=3>. This e-mail
> and any attachments thereto may be subject to the terms of any agreements
> between Invensys (and/or its subsidiaries and affiliates) and the recipient
> (and/or its subsidiaries and affiliates).
>
>
>
> ------------------------------------------------------------------------------
>
> This SF Dev2Dev email is sponsored by:
>
> WikiLeaks The End of the Free Internet
> http://p.sf.net/sfu/therealnews-com
> _______________________________________________
> WiX-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5816105&i=4>
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ------------------------------
> View message @
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/uninstall-not-removing-files-tp5815607p5816105.html
>
> To start a new topic under wix-users, email
> ml-node+687560-220571316-306...@n2.nabble.com<ml-node%2b687560-220571316-306...@n2.nabble.com>
> To unsubscribe from wix-users, click 
> here<http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=687560&code=c25tc25tMTBAZ21haWwuY29tfDY4NzU2MHwtODkyOTExNTcy>.
>
>

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/uninstall-not-removing-files-tp5815607p5816135.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to