Storing installed file information in the registry - 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!

JDMils
Posts: 50
Joined: Tue Aug 10, 2010 12:42 pm

Storing installed file information in the registry

I have setup my project so that it stores details of one of the installed files in the registry on the target computer. The file is an Excel workbook and I need to install the path and filename in HKCU\Software\MyCompany\ with the following string values:

Path: Path to the installed file
Filename: Filename of the installed file

The path stores correctly however the filename stores as "<Path>\<Filename>". How do I store just the filename with no path information in the "Filename" property? Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Storing installed file information in the registry

Hello,

You can manually set the file's name in the "Data" field( formatted type ) of your registry value or another way would be to set it through a formatted reference to a public property.

If you set it like this:
[#YOUR_FILE_NAME]
it will be resolved to the full path of the file. Here is an article that explains this.

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

Return to “Common Problems”