AshwiniKolan
Posts: 2
Joined: Wed Sep 13, 2017 12:44 pm

Error 2856. Creating a second copy of the dialog UsageDataDialog.

Hi,

I have created a new dialog. On click of back button I hit this problem.

Error 2856. Creating a second copy of the dialog <<DialogName>>.

I have created many other dialogs before this but have not faced this problem.

A little background,

Dialog A: Has a spawn dialog next to it, which has two buttons Yes and No. When clicked Yes, the dialog B is shown. When clicked No, the spawned dialog is closed.

On click of next button, dialog B is shown

Dialog B: The back button on dialog B works two ways.

When ( OLDPRODUCTS <> "" )-> go to dialog C
When ( OLDPRODUCTS = "")-> go to dialog A
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Error 2856. Creating a second copy of the dialog UsageDataDialog.

Hello,

I have replicated your scenario and I'm afraid that what you are trying is not possible. This is due to the behaviour of the "Display a specific child dialog - SpawnDialog" event. This event notifies the installer to create a child of a modal dialog while keeping the current dialog running.

Because you are using it to go to the next dialog you are leaving the A dialog running, you can also see this on your taskbar, 2 separate dialogs for the installer (A and B). The only way for you to close dialog A is for the child dialog to return to it. This is a limitation of the Windows installer.

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

Return to “Common Problems”