Skip to content

Commit

Permalink
Added QtIFW "pass thru" arguments to silent installer.
Browse files Browse the repository at this point in the history
  • Loading branch information
BuvinJ committed Jan 11, 2021
1 parent d91388d commit 7aebeff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions distbuilder/qt_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3532,6 +3532,7 @@ def __genControllerConstructorBody( self ):
TAB + _QtIfwScript.logValue( _QtIfwScript.MAINTAIN_MODE_CMD_ARG ) +
TAB + _QtIfwScript.logValue( _QtIfwScript.TARGET_EXISTS_OPT_CMD_ARG ) +
TAB + _QtIfwScript.logValue( _QtIfwScript.TARGET_DIR_CMD_ARG ) +
TAB + _QtIfwScript.logValue( _QtIfwScript.TARGET_DIR_KEY ) +
TAB + _QtIfwScript.logValue( _QtIfwScript.START_MENU_DIR_CMD_ARG ) +
TAB + _QtIfwScript.logValue( _QtIfwScript.ACCEPT_EULA_CMD_ARG ) +
TAB + _QtIfwScript.logValue( _QtIfwScript.INSTALL_LIST_CMD_ARG ) +
Expand Down Expand Up @@ -8258,6 +8259,9 @@ def wrapperArgs():
help='output messages file path' )
parser.add_argument( '-e', '--errfile', default=None,
help='error messages file path' )
parser.add_argument( '-p', '--passthru', default=None,
help='QtIFW arguments (k/v ex: "a=\\'1\\' b=\\'2\\'")' )
parser.add_argument( '-d', '--debug', default=False,
help='show debugging information',
Expand Down Expand Up @@ -8320,6 +8324,9 @@ def appendComponentArg( wrapperArg, ifwArg, isExclude=False ):
if IS_REBOOT_SWITCH is not None:
args.append( "{29}=%s" % str( wrapperArgs.reboot ).lower() )
if wrapperArgs.passthru:
args.append( wrapperArgs.passthru.replace("'",'"').replace("\\\\","/") )
return args
def runInstaller():
Expand Down

0 comments on commit 7aebeff

Please sign in to comment.