Hi,

Some new files & folders getting created by IIS & Sitecore in our
website;which are temp files. On Uninstall I want to delete these files &
folders forcefully by custom action. I have return a custom action(for each
folder) which deletes folders which are not installed by MSI. But issue
comes up here the custom action I have return also deleting folders (Ex:
Layouts folder) which are part MSI after Install; Initially MSI is not
removing this Layouts folder on uninstall which is part of MSI ,since new
files(temp) are getting created under this folder.

can any one help me to execute this custom action only on Uninstall and not
on Install.

<CustomAction Id="DeleteLayoutsCmdLine" BinaryKey="CommandPrompt"
                  ExeCommand='/c rmdir /s /q
"[INSTALLLOCATION]Website\Layouts"' 
                                  Execute="immediate" Return="ignore" /> 

<InstallExecuteSequence>
      <Custom Action="DeleteLayoutsCmdLine" After="InstallFinalize"/>
</InstallExecuteSequence>


Please let me know if their is any clean way to do it.if so please provide
the resource.

Thanks in advance.
Chatra
    



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Delete-folders-files-only-on-Uninstall-tp7585988.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to