<< Click to Display Table of Contents >> Navigation: 3. Script Language > Execute-Commands > Execution Commands |
MiniRobotLanguage (MRL)
EXM. Command
Execute MSI-Installer
Intention
EXM. is specially designed to easily start ".msi"-setup programs. Usage is as easy as possible. In most cases you can simply drag the MSI-File into the MRE-Editor and you will get a line like this:
EXM./i "?desktop\LibreOffice 3.4\libreoffice34.msi"
which is often all you need. If not, you can add MSI-Parameters.
EXM. will set #pid# and place the PIDof the started MSI-Setup on the Stack. Note that often the process you start will start another process. In that case the PID that you got from EXM. is not the PID of the process that generates a new window.
Important Hint:
EXM. will possibly NOT work on LAN Drives, like
\\drive\something.
This compromise has been made to deliver #pid#.
If you need to start the Package on LAN, use EXS. instead.
Example:
EXS. ?ws\msiexec.exe|/i "$$PFA\tightvnc-2.7.10-setup-64bit.msi"
Syntax
EXM.P1[|P2]
Parameter Explanation
P1 - Filename of MSI to start
or in case of 2 Parameters the MSI-Call
P2 - Filename of MSI to start
Example
'***********************************************
' Example 1
'***********************************************
EXM./i "?path\myfile.msi"
PRT.#pid#--$$000
MBX.!
END.
'***********************************************
' Example 2 (2 Parameter)
'***********************************************
EXM.?ws\msiexec.exe|/i "?path\myfile.msi"
PRT.#pid#--$$000
MBX.!
END.
'***********************************************
' Example 3 (1 Parameter wie EXE.)
'***********************************************
EXM.?ws\msiexec.exe /i "?path\myfile.msi"
PRT.#pid#--$$000
MBX.!
END.
'***********************************************
Remarks
Technical remark: EXM. uses asynchronous Shell- / Create-Process-Technology and is compatible with other commands that use this technology.
Limitations:
EXM. will possibly NOT work on LAN Drives, like
\\drive\something
This compromise has been made to deliver #pid#.
If you need to start the Package on LAN, use EXS. instead.
Example:
EXS. ?ws\msiexec.exe|/i "$$PFA\tightvnc-2.7.10-setup-64bit.msi"
See also:
• EXO. - Execute Open Document
• IAI. / NAI. - If-Application-Installed
• GII. - Get-Installation-Information