How to Deploy WeChat using SCCM

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.

Create WeChat SCCM application

In the create application wizard, on the General page, select Manually specify the application information. Click Next.

Application creation wizard

Specify WeChat application info such as Name, Publisher, Software Version etc. Click Next.

specify application details

Specify additional information about the app. Click Next.

Application Information

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.

Add a new deployment type

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

Select Run installation and uninstall program as 32-bit process on 64-bit clients. Click Next.
WeChat install and uninstall command

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 – 2.4.5.1

Click OK.

Wechat SCCM detection method

You may add addition deployment types if necessary. Click Next.

Wechat SCCM detection method

Specify the user experience settings and click Next. On rest of the wizard steps click Next and close the create deployment type wizard.

deploy wechat using SCCM

Finally on the Completion page, click Close.

deploy wechat using SCCM

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.

deploy wechat using SCCMHere is what you should see in appenforce.log file.

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.
Related Posts

Leave a Reply

avatar

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More