This post covers the steps to deploy a popular messaging app WeChat using SCCM. WeChat is a Chinese multi-purpose messaging, social media and mobile payment app developed by Tencent.
One of our customers requested us to package WeChat application. They wanted to deploy it silently using SCCM. When you download WeChat you get an executable file. So while there is no .msi file provided by the developer, you can still install it silently using /S switch.
First of all download the latest version of WeChat Windows application from here. Save the installer to Sources folder or any shared folder. This folder will be used as content source while packaging the app.
How to Deploy WeChat using SCCM
To deploy WeChat using SCCM, launch SCCM console and go to Software Library workspace. Expand Application Management.
Right click Applications and click Create Application.
In the create application wizard, on the General page, select Manually specify the application information. Click Next.
Specify WeChat application info such as Name, Publisher, Software Version etc. Click Next.
Specify additional information about the app. Click Next.
Click Add button to add a new deployment type. Select Type as Script Installer. The option Manually specify the deployment type information is automatically selected. Click Next.
Specify the content location, install and uninstall commands.
WeChat Install Command - "WeChat_C1012.exe" /S WeChat Uninstall Command - "%ProgramFiles(x86)%\Tencent\WeChat\Uninstall.exe" /S
In the next add a detection method.
- Setting Type – File System
- Type – File
- Path – %ProgramFiles(x86)%\Tencent\WeChat
- File or Folder Name – WeChat.exe
- Select The file system setting must satisfy the following rule to indicate the presence of this app.
- Property – Version
- Operator – Equals
- Value – 188.8.131.52
You may add addition deployment types if necessary. Click Next.
Specify the user experience settings and click Next. On rest of the wizard steps click Next and close the create deployment type wizard.
Finally on the Completion page, click Close.
The WeChat application must be distributed to all the distribution points. Deploy the application to a device collection.
To test the WeChat application install, login to a client computer. Launch Software Center and click Applications. Select WeChat application and click Install.
The application installs using the install command that we specified. You can always open Appenforce.log file to monitor the app installs.
Prepared working directory: C:\Windows\ccmcache\3 Prepared command line: "C:\Windows\ccmcache\3\WeChat_C1018.exe" /S Post install behavior is BasedOnExitCode Waiting for process 7680 to finish. Timeout = 120 minutes. Process 7680 terminated with exitcode: 0 Looking for exit code 0 in exit codes table... Matched exit code 0 to a Success entry in exit codes table
Note – The applications uninstalls fine however you at the first attempt it shows Removal Failed – Retry. Clicking retry again shows the install option.
Prepared working directory: C:\Windows\ccmcache\3 Prepared command line: "C:\Program Files (x86)\Tencent\WeChat\Uninstall.exe" /S Post install behavior is BasedOnExitCode Waiting for process 2696 to finish. Timeout = 120 minutes Process 2696 terminated with exitcode: 0 Looking for exit code 0 in exit codes table... Matched exit code 0 to a Success entry in exit codes table.