Calling a script from with System Repair?

You need help to start using UVK? You have a doubt on a UVK feature? Post here!
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
zbmowrey
Posts: 38
Joined: Sun Apr 06, 2014 6:55 pm

Calling a script from with System Repair?

Post 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
Fred
Site Admin
Posts: 2370
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: Calling a script from with System Repair?

Post 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.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Post Reply