Exemplo n.º 1
0
 def add_error_dialog(self):
     dialog = msilib.Dialog(
         self.db,
         "ErrorDlg",
         50,
         10,
         330,
         101,
         65543,
         self.title,
         "ErrorText",
         None,
         None,
     )
     dialog.text("ErrorText", 50, 9, 280, 48, 3, "")
     for text, x in [
         ("No", 120),
         ("Yes", 240),
         ("Abort", 0),
         ("Cancel", 42),
         ("Ignore", 81),
         ("Ok", 159),
         ("Retry", 198),
     ]:
         button = dialog.pushbutton(text[0], x, 72, 81, 21, 3, text, None)
         button.event("EndDialog", "Error%s" % text)
Exemplo n.º 2
0
 def add_wait_for_costing_dialog(self):
     dialog = msilib.Dialog(
         self.db,
         "WaitForCostingDlg",
         50,
         10,
         260,
         85,
         self.modal,
         self.title,
         "Return",
         "Return",
         "Return",
     )
     dialog.text(
         "Text",
         48,
         15,
         194,
         30,
         3,
         "Please wait while the installer finishes determining your "
         "disk space requirements.",
     )
     button = dialog.pushbutton("Return", 102, 57, 56, 17, 3, "Return",
                                None)
     button.event("EndDialog", "Exit")
Exemplo n.º 3
0
 def add_cancel_dialog(self):
     dialog = msilib.Dialog(
         self.db,
         "CancelDlg",
         50,
         10,
         260,
         85,
         3,
         self.title,
         "No",
         "No",
         "No",
     )
     dialog.text(
         "Text",
         48,
         15,
         194,
         30,
         3,
         "Are you sure you want to cancel [ProductName] installation?",
     )
     button = dialog.pushbutton("Yes", 72, 57, 56, 17, 3, "Yes", "No")
     button.event("EndDialog", "Exit")
     button = dialog.pushbutton("No", 132, 57, 56, 17, 3, "No", "Yes")
     button.event("EndDialog", "Return")