Skip to content

Deployment

Jakub Šindelář edited this page May 31, 2020 · 6 revisions

Installation command line parameters

#f03c15 WARNING

We use NSIS as current installer provider, which works, but carries some caveats:

  • Parameters are case sensitive
  • Installation path paramater /D= must be last parameter when used
  • Master definition URL parameter /URL= must be enclosed in double parenthesis otherwise forward slash breaks it

Silent installation

Parameter syntax
/S

Example
".\Lazy Admin Setup X.X.X.exe" /S

Installs silently and does not open application after installation. Default behavior is passive install and application opens afterwards.

Master definition URL

Parameter syntax
/URL="'{CustomURL}"'

Example
".\Lazy Admin Setup X.X.X.exe" /URL="'http://share.contoso.local/master-definition.json'"

Sets master definition URL in HKLM\SOFTWARE\Lazy Admin\MasterDefinitionUrl.
If parameter is not supplied and key does not exist, installation sets URL to example definition in this repository. Preferably should be set with GPO.

#c5f015 Note: Enclose URL in double parenthesis as shown in example.

Custom install directory

Parameter syntax
/D={CustomPath}

Example
".\Lazy Admin Setup X.X.X.exe" /D="C:\CompanyApps\LazyAdmin"

Installs directly to target directory, without any additional subfolders, in example above, main application would end up in:
C:\CompanyApps\LazyAdmin\Lazy Admin.exe

#c5f015 Note: If you use this parameter, you must use it as last parameter, as NSIS will treat anything after /D= as installation path.

Clone this wiki locally