Resourcen-Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > RES. - EXE-Resourcen managen >

Resourcen-Commands

RES.Last Manifest

Previous Top Next


MiniRobotLanguage (MRL)

 

RES.Last Manifest

Get the Path and Data from the last extracted Manifest

 

 

Intention

 

This command is used to get the Data from the last extracted Manifest.

The command will get the Path to the Manifest-File into a Variable, and the Data of the File on the Top Of Stack $tos$.

To see the effect of the Program, its necessary to first "extract" an Manifest.

The command can also be used after an "RES.Extract All".

 

Here is a Sample-Script.

 
' This is the path to the Source-File to be extracted

   VAR.$$FIA=?path\EXEs\Hello.exe

  ' The second Parameter is the Path to the root of all "Target Folders".

 RES.Extract Manifest|$$FIA|?path\

MBX.$tos$

' To analyze the Manifest in the Script, you can use

RES.Last Manifest|$$TXT

VAR.$$TXA=$tos$

' The Manifest is now in $$TXA

MBX.$$TXA   

ENR.

 

 This Script will display fist this Messagebox with the path to the ".Xml"-File.:

 
   Secondly it will display a Messagebox with the Content of the ".Xml"-file.
   The following picture shows only a part.

 

  Extract_MF_07

 

 

This Script will create these folder with the name of the LanguageID of the Manifest-Resource in ?path\.
 

F409

 

Inside that Folder you will find the extracted Manifest as a ".XML"-File.
 

Extract_Manifest_03

 

 

You can Load XML-Files with SPRE, just change the Filter to "XML-Files":

 

Load_XML_01

 

 

This may look somehow like here:
 

Load_XML_02

 

 

 

Syntax

 

RES.Last Manifest|P1

RES.LM|P1

 

 

 

Parameter Explanation

 

P1 - Variable that will get the Path to the last extracted Manifest-File.

 

 

Example

 

' This is the path to the Source-File to be extracted

   VAR.$$FIA=?path\EXEs\Hello.exe

  ' The second Parameter is the Path to the root of all "Target Folders".

 RES.Extract Manifest|$$FIA|?path\

MBX.$tos$

' To analyze the Manifest in the Script, you can use

RES.Last Manifest|$$TXT

VAR.$$TXA=$tos$

' The Manifest is now in $$TXA

MBX.$$TXA   

ENR.

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

! Ressourcen Commands

RES. - Manage Resources

  RES.Refresh Explorer

  RES.Change Icon

  RES.Change Manifest

  RES.Change Version

  RES.Extract All

  RES.Extract Icon

  RES.Extract Manifest

  RES.Extract Version

  RES.Last Icon

  RES.Last Version

  2.3.0. '#MAN: - Manifest for Executable