FlexApp One Application Command Line Arguments
The following section describes the available command line arguments for FlexApp One applications. Where applicable, command arguments can be combined. For example, you can combine --ctl --index 999 to both create the shortcut and replay the application – but not open it immediately. In some command line arguments below, bracketed placeholders indicate information to be supplied based on your use case. Neither of the actual characters such as < and > should be typed in on the command line. This merely represents the information that should be inserted at that point in the command line.
| Argument | Description |
|---|---|
| --admin | Shows additional options in the system tray icon for this FlexApp One application. |
| --install | Installs the FlexApp service (LWLContainerService) and driver. Use as the only argument, requires elevation. |
| --upgrade | Upgrades older FlexApp service and driver and works the same as the --install option if the FlexApp service does not exist. Requires elevation. |
| --keepfsfilter | Leaves behind the existing filter driver when installing a newer version. Requires --install |
| --uninstall | Stops and removes the FlexApp service and driver. Use as the only argument, requires elevation. |
| --startup | The FlexApp One application will be added to the HKCU\Run and launched each logon with any subsequent options that may also be provided after this one. |
| --index <#> | Activates this layer and starts the shortcut at index number #, based on the FlexApp Package’s XML file <Links> section. Use 999 to skip launching shortcuts but still mount and be ready for usage. Useful for file associations and context-menus. |
| --ctl | Causes a Click-to-Layer shortcut to be created on the Desktop and Start Menu. |
| --addtostart | Adds the FlexApp One to the Start Menu\Programs\FlexApp One folder. This option provides an additional way to always access the application. |
| --stop | Stops the application layer and unmounts it from the OS. |
| --replace <path to old flexapp.exe> | Replaces and restarts the application if it was running. Run the new package.exe, specifying the old package in the argument. The new application will have the old application name when it is finished as this flag REPLACES the previous EXE. Use simple names as your final application name that the user will run. Continue to use versions in the package name when you package. The tray will show the package’s given name, which can identify the version running in the workspace. Example: NewUpdated.exe --stop --replace C:\LocalCopy\OldApp.exe |
| --reg | Creates a registration key at:HKCU\Software\FlexApp\App.exe\%username%This can be used in a variety of ways, for example, as a user Microsoft Intune detection rule. |
| --clean | Removes the shortcuts, registry key, and write cache. Note: Do not use with |
| --sync <target path> | Block level copy of the file to an existing folder. Example: <RemotePath>\App.exe --sync C:\FlexApps\App.exe --ctl --index 999 |
| --system | Creates shortcuts in the Public areas versus User areas and will create registry tracker in HKLM if using the --reg option. Note: Packages executed as LOCAL SYSTEM will automatically use this functionality. |
| --remove | Deletes the FlexApp One EXE from the disk. Note: Requires |
| --skipactivation | Will carry out the runtime commands, but not activate the package. Note: Use with |
| --assoc "<.ext|index#|args>" Index is the shortcut index of the package. |
Set file association(s) for applications within the FlexApp One package. Note: Use with Examples: Atom.exe --assoc ".txt" --skipactivationPaint.Net.exe --assoc ".png|0" --assoc ".jpg|0" --skipactivationCustomerApp.exe --assoc ".cust|1|-launchflag" --skipactivationOffice.exe --assoc ".doc|0" --assoc ".xls|1" --skipactivationChrome.exe --assoc "browser|0" --skipactivation |
| --extract <target path> | Extracts the VHDX, ICO, and XML files, which can be imported into the FlexApp Packaging Console and edited, cloned, etc. |
| --skipdisk | Skips the VHDX during extraction. Note: Must be used with |
| --skipico | Skips the ICO file during extraction. Note: Must be used with |
| --skipxml | Skips the XML file during extraction. Note: Must be used with |
| --mapicons | Extracts the ICO files for the shortcuts referenced in each <link> section of the package XML. Note: Must be used with |
| --diskpath <target path> | Set the mount path for FlexApp One packages. Default: C:\ProgramData\Liquidware\Flexapp\Shadows |
| --printshortcuts | Print out shortcuts in package XML to output file. Example: App.exe --skipactivation --printshortcuts > AppShortcuts.txt |
| --logpath <"DirPath>" | Change logging location FlexApp One engine. |
| --debug | Runs the engine in debug mode. Note: Can be used with |
| --console | Runs the engine outputting the log to the console. |
| --persist | Used to persist changes to the application’s files. |
| --sessionisolate | Enable session isolation for the packaged application. |
| --hidetray | Hide the FlexApp One System Tray icon for this package. |
| --args | Pass launch arguments to the packaged application. |
| --blockcachesize <bytes> | Read request size in number of blocks. Default: 40 |
| --authtimeout <seconds> | OAuth user authentication request timeout in seconds. Default: 500 |
| --linktimeout <seconds> | Timeout waiting for target binary existence in seconds. Default: 120 |
| --installdriver | Installs only the bundled FlexApp One driver without upgrading the existing Service. Requires elevation. |
| --reboot | Reboot after upgrade. Default: falseNote: Use with --upgrade |
| --priorityboost | Enables FlexApp One Engine and foreground process prioritization. |
| --outofband | Relaunches the FlexApp One package as the local SYSTEM account. |
