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!

amaru96
Posts: 3
Joined: Mon Mar 02, 2015 12:22 am

Remove final \ from APPDIR reg key

Hi guys, my installer creates a reg key called "InstallPath" with the field [APPDIR].

The result appears like c:\program files\MyApplication\

Is there a way to remove the final \ in the path so it's like this instead: c:\program files\MyApplication
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Remove final \ from APPDIR reg key

Hello and welcome to Advanced Installer forums,

In order to achieve that you can create a custom action that will remove the trailing backslash and assign the new value to another property. You can use this property to store the installation path in the registry, and not APPDIR.
For details, please take a look on the How do I remove a trailing backslash from the value of a property? article with related information for hints and guidance.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”