show path - 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!

CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

show path

Hi

How can i show the path in the folder dialog, when i select client from client/server dialog.

I want folder dialog to show: Application\Client when someone selects the client button. now it only show Application for both client and server........


/Carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: show path

Hello Carl,

In order to achieve what you want you can proceed like this:
- Go to "Dialogs" page, select the "ClientServerDlg" dialog and on [Client] button add a "Set installer property value" published event like this:
  • Property: [APPDIR]
    Argument: [ProgramFilesFolder][Manufacturer]\[ProductName]\Client
- On [Server] button add a "Set installer property value" published event like this:
  • Property: [APPDIR]
    Argument: [ProgramFilesFolder][Manufacturer]\[ProductName]\Server
- Build and run your project.

Let us know if this helps, otherwise give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: show path

That part seems to work good, but there is an issue with modify from the control panel.

Modify seems to be using [APPDIR] only, do you know how i can set the path for modify to?

so when i select the client feature, after installing server feature and then it installs it should go to
Application\Client and Application\Server dir, it doesnt client feature now just seems to install everything into application........


/carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: show path

Hello Carl,

In order to achieve this you can proceed like this:
- Go to "Files and Folders" page, select "Client Files" folder and from its context menu choose "Properties..." option.
- In the "Edit Folder" dialog disable "Install folder content into parent folder" option and set the "Identifier" field to CLIENT.
- Go to "Organization" page and select the "Client" feature.
- In the "Directory" field pick the "Client Files" folder.
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: show path

Seems this does not work, mainly becuase of the part where I set the path. Are there no other way to show the path? in the folder dialog...
That makes it so i have to check install into parent folder ....... :( and the modify also installs to parent folder.....

/Carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: show path

Hello Carl,

I'm afraid you should disable the "Install folder content into parent folder" option for your folders if you want to display a specific path on "Modify" mode. Also, you should change the features directories accordingly in the "Organization" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”