Delete Files usage
Posted: Wed Jul 04, 2007 5:54 pm
When my application runs it creates some files in the target directory (myFile1.txt and myFile2.txt). When uninstalling I want to delete those files. I am currently trying the following with no success.
Code: Select all
DEFINE REGION: Perform Uninstallation
if Variable REMOVE equals TRUE
Delete Files $TARGETDIR$\\myFile1.txt (when uninstalling)
Delete Files $TARGETDIR$\\myFile2.txt (when uninstalling)
Apply Uninstall (get result into variable SUCCESS)
Set Variable PROGRESS to 100
else
.......