Skip to content

Deployment

Jakub Šindelář edited this page Aug 17, 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

Silent installation

Parameter syntax
/S

Example
CMD
".\Lazy-Admin-Setup-X.X.X.exe" /S
PowerShell
Start-Process -FilePath ".\Lazy-Admin-Setup-X.X.X.exe" -ArgumentList '/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
CMD
".\Lazy-Admin-Setup-X.X.X.exe" /URL="http://share.contoso.local/master-definition.json"
PowerShell
Start-Process -FilePath ".\Lazy-Admin-Setup-X.X.X.exe" -ArgumentList '/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.

Custom install directory

Parameter syntax
/D={CustomPath}

Example
CMD
".\Lazy-Admin-Setup-X.X.X.exe" /D="C:\CompanyApps\LazyAdmin"
PowerShell
Start-Process -FilePath ".\Lazy-Admin-Setup-X.X.X.exe" -ArgumentList '/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