def showInstallGui(): gui.mainFrame.prePopup() previous = installer.comparePreviousInstall() if previous > 0: # The existing installation is newer, which means this will be a downgrade. # Translators: The title of a warning dialog. d = wx.Dialog(gui.mainFrame, title=_("Warning")) mainSizer = wx.BoxSizer(wx.VERTICAL) item = wx.StaticText(d, # Translators: A warning presented when the user attempts to downgrade NVDA # to an older version. label=_("You are attempting to install an earlier version of NVDA than the version currently installed. " "If you really wish to revert to an earlier version, you should first cancel this installation and completely uninstall NVDA before installing the earlier version.")) mainSizer.Add(item) sizer = wx.BoxSizer(wx.HORIZONTAL) item = wx.Button(d, id=wx.ID_OK, # Translators: The label of a button to proceed with installation, # even though this is not recommended. label=_("&Proceed with installation (not recommended)")) sizer.Add(item) item = wx.Button(d, id=wx.ID_CANCEL) sizer.Add(item) item.SetFocus() mainSizer.Add(sizer) d.Sizer = mainSizer mainSizer.Fit(d) d.CentreOnScreen() with d: if d.ShowModal() == wx.ID_CANCEL: gui.mainFrame.postPopup() return InstallerDialog(gui.mainFrame, previous is not None).Show() gui.mainFrame.postPopup()
def doSilentInstall(startAfterInstall=True): prevInstall = installer.comparePreviousInstall() is not None doInstall(installer.isDesktopShortcutInstalled() if prevInstall else True, config.getStartOnLogonScreen() if prevInstall else True, False, prevInstall, silent=True, startAfterInstall=startAfterInstall)
def doSilentInstall(startAfterInstall=True): prevInstall = installer.comparePreviousInstall() is not None startOnLogon = globalVars.appArgs.enableStartOnLogon if startOnLogon is None: startOnLogon = config.getStartOnLogonScreen() if prevInstall else True doInstall(installer.isDesktopShortcutInstalled() if prevInstall else True, startOnLogon, False, prevInstall, silent=True, startAfterInstall=startAfterInstall)
def showInstallGui(): gui.mainFrame.prePopup() previous = installer.comparePreviousInstall() if previous is not None and previous > 0: # The existing installation is newer, which means this will be a downgrade. d = InstallingOverNewerVersionDialog() with d: if d.ShowModal() == wx.ID_CANCEL: gui.mainFrame.postPopup() return InstallerDialog(gui.mainFrame, previous is not None).Show() gui.mainFrame.postPopup()
def doSilentInstall(copyPortableConfig=False, startAfterInstall=True): prevInstall = installer.comparePreviousInstall() is not None startOnLogon = globalVars.appArgs.enableStartOnLogon if startOnLogon is None: startOnLogon = config.getStartOnLogonScreen() if prevInstall else True doInstall(createDesktopShortcut=installer.isDesktopShortcutInstalled() if prevInstall else True, startOnLogon=startOnLogon, isUpdate=prevInstall, copyPortableConfig=copyPortableConfig, silent=True, startAfterInstall=startAfterInstall)
def showInstallGui(): gui.mainFrame.prePopup() previous = installer.comparePreviousInstall() if previous > 0: # The existing installation is newer, which means this will be a downgrade. d = InstallingOverNewerVersionDialog() with d: if d.ShowModal() == wx.ID_CANCEL: gui.mainFrame.postPopup() return InstallerDialog(gui.mainFrame, previous is not None).Show() gui.mainFrame.postPopup()
def doSilentInstall(startAfterInstall=True): prevInstall=installer.comparePreviousInstall() is not None startOnLogon=globalVars.appArgs.enableStartOnLogon if startOnLogon is None: startOnLogon=config.getStartOnLogonScreen() if prevInstall else True doInstall( installer.isDesktopShortcutInstalled() if prevInstall else True, startOnLogon, False, prevInstall, silent=True, startAfterInstall=startAfterInstall )
def showInstallGui(): gui.mainFrame.prePopup() previous = installer.comparePreviousInstall() if previous > 0: # The existing installation is newer, which means this will be a downgrade. # Translators: The title of a warning dialog. d = wx.Dialog(gui.mainFrame, title=_("Warning")) mainSizer = wx.BoxSizer(wx.VERTICAL) item = wx.StaticText( d, # Translators: A warning presented when the user attempts to downgrade NVDA # to an older version. label= _("You are attempting to install an earlier version of NVDA than the version currently installed. " "If you really wish to revert to an earlier version, you should first cancel this installation and completely uninstall NVDA before installing the earlier version." )) mainSizer.Add(item) sizer = wx.BoxSizer(wx.HORIZONTAL) item = wx.Button( d, id=wx.ID_OK, # Translators: The label of a button to proceed with installation, # even though this is not recommended. label=_("&Proceed with installation (not recommended)")) sizer.Add(item) item = wx.Button(d, id=wx.ID_CANCEL) sizer.Add(item) item.SetFocus() mainSizer.Add(sizer) d.Sizer = mainSizer mainSizer.Fit(d) d.Center(wx.BOTH | wx.CENTER_ON_SCREEN) with d: if d.ShowModal() == wx.ID_CANCEL: gui.mainFrame.postPopup() return InstallerDialog(gui.mainFrame, previous is not None).Show() gui.mainFrame.postPopup()
def doSilentInstall(startAfterInstall=True): prevInstall=installer.comparePreviousInstall() is not None doInstall(installer.isDesktopShortcutInstalled() if prevInstall else True,config.getStartOnLogonScreen() if prevInstall else True,False,prevInstall,silent=True,startAfterInstall=startAfterInstall)