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!

noname4ever
Posts: 1
Joined: Sun Mar 31, 2019 1:57 pm

Import .reg file to installer

Hello, i create installation for application with many registry enteries with paths (e.g. C:\Program Files\...). I export this enteries to .reg files and want to import this files to my installation, but how to replace "C:\Program Files\" with [APPDIR]? I'll try use notepad replace dialog, but when file import to installer enteries with [APPDIR] look like this - [\[]APPDIR[\]]. Replacing ALL "C:\Program Files" to [APPDIR] in AI manualy is REALY hard work...
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Import .reg file to installer

Hello and welcome to Advanced Installer forums,

Unfortunately this is our default behavior when importing registry values. We escape using formatted escape characters sequence ([\]) for all formatted special chars (e.g. [, {, etc) so that at install time they will be written in the registry exactly as they are. For more information about this, please have a look on the Importing Registry File With Properties Changes Formating thread which debates a similar problem.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”