Additional Install Paths/Directories/Folders - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Additional Install Paths/Directories/Folders

Our application needs to put files in additional directories (besides APPDIR). I've got it working. The problem occurs when we do an update of the product - the old files (and directories) are removed and the new files aren't put in the correct location.

What is the proper way to do this? Store these additional paths in the registry for recall by update?

BTW, all these additional folders are presented to the user to change at install time. They specify two base directories (c:\a\b, c:\a\c) and then directories are appended for the files (c:\a\b\sub-b\b.txt, c:\a\c\sub-c\c.txt)
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Additional Install Paths/Directories/Folders

Hello,
What is the proper way to do this? Store these additional paths in the registry for recall by update?
This is the correct approach but you'll also need to make those registry entries persistent during an upgrade. Here's How do I prevent a file or registry entry from being uninstalled or repaired? article to help you with this.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”