how to delete installation directory after uninstallation?
0 Comments
[ + ] Show comments
Answers (14)
Please log in to answer
Posted by:
AngelD
16 years ago
Posted by:
mehappy
16 years ago
Posted by:
jmcfadyen
16 years ago
Posted by:
mehappy
16 years ago
You are right John, if we have several applications from same manufacturer like Adobe. All products from Adobe will usually be installed under C:\Program Files\Adobe\. If we use REMDIR "C:\Program Files\Adobe /s /q, it will permanently delete Adobe directory and every subdirectories and files. I use REMDIR when I want to remove an specific folder that wont be automatically remove during uninstall process.
Posted by:
axsysbabu
16 years ago
Posted by:
axsysbabu
16 years ago
Posted by:
spartacus
16 years ago
ORIGINAL: axsysbabu
Dear Happy,
this will remove empty folders only. doesnt remove sub folders......
[font="courier new"]C:\> rmdir /?
[font="courier new"]RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
[font="courier new"] /S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.
[font="courier new"]
Looks good enough to get the job done to me, even if the folders aren't empty and there are subfolders ...
Regards,
Spartacus
Posted by:
AngelD
16 years ago
So if you have uninstalled all products that writes folders/files to the "c:\program files\<company name><product name>" then the files/folders that are left are they included in any of the (uninstalled) packages?
Check that there is no component with the msidbComponentAttributesPermanent attribute bit set on them as that will prevent the components resources from being removed during uninstall.
Check that there is no component with the msidbComponentAttributesPermanent attribute bit set on them as that will prevent the components resources from being removed during uninstall.
Posted by:
anonymous_9363
16 years ago
You're aware, of course, that - natively (i.e. without adding explicit entries in the RemoveFile table or by adding Custom Actions) - an MSI will only remove files which it installed. So, if the application writes data to a file or files in any of the folders, those files will NOT be removed by uninstallation.
Posted by:
AngelD
16 years ago
Posted by:
jmcfadyen
16 years ago
Posted by:
AngelD
16 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.