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

Use Static Text as Path Edit to dispaly install path

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

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 17747 times
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

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

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: 6582
Joined: Wed Jun 13, 2018 7:49 am

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

It will definitely be of help.
:)

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

Return to “Feature Requests”