cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
szeltner
Level 2

Delete an installation directory upon uninstall

Hello all,

I was wondering what the best practice was for deleting an installation directory upon uninstall. The directory contained a VM that was installed via a Basic MSI project and extraneous files are left in the directory after I uninstall.

Thanks!
Labels (1)
0 Kudos
(2) Replies
TsungH
Level 12

If the extraneous files are generated at application runtime, uninstallation will not remove them unless explicitly instructed to do so. If they should be removed, please refer to RemoveFile Table.
0 Kudos
szeltner
Level 2

So I would like to delete a directory using "DeleteDir" but the directory I want to delete is dynamic and can be chosen at install time. Specifically it is: [INSTALLDIR]

How can I reference this in the script to be whatever install directory the user chooses at install time?
0 Kudos