3939 runTool ( mtExe , [ '-nologo' , `-inputresource:${ executablePath } ;#1` , `-out:${ manifestOutPath } ` ] ) ;
4040 const manifest = fs . readFileSync ( manifestOutPath , 'utf8' ) ;
4141 const hasUiAccess = / u i A c c e s s \s * = \s * " t r u e " / . test ( manifest ) ;
42- const hasAsInvoker = / l e v e l \s * = \s * " a s I n v o k e r " / . test ( manifest ) ;
42+ const hasHighestAvailable = / l e v e l \s * = \s * " h i g h e s t A v a i l a b l e " / . test ( manifest ) ;
4343
4444 const signatureResult = runTool ( signtoolExe , [ 'verify' , '/pa' , '/v' , executablePath ] , { stdio : 'pipe' } ) ;
4545 const signatureOutput = `${ signatureResult . stdout || '' } ${ signatureResult . stderr || '' } ` ;
@@ -52,15 +52,15 @@ try {
5252
5353 console . log ( `manifest embedded: yes` ) ;
5454 console . log ( `uiAccess=true: ${ hasUiAccess ? 'yes' : 'no' } ` ) ;
55- console . log ( `asInvoker : ${ hasAsInvoker ? 'yes' : 'no' } ` ) ;
55+ console . log ( `highestAvailable : ${ hasHighestAvailable ? 'yes' : 'no' } ` ) ;
5656 console . log ( `signature status: ${ signatureOutput . includes ( 'Successfully verified' ) ? 'valid' : 'check output above' } ` ) ;
5757 console . log ( 'cursor overlay helper: present' ) ;
5858 console . log ( `cursor overlay helper signature: ${ helperSignatureOutput . includes ( 'Successfully verified' ) ? 'valid' : 'check output above' } ` ) ;
5959 console . log ( 'Bluetooth transport helper: present' ) ;
6060 console . log ( `Bluetooth transport helper signature: ${ bluetoothHelperSignatureOutput . includes ( 'Successfully verified' ) ? 'valid' : 'check output above' } ` ) ;
6161 console . log ( 'secure install location required: install per-machine under Program Files for uiAccess to take effect.' ) ;
6262
63- if ( ! hasUiAccess || ! hasAsInvoker ) {
63+ if ( ! hasUiAccess || ! hasHighestAvailable ) {
6464 throw new Error ( 'Packaged executable manifest does not contain the required uiAccess settings.' ) ;
6565 }
6666
0 commit comments