rhino5000
Posts: 1
Joined: Mon Sep 10, 2018 9:15 am

FolderDlg automatically append productname

Hi,

Is it possible to automatically append the product name to the install path (appdir?) after Folder selection?

This is what I need:
1. You click "browse" and select "C:\applications"
2. You click "Select folder" (closing the folder selection dialog)
3. The folder it will be installed to is "C:\applications\(productnamehere)"

Currently it would install it in "C:\applications", which is not what I want.

Kind regards,

Rhino
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: FolderDlg automatically append productname

Hello Rhino and welcome to our forums,

Yes, this is possible. In order to achieve this, you can go "Dialogs" page, select the "FolderDlg" dialog, click on the "Next" button and under "Published Events" tab, click on "New..." and from the "Edit Control Event", select "Set installer property value" with the following "Event Options":

-Property - press on the "..." button and in the field insert the following:

Code: Select all

[APPDIR]
-Argument - press on the "..." button and in the field insert the following:

Code: Select all

[APPDIR]\[ProductName]
Condition - leave unchanged.

Let me know if this helps!

Kind regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”