Repackaging Wizard Command-Line Options
AdminStudio 2025 | 29.0 | Repackager | Repackaging Wizard
The following command-line options are supported by the Repackaging Wizard:
| Option | Description |
|---|---|
| -? | Displays a dialog box containing usage information for all Repackager command line options: If a option name is provided, detailed help for the specified option will be displayed. If no option name is provided, a dialog box containing general usage information for all options is displayed. |
| -app <setup program> | Enables you to provide a pipe (|) delimited list of setups to run during repackaging. You can also pass command-line arguments to the setup by separating them from the setup name with a semicolon. If entering multiple setups, proper double quoting—including escaping nested quotes—is necessary: -app "\"exe1path\";cmdline1\ |
| -cf <config.ini> | This option allows you to select your own configuration template containing exclusions. A sample of this type of file (named Default.ini ) can be found in the following directory: [AdminStudioInstallDirectory]\Repackager This particular file contains the default exclusion information. |
| -cs <configuration type> | This option allows you to select the configuration file type for exclusions. Possible values are: Shared —Use shared settings from those stored in the AdminStudio Shared directory. Custom —Use a custom configuration file (in conjunction with `-cf`). |
| -is | Regarding the Repackaging an InstallScript MSI Setup to a Basic MSI Setup procedure, use this parameter in the command line using the following syntax: Repack.exe -app "c:\setup.exe" -o C:\apps\output -mm -is In the above example, the user wants to repackage c:\\setup.exe using the Installation Monitoring repackaging method (as specified by `-mm`) and InstallScript conversion (as specified by `-is`). Repackager would perform the InstallScript conversion process and produce a Basic MSI package with InstallScript support as output. Without the -is parameter, Repackager would perform repackaging without performing InstallScript conversion, and would only create a Repackager .inc file as the output. The command line parameter -is will be considered only if the setup to be repackaged is a InstallScript MSI setup. If user specified any other legacy setup that is not a InstallScript MSI setup then -is will be ignored. If user chooses to use the Multiple Step Snapshot repackaging method, then the -is parameter will be ignored. Even if the setup is an InstallScript MSI setup, -is will still be ignored when using the Multiple Step Snapshot repackaging method. |
| -mode <snapshot mode> | Repackager supports the following repackaging modes for snapshots: single—Single step repackaging that creates an INC file as its output. pre—Pre-scanning only scans the local drive for a baseline snapshot of the system. post—Post-scanning only scans the local drive and compares the result with the pre-scan. The differences are written to the INC file as output. |
| -mm | Instructs Repackager to use installation monitoring as the repackaging technology. |
| -ms | Instructs Repackager to use snapshots as the repackaging technology. |
| -o <inc path name> | Specifies a folder path not including the filename. The file name is derived from the Product Name unless overridden with the -of switch. |
| -of <inc file name> | Specifies the .inc file name that should be used instead of the product name. Use -o to specify the path. |
| -onp | When using the Installation Monitoring method via command line to perform repackaging on a 64-bit operating system, you can use the `-onp` command line option to cause the Installation Monitoring method to only monitor new processes created on the system and to ignore any existing/ running ones. This option is useful to optimize the monitoring process on a 64-bit operating system. |
| -pc <company name> | Allows you to set the company name. |
| -pp <product name> | Allows you to set the product name. This will be the same name as the generated Repackager output file ( .inc ). |
| -pv <product version> | Allows you to set the product version. |
| -sb | This option allows you to run Repackager silently, with no user interaction. A progress dialog box is displayed. If no .ini file is specified using the -i parameter, Repackager uses Repack.ini as the default input file. If an output folder is not specified using -o, the default output folder is C:\\Packages . |
| -sn | This option allows you to run Repackager silently, with no user interaction and no progress dialog box. If no .ini file is specified using the -i parameter, Repackager uses Repack.ini as the default input file. If an output folder is not specified using `-o`, the default output folder is C:\\Packages. |
| -version | This option displays standard version information for Repackager, including the full version and copyright information. |
tip
To open a help topic from the command line that lists command line options, enter the following:
info
repack.exe /?
note
In addition to the - sign for command-line arguments, you can also use the / symbol.