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:snmsn...@gmail.com] 
Sent: Wednesday, December 08, 2010 7:38 AM
To: wix-users@lists.sourceforge.net
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
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
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).



------------------------------------------------------------------------------
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

Reply via email to