diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py --- a/Tools/msi/msi.py +++ b/Tools/msi/msi.py @@ -405,6 +405,7 @@ ("ErrorDialog", "ErrorDlg"), ("Progress1", "Install"), # modified in maintenance type dlg ("Progress2", "installs"), + ("NewsShown", "0"), ("MaintenanceForm_Action", "Repair")]) # Fonts, see "TextStyle Table" @@ -626,7 +627,8 @@ c.event("SpawnDialog", "ExistingDirectoryDlg", 'TargetExists=1 and REMOVEOLDVERSION="" and REMOVEOLDSNAPSHOT=""', 2) c.event("SetTargetPath", "TARGETDIR", 'TargetExists=0 or REMOVEOLDVERSION<>"" or REMOVEOLDSNAPSHOT<>""', 3) c.event("SpawnWaitDialog", "WaitForCostingDlg", "CostingComplete=1", 4) - c.event("NewDialog", "SelectFeaturesDlg", 'TargetExists=0 or REMOVEOLDVERSION<>"" or REMOVEOLDSNAPSHOT<>""', 5) + c.event("SpawnDialog", "PathInfoDlg", "NewsShown=0", 5) # Show this once no matter what. + c.event("NewDialog", "SelectFeaturesDlg", 'TargetExists=0 or REMOVEOLDVERSION<>"" or REMOVEOLDSNAPSHOT<>""', 6) c = seldlg.cancel("Cancel", "DirectoryCombo") c.event("SpawnDialog", "CancelDlg") @@ -641,6 +643,29 @@ c = seldlg.pushbutton("NewDir", 324, 70, 30, 18, 3, "New", None) c.event("DirectoryListNew", "0") + + ##################################################################### + # PathInfoDlg + path_dialog = PyDialog(db, "PathInfoDlg", x, y, w, h, modal, title, + "Ok", "Ok", "Ok") + path_dialog.title("New for Python 3.3") + path_dialog.text("News", 135, 85, 240, 130, 0x30003, + "New in 3.3 is the ability to add [TARGETDIR] to\n" + "your system's Path variable. This option allows you\n" + "to type `python` at a command prompt without\n" + "requiring anything else on your part.\n\n" + "However, users of multiple versions need to be\n" + "aware that this will overrule the behavior of any\n" + "existing Python installations that you have placed\n" + "on the Path.\n\n" + "If you choose to enable this feature, it will be\n" + "applied after you logout." + ) + + c = path_dialog.cancel("Ok", "Ok", name="Ok") + c.event("[NewsShown]", "1", order=1) + c.event("EndDialog", "Return", order=2) + ##################################################################### # SelectFeaturesDlg features = PyDialog(db, "SelectFeaturesDlg", x, y, w, h, modal|track_disk_space,