I install my application from a CD-ROM. When uninstalling my application I get an error "Folder path 'My Folder' contains an invalid character". If I uninstall while the CD is inserted, then the uninstall works fine.
I have narrowed this down to a search. I am doing a search in the SETUPEXEDIR for a folder called "My Folder" then using that as the source for a copy/move during installation (all the files in My Folder on the SETUPEXEDIR directory are copied to a folder on the target machine).
If I change my install so that it does not do this search and copy operation, the uninstall works without the installation media being present.
If I change my install so that it does the search and I add the property-based folder to my "Files and Folders" but DO NOT add the copy operation to move the files, then the uninstall fails as described above.
I'm doing my testing under Vista since that is the OS that sucks the most.
What I think is happening is that the program is doing the search DURING UNINSTALL when the SETUPEXEDIR is not present. Instead of failing gracefully it generates an error and aborts the uninstall. There doesn't seem to be a way to tell Windows Installer not to do the search during uninstall.
You can easily recreate this by simply creating an install that does a search for a folder in [SETUPEXEDIR], then create the corresponding property-based folder in "Files and Folders" and try to install/uninstall your app.
I was supposed to ship this product on Monday and thought I had all the setup issues worked out. I was running the setup from the hard drive. When I created my master CD is when I noticed it wouldn't uninstall. I'd appreciate your prompt attention.
Craig
FOLLOW US
Get the latest news in Application Packaging