wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

set control attribute visible=false

I have been searching all day and haven't found it yet. The ExitDialog on my installation has the option to start an installed program (so the client may set up the license). While this is helpful after the installation of a full release, it is not needed for patches nor maintenance as I leave the license intact for those operations.

The property is RUNAPPLICATION, the checkbox name is LaunchProdCheckBox, The Launch application is enabled and if the user selects the checkbox, the license dialog is opened for entry.

I need to hide this control if [ProductVersion]<>[BaseVersion] or Maint. I know it is an attribute but can't find the syntax to access it.

The logic I want is:
LaunchProdCheckBox.Visible=[ProductVersion]=[BaseVersion] and not AI_MAINT

I have no problem using custom action with Session.DoAction("UpdateMsiEditControls") but since Control Conditions seem to be disabled that particular control, I am unsure how to set it.
Attachments
ExitDialog Editor View
ExitDialog Editor View
ExitDialog.jpg (97.35 KiB) Viewed 4674 times
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: set control attribute visible=false

Hello,

Indeed the Control Conditions are disabled for the predefined checkbox to launch the application. However, you can delete the text next to it and hide the related checkbox from its right properties.
Then, you can add a new checkbox control and add the necessary Control Conditions to implement your scenario.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: set control attribute visible=false

Thanks, Dan. I have done a similar function with another checkbox on another dialog. I was unaware the ExitDialog controls were protected.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: set control attribute visible=false

You're welcome,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”