hans
Posts: 11
Joined: Mon Mar 14, 2011 3:41 pm

Refreshing the UI

I'm trying to follow http://www.advancedinstaller.com/user-g ... ialog.html - "Without Enhanced UI".

I've created a script with one function:
Session.Property("MYPROP") = cstr(10)

Under Custom Actions I've added both the script and the UpdateMsiEditControls action. Both are executed synchronous.
I've added a button with 2 published events to my dialog (in the following order).
1) DoAction MyScript
2) DoAction UpdateMsiEditControls

When i press the button, nothing happens. If then click next and then back, I can see that MYPROP has been updated to "10".
What am I missing to refresh the dialog while shown?

I also tried using the Enhanced UI, which works, but I prefer without the need for the bootstrapper
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Refreshing the UI

Hi,

Can you please specify the type control are you using for displaying the property?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hans
Posts: 11
Joined: Mon Mar 14, 2011 3:41 pm

Re: Refreshing the UI

Edit Box
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Refreshing the UI

Hello,

Can you please send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lwardwell
Posts: 8
Joined: Tue May 17, 2011 5:03 pm

Re: Refreshing the UI

I'm seeing the same behavior in 8.2 and still in 8.3 this morning.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Refreshing the UI

Hi,

This is caused by a limitation in Windows Installer. Please try this:
- select the button which runs your custom actions
- create a SetProperty control event which sets the property to itself, for example:

Code: Select all

Name: [PROPERTY]
Argument: [PROPERTY]
- make sure that it's scheduled after your script, but before UpdateMsiEditControls
-save and build your project

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”