Skip to content

Commit

Permalink
Docs and comments updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
BuvinJ committed Jan 6, 2021
1 parent 8ca4c36 commit a2e5bde
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions distbuilder/qt_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5155,6 +5155,18 @@ def RemoveDir( event, dirPath, isElevated=True ): # TODO: Test in NIX/MAC
isElevated=isElevated )

# TODO: Test in NIX/MAC
#
# TODO: Fix a glitch on Windows with employing isHidden. This is a problem
# throughout the library - the PS -WindowStlye Hidden is not respected
# by all applications - including our basic demos with PyInstaller / Tk!
# (not sure which is to blame - but it's probably Tk?)
#
# TODO: Fix a glitch on Windows with setting isSynchronous to False.
# In the context of running one of our uninstallers as a sub process
# from one of our installers, an asynchronous program launch will still
# produce a blocking condition because the installer launches using
# a PowerShell StartProcess -Wait which sees the asynch program as a child
# process it must wait for.
@staticmethod
def RunProgram( event, path, arguments=None, isAutoQuote=True,
isHidden=False, isSynchronous=True, isElevated=True,
Expand Down
2 changes: 2 additions & 0 deletions docs/ConfigClasses.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ Event constants for convenience methods.

RunProgram( event, path, arguments=None, isAutoQuote=True,
isHidden=False, isSynchronous=True, isElevated=True,
runConditionFileName=None, isRunConditionNegated=False,
isAutoBitContext=True )

On Windows, set `isAutoBitContext=False` if you need to execute a 64 bit
Expand Down Expand Up @@ -903,6 +904,7 @@ use of SysWow64 nodes.

RunProgramScript( path, arguments=None, isAutoQuote=True,
isHidden=False, isSynchronous=True,
runConditionFileName=None, isRunConditionNegated=False,
isAutoBitContext=True,
replacements=None )

Expand Down
6 changes: 6 additions & 0 deletions examples/hello_qtifw_ops/cascading_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ def launchAppIfFound( event, exePath, appFoundFileName ):
APP_FOUND_FILENAME = "ConveniencesAppInstalled"
EXE_PATH = joinPath( QT_IFW_APPS_X86_DIR, COMPANY_NAME, APP_NAME,
EXE_NAME )
# This demos conditionally launching an app on BOTH install and
# uninstall. Since operations are executed in REVERSE order during
# uninstallation, for cascading scripts to flow into each other
# correctly, we need to account for that nuance. As such, this
# example shows a setAppFoundFileOp call in the list both before
# and after the launchAppIfFound.
pkg.pkgScript.externalOps += [
setAppFoundFileOp( QtIfwExternalOp.ON_INSTALL,
APP_NAME, IS_32BIT_REG, APP_FOUND_FILENAME ),
Expand Down

0 comments on commit a2e5bde

Please sign in to comment.