We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

capeuk
Posts: 35
Joined: Tue Jun 15, 2010 11:13 am
Location: London, UK
Contact: Website

More real examples

Hi Advanced Installer Team,

We need more real examples after the current definitiosn in your online user guide/help file. It is very difficult connecting the definitions and the user interface input when it comes to using the simplest of features in your software.

For example, I am trying to set a some controls prior to the display of a dialog and I read that one would use the initialzation events and i was excited about this as it makes sense but when it came to navigate through your user interface i was lost - now, i am not a novice in programming - an example would have helped me along very swiftly and i could build upon it for other things. I know this means having an examples for all initialization events across all controls. The time investment would pay off from ease of use and higher subscription to your software which translate to it's longivity in terms of longer revenue stream period and better software.

To give you the exact example, i encountered. On a custom dialog i created, i have an unchecked checkbox control. I want to set a check this control as before the dialog appears. So I thought i would define an initialization event. I defined a new initialization event, selected "set property" from here one i was just guessing what come next, of course all my guesses came to nothing - didn't work. So if I had an example I would have been on my way. I didn't use the "default value" property because it didn't work for me. Yes, the default value put a tick on the checkbox but i couldn't pick it up in my custom action VB script until i physically unchecked then checked the control and this was bad for my users.

The custom action script example allow me to even make sense of your software in the first place, otherwise, i would have definitely last this long. I am still evaluating but I am solidifying my views on Advanced Installer.

Thanks

Moshud
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: More real examples

Hi Moshud,

We will try to include more examples in our User Guide. Thank you for your suggestion.
I am trying to set a some controls prior to the display of a dialog and I read that one would use the initialzation events and i was excited about this as it makes sense but when it came to navigate through your user interface i was lost
Please note that the recommended approach is to use default values when possible.
I didn't use the "default value" property because it didn't work for me. Yes, the default value put a tick on the checkbox but i couldn't pick it up in my custom action VB script until i physically unchecked then checked the control and this was bad for my users.
This seems to be a problem with the custom action. How are you retrieving the property value? We tested this scenario and the checkbox state is retrieved correctly.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
capeuk
Posts: 35
Joined: Tue Jun 15, 2010 11:13 am
Location: London, UK
Contact: Website

Re: More real examples

Hi Cosmin,

Great that the user guide would be updated, would greatly enhanced your product. I am excited already. You have a good product that has a wide appeal but with enhanced user guide you would have a great product.

Using default value was my preferred method too but the default value was not picked up in my custom Action script.

You said there is a problem with the custom action script but the same CA script worked if i left the checkbox control unchecked and at installation run time i manually checked the checkbox. In this scenario, the CA script would pick up the correct state of the checkbox. However, if i used the default value to check the checkbox control and don't click on the control at installation time the state of the checkbox control returned "uncheck" in the CA script. My script is based on your example script on checkbox and radio button controls. Find below my CA script. I have tried "AirefreshDlg" but didn't make any difference. It is very easy to recreate perhaps a bug gone unnoticed all this while.

Code: Select all

' Set contants for the INSTALLSTATE_ABSENT and INSTALLSTATE_LOCAL feature states
Const msiInstallStateAbsent = 2
Const msiInstallStateLocal  = 3

'setting AiRefreshDlg refreshes the controls on a dialog when Enhanced UI is enabled
Session.Property("AiRefreshDlg") = cstr(1)


' Set the install state of the feature with the identifier "FeatureP2" [European Pallets]
If Session.Property("CHECKBOXPB1") = "CheckBox" Then 
   Session.FeatureRequestState("FeatureP2") = msiInstallStateLocal
Else
   Session.FeatureRequestState("FeatureP2") = msiInstallStateAbsent
End If

' Set the install state of the feature with the identifier "FeatureP1" [US Pallets]
If Session.Property("CHECKBOXPB2")="CheckBox" Then
   Session.FeatureRequestState("FeatureP1") = msiInstallStateLocal
Else
   Session.FeatureRequestState("FeatureP1") = msiInstallStateAbsent
End If
Thanks

Moshud
capeuk
Posts: 35
Joined: Tue Jun 15, 2010 11:13 am
Location: London, UK
Contact: Website

Re: More real examples

Hi Cosmin,

All works perfectly. By matching the "default value" with the "value" property my CA script now picks up the pre-set state of my checkbox control. Setting the control through Init events works too. Thanks very much.

Talk to you soon.

Thanks

Moshud

Return to “Feature Requests”