Exporting and Converting

<< Click to Display Table of Contents >>

RayPack > 7.3 u6 > User Guide > Command Line Tools > PowerShell Automation 

Exporting and Converting

ConvertTo-MSI

Converts the specified project into the MSI format. If the project is already an MSI, the file will be rebuilt using the new settings.

 

Name 

Type 

Mandatory 

Description 

Project

RayPackFile

Yes

The source project.

Target

FileInfo

Yes

The output file path where the MSI will be created.

OriginalMsi

FileInfo

No

The full path to the original MSI file. You should provide this path if your setup uses Linked folders.

Sign

Bool

No

A Boolean value indicating whether the output file should be digitally signed. If omitted, the value from the current profile will be taken.

CabNaming

CabNaming

No

The enumerable defining how the CAB file fill be named. If omitted, the value from the current profile will be taken.

MediaLayout

CompressionOptions

No

The option defining how to compress files. If omitted, the value from the current profile will be taken.

UpdateProductCode

Bool

No

A boolean value indicating whether the ProductCode should be updated. If omitted, the value from the current profile will be taken.

UpdateFileProperties

Bool

No

A boolean value indicating whether the file properties should be updated (like size, version). If omitted, the value from the current profile will be taken.

MaximumCabSize

Int

No

Defines the maximum size of a single CAB file. If omitted, the value from the current profile will be taken.

CustomCabName

String

No

Defines the custom name of a CAB file. If omitted, the value from the current profile will be taken.

BootStrapper

Bootstrapper

No

Defines the format of a bootstrapper (EXE, CMD, PowerShell). If omitted, the value from the current profile will be taken.

 

Returns an instance of FileInfo type, representing the built MSI file.

 

ConvertTo-MSIX

Converts the specified project into the MSIX format.

 

Name 

Type 

Mandatory 

Description 

Project

RayPackFile

Yes

The source project.

Target

FileInfo

No

The output file path where the MSIX will be created.

Sign

Bool

No

A Boolean value indicating whether the output file should be digitally signed. If omitted, the value from the current profile will be taken.

 

Returns an instance of FileInfo type, representing the built MSIX file.

 

ConvertTo-Intune

Converts the specified project into the MSIX format.

 

tip

Tip:

This command let converts an MSI / RPP project to Intune. In order to convert any setup to Intune format, use New-Wrapper command let with parameter -Format Intune.

 

Name 

Type 

Mandatory 

Description 

Project

RayPackFile

Yes

The source project.

Target

FileInfo

No

The output file path where the Intune package will be created. If not provided, the package will be created in a temporary location which is returned by this command let.

 

Returns an instance of FileInfo type, representing the built Intune package.