digitalman
Posts: 36
Joined: Mon Oct 30, 2006 7:55 pm

Error 2343 on custom dialog

I've added a custom dialog with two radio buttons (local & network) and a path edit and browse button control. I get an error 2343 when it tries to go to my dialog. I have conditions set on the path edit and browse button to enable only if the "network" radio is selected.

NEWDIALOGRADIOBUTTONGROUP_283_PROP <> "Yes" Disable
NEWDIALOGRADIOBUTTONGROUP_283_PROP = "Yes" Enable

Will the value of the group be the value of the selected radio button? I set the value of the network radio to Yes and the value of the local radio to No. I was trying to follow along the license agreenment dialog as an example but on that one the radio buttons have different popr names from the group. But it won't let me change the prop names of the radio buttons themselves as it inherits the group name.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
I get an error 2343 when it tries to go to my dialog
You get this error because the property of the "Path Edit" control is empty or is not a valid path. So please verify that the value of the property is not empty in the "Install Parameters" page. Also you can type the value of this property in the "Path Edit" control properties list.

Also this property must indicate to a folder so you need to create a "Property Based" folder with this property in the "Files and Folders" page.

If the problem persist please send a test AIP project that exhibits the same behavior to support at advancedinstaller dot com in order to investigate the problem.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
digitalman
Posts: 36
Joined: Mon Oct 30, 2006 7:55 pm

Ok, the dialog now shows correctly. But if I click the browse button and choose a folder (any folder) and then click OK I get an error 2727.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The property of the "Path Edit" control must indicate to a folder so you need to create a "Property Based" folder with this property in the "Files and Folders" page.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
digitalman
Posts: 36
Joined: Mon Oct 30, 2006 7:55 pm

There are 3 subfolders that I need to create either in the local APPDIR or on a network drive if they choose network. I currently setup 3 "property based" folders. Is there a way I can accomplish this without have 3 path edit and browse controls?

so essentially they choose a installation folder (locally). In that folder the main app, etc will be installed. But there will also be 3 subfolders in there with extra content. If they choose "network" I want the 3 subfolders to go on a different path.

gigi wrote:Hi,

The property of the "Path Edit" control must indicate to a folder so you need to create a "Property Based" folder with this property in the "Files and Folders" page.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
digitalman
Posts: 36
Joined: Mon Oct 30, 2006 7:55 pm

Ok I think I have it. I created one "property based" folder called "NETWORK_PATH" and created normal subfolders under it. When leaving my dialog I would like to set the "NETWORK_PATH" to the "APPDIR" if they select local. I tried setting the default value of "NETWORK"PATH" to APPDIR but it bombs since it's not defined at the start of install.
digitalman
Posts: 36
Joined: Mon Oct 30, 2006 7:55 pm

Ok figured it out. For benefit of others here's what I did. I guess the combo box for the name in the events dialog is what confused me. You have to choose SetProperty and then type over that with the property name.

So I added an event to the Next button. Chose SetProperty for name and changed to [NETWORK_PATH]. For the argument I chose [APPDIR] and then added a condition that the radio button was selected.
mcg
Posts: 3
Joined: Tue Nov 28, 2006 5:06 pm

I need to do something very similar and am getting an error 2343 as well.

I have a Path Edit on my custom dialog which I default to c:\. However, when I click my adjacent pushbutton I get a dialog with error 2343. The Path Edit has a valid value.

Published Events for my push button which I want to spawn a browse dialog:-

Name: [Browse_Property]
Argument: NETWORK_PATH (which I have added as an Install Parameter and created a Property Based folder for it)

Name: SpawnDialog
Argument: BrowseDlg

What am I doing wrong? How does the PATH_EDIT control get updated from the dialog?

Thanks
Martin
digitalman
Posts: 36
Joined: Mon Oct 30, 2006 7:55 pm

Make sure [NETWORK_PATH] is a property based folder defined under "Files and Folders"

Dan
mcg wrote:I need to do something very similar and am getting an error 2343 as well.

I have a Path Edit on my custom dialog which I default to c:\. However, when I click my adjacent pushbutton I get a dialog with error 2343. The Path Edit has a valid value.

Published Events for my push button which I want to spawn a browse dialog:-

Name: [Browse_Property]
Argument: NETWORK_PATH (which I have added as an Install Parameter and created a Property Based folder for it)

Name: SpawnDialog
Argument: BrowseDlg

What am I doing wrong? How does the PATH_EDIT control get updated from the dialog?

Thanks
Martin
mcg
Posts: 3
Joined: Tue Nov 28, 2006 5:06 pm

Yes I have done. I am at a loss.

Pretty glad that I have got a custom UI action to work today with my C++ code. Even managed to pop up a dialog telling the user the file is not valid. Just need to replace my edit control with this damm PATH EDIT and PUSHBUTTON.

Any other ideas? Gigi?

Return to “Common Problems”