I have a problem with an update installer which works fine on XP, but fails on Vista. The installer searches for an previous install, and then replaces changed files in the previous install folder.
On XP, the new files are properly installed in the expected folder. But on Vista, a new folder with the name of the property is created instead, and the files are installed there, rather than in the proper target folder. For example:
- we search for our program "MyProgram.exe"
- from there, we search for the parent folder and remember it at "FOUND_FOLDER" (which would be C:\Program Files\MyProgramFolder\)
- The installer then installs files in a property-based folder
- On XP, files are properly installed in C:\Program Files\MyProgramFolder\
- But on Vista, the installer creates a new folder "C:\FOUND_FOLDER\", and places the new files there.
Any suggestions?