Specifies the application that is associated with the script.
Note: Only one application can be associated with a script. The Detection function invokes the application from the source computer. The application can be invoked from anywhere on the destination computer to resolve the application path.
Ensure that the following points are verified:
The parameters for Detect are the executable name and an optional registry key value. Both parameters are string values. The registry value path parameter is the full path to the registry value that holds the path to the executable. If the registry value is the default parameter, ensure that the path ends with the key name and a slash. The script must verify the return value of Detect in the Detection function to either continue or terminate the script.
The Executable name (string value)
The registry path (string value)
Detect ( <Executable name>, [Registry path] );
if( Detect( "MyApp.exe", "HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\MyApp.exe\\" ) == false)
{
return;
}
if (Detect ( <executable Name>) == false)
return;
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|