[wix-users] Remove folder on uninstallation action (Folder inside Applicationfolder)

Edwin Castro egcastr at gmail.com
Thu Jul 30 13:12:45 PDT 2020


I think RemoveFolderEx from the Util extension will be helpful.

https://wixtoolset.org/documentation/manual/v3/xsd/util/removefolderex.html

--
Edwin G. Castro


On Thu, Jul 30, 2020 at 8:15 AM Abhishek Nene via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> Hi,
>
> Currently on uninstallation of msi, we are removing mentioned folder in
> below snippet and application related files getting removed.
> Although,  "Logs" folder inside mentioned folder Contoso is not getting
> deleted in uninstallation action.
>
> Below is snippet :
>
>    <DirectoryRef Id="ApplicationProgramsFolder">
>       <Component Id="ApplicationShortcut" Guid="*">
>         <Shortcut Id="UninstallProduct"
>                   Name="Uninstall"
>                   Description="Uninstalls WordConnect"
>                   Target="[System64Folder]msiexec.exe"
>                   Arguments="/x [ProductCode]"/>
>         <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
>       </Component>
>
>     <Directory Id="ProgramMenuFolder">
>         <Directory Id="ApplicationProgramsFolder" Name=" Contoso "/>
>       </Directory>
>
> How can I delete logs folder which is inside Contoso ? (Note. - Logs
> folder we are creating using Log4net library)
>
> Please suggest.
>
> Regards,
> Abhishek Nene
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list