Edit (Silent)

<< Click to Display Table of Contents >>

RayPack > 7.3 u6 > User Guide > Command Line Tools > Silent Command Line Switches 

Edit (Silent)

Description

This switch instructs RayPack to edit an RPP/MSI or MST file by applying a transform template (RPMST) and/or changing MSI properties. Additionally, this command can be used to create a new MST file.

 

Parameters

Parameter

Required

Description

-Path <path>

 
YES
 

 
Full path to the edited file. If the path has extension .mst, then the -BaseMsi parameter has to be specified as well.

 

papercliper

Note:

This parameter must be present. If the extension of the file pointed by this parameter is not .mst then the file is additionally checked for its presence.

 

-Template <path>

 
NO*
 

 
Full path to the RPMST template file.

 

papercliper

Note:

This parameter is optional. However, when -Path parameter points to an .mst file, then this parameter can be omitted only if at least one instance of -Set parameter is used.

 
 

-BaseMsi <path>

 
NO*
 

 
This parameter specifies the base MSI for the MST transform.

 

papercliper

Note:

This parameter must be used if and only if the new file extension is .mst.

 

-Set <name>=<value>

 
NO
 

 
Used to set the value of an MSI property in a new project/msi file. It can be used multiple times. Information about syntax and examples for this parameter can be found in this section.
 

Creating Transform Files Using Template Command

Because the -Path parameter can point to a non-existing MST file and the -Template parameter is optional, the command can be used to create new transforms. Below is an example of syntax:

 

RpCmd.exe Edit 

-Path C:\temp\newTransform.mst 

-BaseMsi "C:\temp\db.msi" 

-Set "ProductName=My Product"

 

finger1

Be aware:

When -Template parameter is not specified, at least one -Set instance is required. Additionally, each Windows Installer Transform file has to contain at least one change as compared to the base MSI file.

 

Examples

RpCmd.exe Edit 

-Path C:\temp\db.msi 

-Template C:\templates\t1.rpmst 

-Set "ProductName=My Product"

 

RpCmd.exe Edit 

-Path C:\temp\myTransform.mst 

-BaseMsi "C:\temp\db.msi" 

-Template C:\templates\t1.rpmst 

-Set "ProductName=My Product"