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

Use Static Text as Path Edit to dispaly install path

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: 62
Joined: Wed Mar 29, 2017 2:45 pm

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

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.09KiB)Viewed 17648 times

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

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

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


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

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

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

Return to “Feature Requests”