Windows deployment templates

Summary

Install / Uninstall

Scripts

Others

Install MSI application

To install MSI application, go to Deployment > Build > Windows > Install / Uninstall and click on Install MSI application.

Install MSI application form

List of MSI installation's form parameters :

  • Package Name : the package display name
  • Description : the package description
  • MSI file : MSI file to be deployed
  • Arguments : MSI command line arguments (optionnal)

Below the list of default MSI installation's parameters (not configurable by the user):

  • Priority : 5
  • Action : Execute
  • Protocole : HTTP
  • Command : msiexec /i application.msi {custom arguments}
  • Notify User : No
  • Notify can abort : No
  • Notify can delay : No
  • Need done action : No

Next, click on Validate. After the package has been created its resume is displayed.

Install MSI application resume

The fragments number and the Activated column value depends on your deployment configuration. For more informations see Deployment configuration.

Update Windows Agent

Note : To create update package, you need to create a Windows Agent setup with OCS Packager and all command line parameters inside before. For more informations, read Use OCSPackager documentation.

To update Windows Agent, go to Deployment > Build > Windows > Install / Uninstall and click on Update Agent.

Update agent example

List of Update agent's form parameters :

  • Package Name : the package display name
  • Description : the package description
  • Packager file : OCS Agent setup generate by OCS Packager

Below the list of default Update agent's parameters (not configurable by the user):

  • Priority : 5
  • Action : Execute
  • Protocole : HTTP
  • Command : powershell.exe -File scheduledupdateagent.ps1
  • Notify User : No
  • Notify can abort : No
  • Notify can delay : No
  • Need done action : No

Next, click on Validate. After the package has been created its resume is displayed.

Update agent resume

The fragments number and the Activated column value depends on your deployment configuration. For more informations see Deployment configuration.

Note : the Update Agent deployment uninstall the old agent to install the new agent properly.

Execute an exe

To execute an exe, go to Deployment > Build > Windows > Install / Uninstall and click on Execute an exe.

Execute an exe example

List of Execute an exe's form parameters :

  • Package Name : the package display name
  • Description : the package description
  • EXE file : executable file
  • Arguments : command line arguments (optionnal)
  • Warn user : warn user before deployment (No by default)
  • Text : warn user message (Not visible if warn user at No)
  • Countdown : warn user message coutdown (Not visible if warn user at No)

Below the list of default Execute an exe's parameters (not configurable by the user):

  • Priority : 5
  • Action : Launch
  • Protocole : HTTP
  • Command : executable.exe {custom arguments}
  • Notify can abort : No
  • Notify can delay : No
  • Need done action : No

Next, click on Validate. After the package has been created its resume is displayed.

Execute an exe resume

The fragments number and the Activated column value depends on your deployment configuration. For more informations see Deployment configuration.

Uninstall application

To uninstall application, go to Deployment > Build > Windows > Install / Uninstall and click on Uninstall application.

Uninstall application example

List of Uninstall application's form parameters :

  • Package Name : the package display name
  • Description : the package description
  • Application identifier : application name (to find wmic application name, open a cmd as administrator and run wmic product get name)
  • Warn user : warn user before deployment (No by default)
  • Text : warn user message (Not visible if warn user at No)
  • Countdown : warn user message coutdown (Not visible if warn user at No)

Below the list of default Uninstall application's parameters (not configurable by the user):

  • Priority : 5
  • Action : Execute
  • Protocole : HTTP
  • Command : wmic product where (name='{application identifier}') call uninstall
  • Notify can abort : No
  • Notify can delay : No
  • Need done action : No

Next, click on Validate. After the package has been created its resume is displayed.

Execute an exe resume

The fragments number and the Activated column value depends on your deployment configuration. For more informations see Deployment configuration.

Notice : some application uninstallations might trigger a system reboot.

Powershell Script

To create a powershell script package, go to Deployment > Build > Windows > Scripts and click on Powershell script.

Powershell script example

List of Powershell script's form parameters :

  • Package Name : the package display name
  • Description : the package description
  • Script : area to write powershell script
  • Script file : powershell script file

Note : if you write script on Script area don't put script file and vice versa.

Below the list of default Powershell script's parameters (not configurable by the user):

  • Priority : 5
  • Action : Execute
  • Protocole : HTTP
  • Command : powershell.exe -File psscript.ps1
  • Notify User : No
  • Notify can abort : No
  • Notify can delay : No
  • Need done action : No

Next, click on Validate. After the package has been created its resume is displayed.

Powershell script resume

The fragments number and the Activated column value depends on your deployment configuration. For more informations see Deployment configuration.

Batch Script

To create a batch script package, go to Deployment > Build > Windows > Scripts and click on Batch script.

Batch script example

List of Batch script's form parameters :

  • Package Name : the package display name
  • Description : the package description
  • Script : area to write batch script
  • Script file : batch script file

Note : if you write script on Script area don't put script file and vice versa.

Below the list of default Batch script's parameters (not configurable by the user):

  • Priority : 5
  • Action : Execute
  • Protocole : HTTP
  • Command : batchscript.bat
  • Notify User : No
  • Notify can abort : No
  • Notify can delay : No
  • Need done action : No

Next, click on Validate. After the package has been created its resume is displayed.

Batch script resume

The fragments number and the Activated column value depends on your deployment configuration. For more informations see Deployment configuration.

Store file or folder

To create a store file/folder package, go to Deployment > Build > Windows > Others and click on Store file/folder.

Store file folder example

List of Store's form parameters :

  • Package Name : the package display name
  • Description : the package description
  • Path : path to store file or folder
  • File : file or folder to store

Note : if you want to store multiple files, compress before.

Below the list of default Batch store's parameters (not configurable by the user):

  • Priority : 5
  • Action : Store
  • Protocole : HTTP
  • Path : {custom path}
  • Notify User : No
  • Notify can abort : No
  • Notify can delay : No
  • Need done action : No

Next, click on Validate. After the package has been created its resume is displayed.

Store file folder resume

The fragments number and the Activated column value depends on your deployment configuration. For more informations see Deployment configuration.

Custom package

To create a custom package go to Deployment > Build > Windows > Others and click on Custom package.

Custom package example

List of Custom package's form parameters :

  • Package Name : the package display name
  • Description : the package description
  • Protocol : HTTP/HTTPS
  • Priority : deployment priority
  • File : file to deploy
  • Action : Execute/Launch/Store
  • Command/Path : set the command or the path (depends on selected action)
  • Warn user : display message before deployment

Next, click on Validate. After the package has been created its resume is displayed.

Custom package resume

The fragments number and the Activated column value depends on your deployment configuration. For more informations see Deployment configuration.