# Modify Command Line

*Applies to: Patch My PC Publisher*\
*Available at level: Product*\
*Available on tab: Updates, ConfigMgr Apps, Intune Apps, Intune Updates*

## Overview

The **Modify Command Line** dialog allows you to customize the silent installation command line for a specific product in the Publisher. The dialog shows the default command line, lets you append additional arguments, and provides a preview of the final command line that will be executed.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FHt4NuvE6OpOtXvExDwEO%2Fimage.png?alt=media&#x26;token=5772f94f-ffc3-4854-a6a1-b1d76690b417" alt="Modify Command Line" width="504"><figcaption></figcaption></figure>

## Default Command Line

The **Default Command Line** section displays the silent installation command line defined in the Patch My PC catalog for the selected product. This command line cannot be edited from this dialog and is shown for reference only.

{% hint style="info" %}
**Note**

Use this section to understand which parameters are already included before adding any custom arguments.
{% endhint %}

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FYXLXG8awP1c0NEvRhFRW%2Fimage.png?alt=media&#x26;token=50dd5e2c-05f6-4c10-9fa1-7d3bdfc25a9c" alt="Modify Command Line Settings" width="524"><figcaption></figcaption></figure>

## Your Additional Arguments

The **Your Additional Arguments** field is where you enter custom command line parameters that will be appended to the default command line.

Only include parameters that are specific to your customization. Do not re-add standard silent install switches such as quiet or norestart unless explicitly required.

You can insert supported variables such as `%CurrentDir%` by using the **Insert Variable** option. Variables are expanded at runtime and will still appear as variables in the preview.

{% hint style="warning" %}
**Important**

Although this setting can be used to apply a transform file by using TRANSFORMS=xxx.mst and adding the MST as an extra file through the [Add Pre or Post Scrip](https://docs.patchmypc.com/patch-my-pc-publisher/customizations-right-click-options/add-custom-pre-post-scripts)t option, we recommend using the dedicated [Add MST Transform File](https://docs.patchmypc.com/patch-my-pc-publisher/customizations-right-click-options/add-mst-transformation-file) right click option instead.&#x20;

The transform option handles MST files correctly and is much simpler than bundling and referencing the transform manually through pre and post script actions.
{% endhint %}

## Parameter Precedence for MSI Installers

When the installer is an MSI, and you specify a property that already exists in the default command line, the last occurrence of that property takes precedence. This means your custom value overrides the default value provided by the Publisher.

For example, if Patch My PC includes `AllUsers=1` in the default command line and you add `AllUsers=2` in the **Your Additional Arguments** field, the installer will use `AllUsers=2`.

This behavior allows you to override existing MSI properties without modifying the default command line.

## Examples and Special Variables

The **Examples and Special Variables** section helps you build custom command line arguments and shows the variables you can use.

{% hint style="info" %}
**Note**

This section is informational and cannot be edited.
{% endhint %}

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2F2VHFpsHw83o0ODRJ882H%2Fimage.png?alt=media&#x26;token=03fa952d-9f22-454a-9e65-0ecd3fa897a2" alt="Examples and Special Values" width="525"><figcaption></figcaption></figure>

The Examples area shows sample installer parameters that can be appended to the default silent command line. Examples include:

```
PID=12345-54321
/LANG=EN-US
INSTALLDIR="%ProgramFiles%\MyApp"
```

In addition to standard Windows environment variables such as `%ProgramFiles%` and `%TEMP%`, the following Publisher specific variables are available:

* **%CurrentDir%**  \
  Resolves to the full path where the installer is executed. The value of %CurrentDir% depends on the publishing platform. For example, it may differ when the update is installed through WSUS, ConfigMgr, or Intune. The path shown in the dialog is an example and may not match the exact runtime location in every scenario.
* **%VendorName%**  \
  Resolves to the vendor name of the product that was right clicked to modify the command line.
* **%ProductName%**  \
  Resolves to the product name of the product that was right clicked.
* **%Version%**  \
  Resolves to the version of the specific update being published for that product.

These variables are resolved dynamically based on the selected product and update at runtime. They allow you to create reusable and version aware command line arguments without needing to hard code product specific values.

## Final Command Line Preview

The Final Command Line Preview section shows how the complete command line will look once your additional arguments are appended. Variables are not expanded in this view and are displayed as variables.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.patchmypc.com/patch-my-pc-publisher/customizations-right-click-options/modify-command-line.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
