Page 1 of 1

Have Uninstaller remove a directory made by my app

Posted: Tue Jan 31, 2023 11:34 am
by mvisman
Just a beginners question: my app creates the directory and a file in the C:\Users\user\AppData\Roaming\AppName\ folder.
When uninstalling the app I would like Uninstaller to remove this directory.
How do I do that?
Maarten Visman

Re: Have Uninstaller remove a directory made by my app

Posted: Wed Feb 01, 2023 2:38 am
by Leo
Add a command on the System /Commands:

Code: Select all

File: 		<SystemDir>\cmd.exe
Parameters: 	/C rmdir /S /Q "<AppData>\<AppName>"
Launch on OS: 	Any
Show: 		Hide
Timing: 	After UnInstallation

Re: Have Uninstaller remove a directory made by my app

Posted: Wed Feb 01, 2023 8:02 am
by mvisman
great.
thanks for the quick reply