The following procedures must be followed for all agent upgrades from any version lower than v5.03.0. These steps are intended to address the numerous issues during the SureMDM agent update process.
This document implies both manual upgrades and upgrades via the SureMDM install job in the console.
Purpose
The purpose of the article is to provide a guide on how to update the SureMDM agent on Windows devices when the agent version is less than v5.03.0.
Prerequisites
The SureMDM agent version has to be lower than v5.03.0.
Steps
To upgrade the agent from the SureMDM console,
- Create a Runscript job for the below command :
(Jobs > New Job > Windows > Runscript)
Script : start "" /B "C:\Program Files (x86)\42Gears\Nix Agent\NixSvMng.exe" handleuninstall & timeout 10 & taskkill /F /IM NixSvMng.exe & timeout 10 & sc delete nixsvmng
NOTE: Quotes in this script should be double quotes, please verify once the script is copied and pasted while creating a job.
![](https://knowledgebase.42gears.com/wp-content/uploads/2024/08/image-1-1024x430.png)
- Create an Install Job for SureMDM agent
- Jobs > New Job > Windows > Install Job > Copy paste the SureMDM agent Link URL(https://suremdm.42gears.com/nix/nix_installer_win.exe).
- Set Install Arguments as /verysilent.
- Save the Job.
![](https://knowledgebase.42gears.com/wp-content/uploads/2024/08/image.png)
- Create a Composite Job with the Script job and the Install job with a delay of 10secs in the following order:
- Script job > Add 10sec delay.
- Install Job of SureMDM upgrade.
![](https://knowledgebase.42gears.com/wp-content/uploads/2024/08/image-2-1024x167.png)
Note: It is mandatory to follow all the steps mentioned.
To upgrade the agent manually
- Run the below command through a runscript job via SureMDM onto the device.
start "" /B "C:\Program Files (x86)\42Gears\Nix Agent\NixSvMng.exe" handleuninstall & timeout 10 & taskkill /F /IM NixSvMng.exe & timeout 10 & sc delete nixsvmng
NOTE: Quotes in this script should be double quotes, please verify once the script is copied and pasted while creating a job.
2. Download the Latest SureMDM agent from the website and install it.
Note: The above steps are to be followed only once to upgrade to a version greater than or equal to v5.03.0.
To register and try SureMDM for free, Click here.
Need help? CONTACT US