[wix-users] [WIX]: Remove extracted files after installation completed.

Phill Hogland phill.hogland at rimage.com
Wed Nov 18 05:16:52 PST 2015


Look at util:RemoveFolderEx and DirectorySearch with AssignToProperty=yes"

  <Fragment>
    <Property Id="MYAPPDATADIR">
      <DirectorySearch Id="SearchComnonAppData" Path="[CommonAppDataFolder]">
        <DirectorySearch Id="Search Company AppData" Path="Company">
          <DirectorySearch Id="SearchAppAppData" Path="Messaging" AssignToProperty="yes" />
        </DirectorySearch>
      </DirectorySearch>
    </Property>
  </Fragment>

In app's Component
<util:RemoveFolderEx Id="RemoveMsgAppData" On="uninstall" Property="RDPMSGAPPDATADIR"/>

I use the above to remove files/folders created by the app in uninstall, you may need to use different attributes.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Dileep S
Sent: Tuesday, November 17, 2015 11:55 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] [WIX]: Remove extracted files after installation completed.

Hi All,

I have created a MSI package using Wix 3.7 for installing my application.
After extracting the MSI package my application will be launched.
How to remove installed files and folder after terminating or installation completion of my application.
This to be done only if files are extracted in temp folder.

Can any one help me on this?

Thanks in advance..

Regards,
Dileep

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list