<< Click to Display Table of Contents >> Navigation: 3. Script Language > OS and Software > OS and Software Operations |
MiniRobotLanguage (MRL)
GII. Command
Get Installation Information
Intention
This command can be used to get the Uninstall-String for a specified application.
To find out if the application is installed, use IAI. See IAI. for more details.
It will retrieve the complete Application name or the requested uninstall information, if they are available.
The following Script will retrieve the "modify String" of the MS Framework with the given Version-Number:
GII.Micro&ANDTHEN:30729|m
DMP.6
ENR.
This is the result on the Stack:
If we try this (note the "|s" at the end:
GII.Micro&ANDTHEN:30729|s
DMP.6
the the stack will be empty, because there is no silent Uninstallation for this patch.
We can use a variable instead of the stack.
GII.Micro&ANDTHEN:30729|$$RES|u
DBP.$$RES
ENR.
Andthe result is:
while the uninstall string itself will be on the stack.
The command works transparently with both x32 and x64 applications.
Standard-Search Pattern can be used.
Syntax
GII.P1[|P2][|P3]
Parameter Explanation
P1 - Application to test if installed
P2 - Variable for Result if found.
P3 - letter specifies what to look for.
s - return command-line for silent Uninstallation
u - return command-line for standard Uninstallation.
m - return command-line for standard Modify-Path (Add-/Remove Setup)
a - return Standard Application Name
Example
'**********************************************
' IAI./GII. - Sample
'**********************************************
'DBM.2
PRT.=====================================================
IAI.office
VAR.§§APP=$$000
PRT. §§APP is installed.
ELS.
PRT. No such Application installed.
EIF.
PRT.=====================================================
IAI.office|m
VAR.§§APP=$$000
PRT. §§NAM can be modified like this:$crlf$ §§APP
ELS.
PRT. Application is not installed or cannot be modified.
EIF.
PRT.=====================================================
END.
Remarks
The command works transparently with both x32 and x64 applications.
Technically the command reads the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
to get these information.
IAI. as well as GII. as well as "InstaRec" build the Name of the Program using a Combination of the "DisplayName" and the "DisplayVersion" Properties. Therefore you can more easily separate which Software you want to deal with.
Limitations:
This command looks for standard information details at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
If the application being tested for installation did not register this information, the command will not be able to retrieve installation information.
See also:
IAI. / NAI. - If-Application-Installed