I'm having some problems with leftover folders when I upgrade my application through my installer.
Here is my sequence:
1. Install version 1.0 into a custom location ( user changes the $TARGETFOLDER$ through the Destination directory dialog).
2. Install version 1.1
- detects prior version and prompts user to confirm upgrade
- if user says yes, runs Install/Remove MSI package [remove=all]
3. If remove is successful, continue with install; this time leave $TARGETDIR$ in the Destination dialog alone.
4. I end up with the custom folder from step 1 and the regular $TARGETDIR$ created in step 3.
I tried removing the directory manually using the Call DLL Function plugin but this throws an error "cannot load plugin".
Code: Select all
Call DLL Function $WINSYSDIR$\kernel32.dll->RemoveDirectoryA
I also noticed that the SWIDTag is also left in the folder.
Is there a way to delete this folder?
Thanks,
Sheri