Sandboxie/SandboxiePlus/SandMan/Troubleshooting/UI/shell.js

25 lines
688 B
JavaScript
Raw Normal View History

2023-07-01 18:32:18 +01:00
/*
* group: ui
* class: ui
* name: Explorer Context Menu extension does not work
* description: This procedure will re install the shell integration
*
*/
let form = [
{type: 'check', name: tr('Add Run Sandboxed'), value: true, disabled: true},
{type: 'check', id: 'runUnBoxed', name: tr('Add Run Unsandboxed')}
];
let sys_version = system.version();
if(sys_version.major >= 11) {
form.push({type: 'check', id: 'legacy', name: tr('Install legacy shell extensions')});
}
let obj = wizard.showForm(form, tr('Select which shell options should be reinstalled'));
2023-07-01 18:32:18 +01:00
sbie.shellRemove();
sbie.shellInstall(obj);
2023-07-08 13:29:56 +01:00
// todo query user if mitigation was successful
2023-07-08 10:46:29 +01:00
wizard.setResult(true);