#1 08 Jun 2020 12:32

From: Bulgaria
Registered: 03 Dec 2009
Posts: 442

rolling back script execution with scriptrunner

scriptrunner is a tool installed by default on windows.
one of its features seems to be really useful  - ability to rollback on error:

ScriptRunner.exe -appvscript cmd "/c" "echo #>C:\#&exit 1"  -appvscriptrunnerparameters -rollbackonerror


ScriptRunner.exe -appvscript cmd "/c" "echo #>E:\scripts\#&exit 1" 

On the first example the file C:\# will be deleted after the scriptrunner is ready. I think it will work also with events or edits in the registry.


#2 08 Jun 2020 15:39

Shadow Thief
Registered: 12 Jul 2012
Posts: 184

Re: rolling back script execution with scriptrunner

Searching Google for scriptrunner returns three different applications, none of which appear to be this one. Searching for "scriptrunner appvscript" suggests that this is part of Microsoft's https://en.wikipedia.org/wiki/Microsoft_App-V application virtualization solution.

I like the idea of sandboxing my scripts, but I'm not really in a situation where I'd need to stream an application from a central server to a bunch of clients.


#3 09 Jun 2020 19:15

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,074

Re: rolling back script execution with scriptrunner

I have added a page for this here:

It does seem a little buggy, if running more than one script the rollback doesnt work.


Board footer

Powered by FluxBB