Hello,
I'm trying to implement the following logic for finding out what path should be used as a default installation location:
- Read a registry value and use the content if it exists.
- Check if a specific folder exists on disk (maybe even check if a specific file exists in that folder). Use that path (the folder's not the file's) if it exists.
- If neither of the two condition above is met, use the default.
The reason for this cascade is that our product has been distributed for a long time using another installer and I am tasked to rewrite it. Historically, the installation could have been made in several way and I need to support the most common scenarii.
Thank you.
FOLLOW US
Get the latest news in Application Packaging