Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

EndDialog Exit Error


11 replies to this topic

haroldxious

haroldxious
  • Full Members
  • 70 posts

Posted 28 February 2007 - 06:05

I cant execute the end dialog correctly.

In the maintenancetype dialog there are 3 radiobuttons which has a property of _IsMaintenanceType. I have added another radiobutton on the dialog it has a value of Go..so on that dialog i have 4 radio buttons on the radio group

Modify = value: Change
Repair = value: Reinstall
Remove = value: Remove
RadioBUtton = value: Go

i want that if i select the RadioButton then click next i will call a CA then after the custom action is executed the dialog will exit..

I have done on the Next button.
Event = DoAction
Arguments = SampleCA
Condition = _IsMaintenanceType = "Go"

Event = EndDialog
Argument = Exit
Condition = _IsMaintenanceType = "Go"


is this the properway to handle this?

after the SampleCA is executed the SetupCompleteError showsup.

SampleCA has a code of only messagebox to check..

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 February 2007 - 08:12

Did you check the return value from your CA?

haroldxious

haroldxious
  • Full Members
  • 70 posts

Posted 28 February 2007 - 09:43

my CA is simply Calling a messagebox just for sample..

eventhough i will not call CA, EndDialog still doesnt seem to be functional..for example i only have..

Next Button(this is on maintenance type dialog)

Event = EndDialog
Argument = Exit
Condition = _IsMaintenanceType = "Go"

Still the dialog SetupCmpleteError dialog appears

haroldxious

haroldxious
  • Full Members
  • 70 posts

Posted 28 February 2007 - 09:57

is it not possible to end the maintenance type dialog upon selecting a certain radio button and clicking the next button?

thats what im trying to implement, and still having a hard time to figure it out..

pls help

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 February 2007 - 10:54

Generate a log file to see where the error is coming from.

haroldxious

haroldxious
  • Full Members
  • 70 posts

Posted 01 March 2007 - 01:55

Action 16:45:00: MaintenanceWelcome.
Action start 16:45:00: MaintenanceWelcome.
Action 16:45:00: MaintenanceWelcome. Dialog created
MSI © (D0:60) [16:45:00:863]: PROPERTY CHANGE: Modifying CostingComplete property. Its current value is '0'. Its new value: '1'.
MSI © (D0:60) [16:45:00:878]: Note: 1: 2205 2: 3: Registry
MSI © (D0:60) [16:45:00:878]: Note: 1: 2205 2: 3: BindImage
MSI © (D0:60) [16:45:00:878]: Note: 1: 2205 2: 3: ProgId
MSI © (D0:60) [16:45:00:878]: Note: 1: 2205 2: 3: PublishComponent
MSI © (D0:60) [16:45:00:878]: Note: 1: 2205 2: 3: SelfReg
MSI © (D0:60) [16:45:00:878]: Note: 1: 2205 2: 3: Extension
MSI © (D0:60) [16:45:00:878]: Note: 1: 2205 2: 3: Font
MSI © (D0:60) [16:45:00:878]: Note: 1: 2205 2: 3: Shortcut
MSI © (D0:60) [16:45:00:878]: Note: 1: 2205 2: 3: Class
MSI © (D0:60) [16:45:00:878]: Note: 1: 2727 2:
Info 2898.For MSSansBold8 textstyle, the system created a 'Tahoma' font, in 0 character set.
Info 2827.The button &Remove on the radio button group RadioGroup on dialog MaintenanceType extends beyond the boundaries of the group to the right by 1 pixels.
Info 2898.For MSSWhiteSerif8 textstyle, the system created a 'Tahoma' font, in 0 character set.
Action 16:45:01: MaintenanceType. Dialog created
MSI © (D0:60) [16:45:02:910]: PROPERTY CHANGE: Modifying _IsMaintenance property. Its current value is 'Change'. Its new value: 'Go'.
Action ended 16:45:03: MaintenanceWelcome. Return value 2.
MSI © (D0:AC) [16:45:03:753]: Doing action: SetupInterrupted
Action 16:45:03: SetupInterrupted.
Action start 16:45:03: SetupInterrupted.
Info 2826.Control ShowMsiLogText on dialog SetupInterrupted extends beyond the boundaries of the dialog to the right by 24 pixels.
Action 16:45:03: SetupInterrupted. Dialog created
Action ended 16:45:05: SetupInterrupted. Return value 2.
Action ended 16:45:05: INSTALL. Return value 2.

haroldxious

haroldxious
  • Full Members
  • 70 posts

Posted 01 March 2007 - 01:58

Above is the log file. When i select the radiobutton that has a value of go and has a condition of..

EndDialog - Exit - _IsMaintenance = "Go"

it calls the setupinterrupted dialog...

I dont know if this has something to do with the ProgressType property..because Modify, Reinstall and Remove radio button has a ProgressType Property value by default...

Edited by haroldxious, 01 March 2007 - 02:03.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 01 March 2007 - 17:46

Not sure if that's the cause for the problem, but fix it and see if it helps:
QUOTE
Info 2827.The button &Remove on the radio button group RadioGroup on dialog MaintenanceType extends beyond the boundaries of the group to the right by 1 pixels.


haroldxious

haroldxious
  • Full Members
  • 70 posts

Posted 02 March 2007 - 02:01

still didnt work stefan..

can you suggest on how to end the dialog using enddialog exit when the next button is clicked in the maintenanceType dialog.

i just cant make it right..

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 05 March 2007 - 11:01

After re-reading your initial post: you are calling EndDialog with Exit which means user-exit, i.e. user canceled the setup. So what you see is expected behaviour. Maybe you want to use Return as argument instead.

haroldxious

haroldxious
  • Full Members
  • 70 posts

Posted 06 March 2007 - 01:04

using return as an argument shows like you are still installing...i want to have the behavior of the button FINISH on some dialogs...FINISH button when clicked exits the dialog...and the condition event for that button is enddialog - exit - 1...ive just copied the condition but for me its not working.....

any other workaround for this?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 March 2007 - 17:49

Not sure, but I guess the Finish dialog is special because of its sequence number.
Maybe you could add a condition on all subsequent actions in your UI sequence so that they are not executed in the case where you want to end the install.
In any case the setup will end with one of the dialogs with negative sequence number, either success or user exit.