Registry Dos File name length - 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!

alexzizzi
Posts: 13
Joined: Wed Apr 30, 2008 10:44 pm

Registry Dos File name length

Hi,

Basically in the installer I'm creating, I have a registry value using the property of one of the files added to the installation. However, this specific registry value has to be limited to DOS file names. For example: chickencoop.exe should be instead CHICKE~1.exe. Advanced Installer instead puts the entire file name rather than the dos file name that is needed by windows. Any idea on how I could get around this? I've read that many registry values require a DOS file name length. By the way, I'm testing this in Windows XP. Thank you.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Registry Dos File name length

Hi,

This is supported by any Formatted field in Advanced Installer. Basically, you can set a property to a file reference (for example, "[#file]") in the "Data" field of the Edit Registry Entry dialog. For this reference you can replace # with ! in order to obtain the full short path of the file (you would have "[!file]").

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”