Prerequisites category dialog - Advanced Installer Community
darkcyber
Posts: 13
Joined: Thu Oct 30, 2014 3:02 am

Prerequisites category dialog

Hello,

is it possible to create category on prerequisites dialog , i want to install standart application like few browser , like few optimizer app , like few pdf reader , so i want to show browser category , optimizer category and pdf reader category in prerequisites dialog. is it possible ? like this attachment
Attachments
Category Prerequisites
Category Prerequisites
category ai.png (2.12 KiB) Viewed 9173 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisites category dialog

Hello,

Please keep in mind that "Prerequisites" dialog is a setup dialog created using our EXE bootstrapper and it isn't customizable.

In order to achieve what you want you should add your prerequisites as feature-based prerequisites. Then on "Dialogs" page you can create a new dialog and customize it accordingly with your prerequisite state.

If you have any questions let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
darkcyber
Posts: 13
Joined: Thu Oct 30, 2014 3:02 am

Re: Prerequisites category dialog

i already read this
http://www.advancedinstaller.com/user-g ... ature.html
in the end you'll need to define the features for your project in the Organization Page:
"Feature 1" with the Identifier Feature1 and condition CHECK1
"Feature 2" with the Identifier Feature2 and condition CHECK2
"Feature 3" with the Identifier Feature3 and condition CHECK3
Can you tell me more spesific where i can set install condition to "CHECK1","CHECK2", and so on ? i cant find it in organization page.
darkcyber
Posts: 13
Joined: Thu Oct 30, 2014 3:02 am

Re: Prerequisites category dialog

Okay, here is the case , i want to install to software "CDBurnerXP" and "CCleaner" , and i want selection dialog like this attachment (show software category)

So when CDBurnerXP is checked , will install CDBurnerXP , if not checked dont install
So when CCleaner is checked , will install CCleaner , if not checked dont install
If both is checked , will install CDBurnerXP and CCleaner , if both is not checked dont install

i read http://www.advancedinstaller.com/user-g ... ature.html , but still confusing

i cant do like i want if i use default prerequisites dialog.

Project Attached

Thanks.
Dark Cyber
Attachments
Standart Application Silent Installer.aip
(20.66 KiB) Downloaded 243 times
category ai 2.png
category ai 2.png (1.95 KiB) Viewed 9156 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisites category dialog

Hello,

In order to display the Install Conditions for a feature, please use the Add Install-time Conditions button, as you can see below:
installTimeConditions.png
installTimeConditions.png (8.54 KiB) Viewed 9153 times
So when CDBurnerXP is checked , will install CDBurnerXP , if not checked dont install
So when CCleaner is checked , will install CCleaner , if not checked dont install
In order to achieve this, you need to select the Not installed option for the installation behavior and add in the Installed if: field the property assigned to the checkbox control. Please use the attached image for your reference:
featureInstallationBehavior.png
featureInstallationBehavior.png (34.52 KiB) Viewed 9153 times
where the CHECKBOX_CLEANER_SELECTED is the property assigned to the checkbox control from the Dialogs page as you can see bellow:
checkboxProperties.png
checkboxProperties.png (29.56 KiB) Viewed 9153 times
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
darkcyber
Posts: 13
Joined: Thu Oct 30, 2014 3:02 am

Re: Prerequisites category dialog

Hello,

Sorry for late reply , its work like a charm. i have another question about prerequisites.

1. by default in prerequisites dialog all app is checked before install , how to add "Check all" and "Uncheck all" button in prerequisites dialog ?
so when user click "check all" all app is checked and if user click "Uncheck all" it will uncheck all app

2. Assume i build silent installer which contain 2 app , CCleaner and Glary Utilites , and i add prerequisites dialog , then i run and just click CCleaner , so its only install CCleaner in computer , the question is how to add "Show installed app" and "Hide installed app" button in prerequisites dialog ? so when user click "show installed app" , it will show installed app , and if user click "Hide installed app" it will hide installed app.

Thanks in advance.
Dark Cyber
darkcyber
Posts: 13
Joined: Thu Oct 30, 2014 3:02 am

Re: Prerequisites category dialog

Hello,

any body here :D

Waiting for support :D

Thanks, a lot :D
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisites category dialog

Hello,

For this, you can execute a custom action when the Select all is enabled. e.g. set the other properties assigned to the checkbox controls using the set installer property value control event.
Reverse operation should be done when the Select none is used.

You can take a look on the Set value according to selection RadioButtonGroup forum thread which debates a similar subject.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
darkcyber
Posts: 13
Joined: Thu Oct 30, 2014 3:02 am

Re: Prerequisites category dialog

Dan wrote:Hello,

For this, you can execute a custom action when the Select all is enabled. e.g. set the other properties assigned to the checkbox controls using the set installer property value control event.
Reverse operation should be done when the Select none is used.

You can take a look on the Set value according to selection RadioButtonGroup forum thread which debates a similar subject.

Best regards,
Dan
Here i have a problem i create 2 check box the

1. name "CheckBox_1" , text "Kill Me" , property name "CHECKBOX_1_PROP"
2. name "CheckBox_2" , text "Do Job" , property name "CHECKBOX_2_PROP"

my scenario is ,
1. when i check "Do Job" , it also check "Kill Me"
2. then when i uncheck "Do Job" , it also uncheck "Kill Me".

unfortunately i just can do first scenarion here is my way in "Published Events" , "New" , Control Event "Set installer property value" , event option "Property = CHECKBOX_1_PROP , argument = true , condition leave default"

so when i check "Do job" it also check "Kill Me" but when i uncheck "Do Job" the "Kill Me" still checked.

maybe the question is , how to uncheck "kill me" when "Do job" is unchecked ?

Thanks,
Dark Cyber
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisites category dialog

Hi,

Most likely you forgot to set the property with a null value when the checkbox is deselected.
Please note that you need to do the following steps:
  • Set the property of the second checkbox when the first one is checked
  • Reset the property of the second checkbox when the first one is unchecked.
Please take a look on the attached sample project which implement your scenario.

Best regards,
Dan
Attachments
SampleCheckBox.zip
(3.04 KiB) Downloaded 220 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
darkcyber
Posts: 13
Joined: Thu Oct 30, 2014 3:02 am

Re: Prerequisites category dialog

Dan wrote:Hi,

Most likely you forgot to set the property with a null value when the checkbox is deselected.
Please note that you need to do the following steps:
  • Set the property of the second checkbox when the first one is checked
  • Reset the property of the second checkbox when the first one is unchecked.
Please take a look on the attached sample project which implement your scenario.

Best regards,
Dan
work great and never mind , then i have new question.

i have 2 app prerequisites , the first one is CD Burner x86 edition and the second is CD Burner x64 edition.

i want to create 2 checkbox in dialog , but i want to detect the computer , if system is x86 then show CD Burner X86 checkbox and hide CD Burner x64 edition checkbox ,then if system is x64 then show CD Burner x64 edition checkbox and hide CD Buner X86 edition , how to do this ? :D

Thanks,
Dark Cyber
darkcyber
Posts: 13
Joined: Thu Oct 30, 2014 3:02 am

Re: Prerequisites category dialog

never mind i can do it by set control condition > new > condition fill with "(VersionNT64 = 603 AND MsiNTProductType = 1)" , then set action with show or hide.

how to join the other OS ?

603 for win 8.1
602 for win 8
601 for win 7

how to join all of them in condition ? with this one ? "(VersionNT64 = 603 AND 602 AND 601 AND MsiNTProductType = 1)" or how ?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisites category dialog

Hello,
i have 2 app prerequisites , the first one is CD Burner x86 edition and the second is CD Burner x64 edition.
i want to create 2 checkbox in dialog , but i want to detect the computer , if system is x86 then show CD Burner X86 checkbox and hide CD Burner x64 edition checkbox ,then if system is x64 then show CD Burner x64 edition checkbox and hide CD Buner X86 edition , how to do this ?
In order to achieve that, you can use the Control condition for the related controls. You can condition their appearance through the VersionNT64 property. The installer sets the VersionNT64 property to the version number for the operating system only if the system is running on a 64-bit computer. So, on a 32-bit computers the related property is empty.

So, you can add a hide control condition for the CD Burner x86 option when VersionNT64.
For CD Burner x64 edition checkbox you can add a hide control condition when NOT VersionNT64.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
darkcyber
Posts: 13
Joined: Thu Oct 30, 2014 3:02 am

Re: Prerequisites category dialog

Hello,

these condition work great, i have new question about disabled checkbox if app is already installed , i have CD Burner XP in prerequisites , but i want to disable checkbox if CD Burner XP already installed ? ( new custom dialog ), what condition must be use in control condition tab ? tired searching full list condition for control condition without result.

Thanks,
Dark Cyber
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisites category dialog

Hello,

In order to check if the CD Burner XP is installed, you can create a search operation in the Search page.

If the search will be successfully the prerequisite is installed and the property assigned to the search operation will be set, otherwise if the search operation will not be successfully, the property will be empty as the prerequisite will not be found on the target machine.

You can use the property of the search operation to condition the appearance of the CD Burner XP option on the dialog, similar as above (using hide and show control conditions).

Please let me know if that helped.

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

Return to “Common Problems”