Use Static Text as Path Edit to dispaly install path

Request new features that you would like to see in the next version of Advanced Installer.
Post Reply
rafizan46
Posts: 49
Joined: Wed Mar 29, 2017 2:45 pm
Contact:

Use Static Text as Path Edit to dispaly install path

Post by rafizan46 » Sun Jul 28, 2019 3:13 pm

Hi, is it possible for me to use Static text as Path Edit to display the Install Direction? I already do it, The display text I put [APPDIR] , it display the default location, but the problem is, the static text not updating and not showing the new file location. Is there are ways to refresh the Static text automatically every time user try to change install path?

rafizan46
Posts: 49
Joined: Wed Mar 29, 2017 2:45 pm
Contact:

Re: Use Static Text as Path Edit to dispaly install path

Post by rafizan46 » Mon Jul 29, 2019 8:04 am

Its ok, I already solve this problem.

Here what I do,

On Static Text subscribed Event,
Subscribe to: Display action text during install
Attribute to set: Text

Then I use VB Script to trigger Refresh the current dialog.
The script is here: https://www.advancedinstaller.com/user- ... ialog.html
You can then call this script by placing an Execute custom action published event on dialog Init Events.

The browse button added the Refresh the current Dialog event.

The static text Property Name is set to "MYPROP"
The display text is: [APPDIR][MYPROP]
Attachments
Capture.PNG
Capture.PNG (388.09 KiB) Viewed 12769 times

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

Re: Use Static Text as Path Edit to dispaly install path

Post by Catalin » Mon Jul 29, 2019 8:12 am

Hello,

Thank you for your followup on this and for sharing your solution with us.

I am sure this will be of help for further users facing a similar scenario.

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

rafizan46
Posts: 49
Joined: Wed Mar 29, 2017 2:45 pm
Contact:

Re: Use Static Text as Path Edit to dispaly install path

Post by rafizan46 » Mon Jul 29, 2019 8:57 am

Yeah, I hope so :)

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

Re: Use Static Text as Path Edit to dispaly install path

Post by Catalin » Mon Jul 29, 2019 1:14 pm

It will definitely be of help.
:)

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

Post Reply