Page 1 of 1

Calling a script from with System Repair?

Posted: Thu Sep 04, 2014 6:53 pm
by zbmowrey
Fred,

Is it possible to call a (.uvk) script or execute script functions from within a custom app definition?

What I'm looking for here is the ability to have a system repair checkbox that will run a particular script or uvk_script function when executed. Not saying that this should be a feature, just asking if it maybe already is.

Thank you for your work,

ZB

Re: Calling a script from with System Repair?

Posted: Thu Sep 04, 2014 7:11 pm
by Fred
Hi zbmowrey. It is not a builtin feature (yet), but it's very easy to do.

You'd have figured it out by yourself if you had read these pages:
http://www.carifred.com/uvk/help/custom ... _variables
http://www.carifred.com/uvk/help/cmdswitches.php (Run a UVK script section)

So, the command to run a UVK script in silent mode is:
%UVKExe% -ReadFile "Script Path" -Auto

"Script Path" Must contain the full path of the script to run. For portability support, place the script in the same folder as the install or portable package used to install UVK and use the %InstallSourceDir% variable to define the path of the script.

Example: Create an app that runs a script named myscript.uvk, in the %InstallSourceDir% folder:
%UVKExe% -ReadFile "%InstallSourceDir%\myscript.uvk" -Auto

You can even make apps that run several scripts, and filter the scripts to run by OS arch.