Resourcen-Commands

<< Click to Display Table of Contents >>

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

Resourcen-Commands

RES.Change Manifest

Previous Top Next


MiniRobotLanguage (MRL)

 

RES.Change Manifest

Change the Manifest of any executable

 

 

Intention

 

This command is used to attach an Manifest(.xml) File of your choice to an executable.

The original Manifest - if there was one before - will be removed during the process.

 

Lets make a Sample. Here we have an executable and an manifest file.

 

Change_Mani_01

 

Here is our Script. We run it.

 

Change_Mani_02

 

Now the folder looks like this:

 

Change_Mani_03

 

As you can see, the Manifest was implanted into the Executable. Now we remove it and make it to "asInvoker".

Here is our Script:

 

VAR.$$EXE=File.exe

VAR.$$FIA=?path\$$EXE

VAR.$$MAN=?path\asInvoker.xml

' You can use the short Form "cm" for Change Manifest, also.

RES.CM|$$FIA|$$MAN

ENR.

 

We run it and ... we are back!

 

Change_Mani_01

 

 

 

 

 

Syntax

 

RES.Change Manifest|P1|P2[|P3]

RES.CM|P1|P2[|P3]

 

 

 

Parameter Explanation

 

P1 - Path of EXE-File or DLL-File

P2 - Path of Manifest-File (must be an .xml-File)

P3 - (num) 0/1/2/3  - Flag (default is 0)

      0 - no Backup, Refresh Explorer

      1 - make Backup before changing file, Refresh Explorer

      2 - do not "Refresh Explorer" do not make a Backup

      3 - do not "Refresh Explorer", but make a Backup

 

 

Example

 

'**********************************************

VAR.$$EXE=File.exe

VAR.$$FIA=?path\$$EXE

VAR.$$MAN=?path\asInvoker.xml

RES.Change Manifest|$$FIA|$$MAN

ENR.

 

 

 

 

 

 

Remarks

 

Please take care of these points.

 

1. Files may be protected or copyrighted

2. Signed files may loose their signature (but you may sign them yourself after the process)

3. If the process fails for whatever reason (Antivirus .. etc.) the result may be an unusable file!

Especially for this reason, always work on a copy of the original file!

 

 

 

Limitations:

 

-

 

 

See also:

 

  ! Ressourcen Commands

  RES. - Manage Resources

  RES.Refresh Explorer

  RES.Change Icon

  RES.Change Version

  RES.Extract All

  RES.Extract Icon

  RES.Extract Manifest

  RES.Extract Version

  RES.Last Icon

  RES.Last Manifest

  RES.Last Version

  2.3.0. '#MAN: - Manifest for Executable