2023-07-08 10:46:29 +01:00
/ *
* group : other
* class : sandboxing
* name : SBIE2181 : Failed to load SbieDll . dll
2023-07-08 16:18:24 +01:00
* description : Fix the DACLs of Sandboxie ' s home folder
2023-07-08 10:46:29 +01:00
*
* /
2023-07-08 16:18:24 +01:00
wizard . showStatus ( tr ( 'Failures to load SbieDll.dll when encountered by Chrome, or another software employing app containers, ' +
'it is often caused by invalid DACL entries for the Sandboxie home directory. ' +
'This mitigation measure will fix them, for this reason it will prompt for admin privileges which need to be granted for kmdutil.exe.' ) , true ) ;
2023-07-08 10:46:29 +01:00
let ret = system . execute ( system . expandPath ( '%SbieHome%\\kmdutil.exe' ) , 'fixdacls' , { elevate : true } ) ;
if ( ret . error )
2023-07-08 16:18:24 +01:00
wizard . setResult ( false , 'Failed to start kmdutil, error: ' + ret . error ) ;
2023-07-08 10:46:29 +01:00
else if ( ret . exitCode != 0 )
2023-07-08 16:18:24 +01:00
wizard . setResult ( false , 'kmdutil returned an error: ' + ret . exitCode ) ;
2023-07-08 10:46:29 +01:00
else
{
sbie . setupTrace ( ) ;
let form = [
{ id : 'yes' , name : tr ( 'Yes' ) , type : 'radio' } ,
{ id : 'no' , name : tr ( 'No' ) , type : 'radio' } ,
] ;
2023-07-08 16:18:24 +01:00
let ret = wizard . showForm ( form , tr ( 'The DACLs have been adjusted, please try to run your application again and indicate if the issue has been resolved.' ) ) ;
2023-07-08 10:46:29 +01:00
if ( ret [ 'yes' ] == true ) {
wizard . setResult ( true ) ;
}
if ( ret [ 'no' ] == true ) {
wizard . setResult ( false , 'DACLs fix did not resolve the issue' ) ;
}
}