Custom Dialog : multiple problems - Advanced Installer Community

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!

imbolcus2
Posts: 3
Joined: Tue Feb 26, 2008 3:22 pm

Custom Dialog : multiple problems

Hi everybody,

Sorry for my poor english. I'll try to write as correct as I can...

I need to create a custom dialog which set 2 properties : IPADDRESS1 and IPADDRESS2.
IPADDRESS1 is very simple to get : the user defines it himself.
Only the 3rd byte in the address change so I create 1 textbox with "192.1.", 1 empty Editbox and another textbox with ".1"
The first part of my dialog look like this :
IP Address mag : 192.1. ___ .1
The empty editbox have the property BYTE3IPADDRESS1

The second part of my custom dialog :
The property IPADDRESS2 is defined from BYTE3IPADDRESS1 and a RadioButton Group...
The radiobutton group have only 2 radiobutton (radio1 and radio2).
If radio1 is selected, IPADRESS2=192.1.BYTE3IPADDRESS1.1
else if radio2 is selected then another field 192.168.___.1 have to appear and the user define himself the correct number (BYTE3IPADDRESS2).

Then when i get IPADDRESS1, IPADDRESS2, BYTE3ADDRESS1 and BYTE3ADDRESS2, I could lunch my own script which modify the IP address, the hosts file of the PC, etc

My problem concerns the 2nd part... I'm a noob and I totally lost.
I test multiple things but nothing works... I don't know how to do that.

Could you help me ?

Am I clear in my description ?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Here is how to do this:
- add the radio button group and the two radio buttons
- set RADIO as the property of the radio button group and "radio1" and "radio2" as the values of the radio buttons
- create the same structure of editboxes you are using for the first IP under the radio button group (make sure that they are not covered by the radio button group)
- for each edit box set these control conditions:

Code: Select all

RADIO="radio1"       Hide
RADIO="radio2"       Show
- for the "Next" button create these SetProperty Published control events:

Code: Select all

[IPADDRESS1]  192.1.[BYTE3IPADDRESS1].1  AI_INSTALL
[IPADDRESS2]  192.1.[BYTE3IPADDRESS2].1  AI_INSTALL AND RADIO="radio2"
[IPADDRESS2]  [IPADDRESS1]               AI_INSTALL AND RADIO="radio1"
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
imbolcus2
Posts: 3
Joined: Tue Feb 26, 2008 3:22 pm

You are fabulous !
It works amazingly :lol:

Your solution is clear and clean. I like it !
And i'm ashamed by my very basic knowledge :oops:

Anyway, I understand very much how to use CustomDialogs now.
I could add functionnalities which work flawlessly...

Thank you very much !!

Return to “Common Problems”