Hi,

 

i think you have to remove the following files in different directories after killing the neccessary processes (e.g. Commloader.exe):

pdb.ini

mcsetup.ini

PPC_ARM_.*.CAB

 

Afterwards you have to clean some registry keys in HKLM\Software\Apps  and uninstall the agent.

Alternatively execute a factory reset.

 

Maybe the exact process depends a litte bit on different device models.

I am also very interested to get some new information / scripts here.

 

Maybe one solution:

####################################################
# #
# Stop current Mobi Control agent #
# #
####################################################

Run ( SystemPath("Startup") \ "\CommLoader.exe", "-disconnect" )
Sleep ( 1000 )
RunWait ( SystemPath("Startup") \ "\CommLoader.exe", "-exit" )
Sleep ( 1000 )

If ( ProcExists ("CommLoader.exe") )
Kill ("CommLoader.exe")
EndIf

 

####################################################
# #
# Uninstall old agent #
# #
####################################################

RunWait ( SystemPath("ProgramFiles") \ "\wceunload\wceunload.exe", """SOTI MobiControl Device Agent""" )

If ( FileExists ( SystemPath("Startup") \ "\CommLoader.exe" ) )
Run ( SystemPath("Startup") \ "\CommLoader.exe" )
Exit
EndIf

RegDeleteKey ( "HKLM", "\Software\Apps\SOTI\", YES, YES )

RegDeleteKey ( "HKLM", "\Software\Apps\SOTI MobiControl Device Agent\", YES, YES )
Delete ( "\IPSM\pdb.ini.bak" )
Delete ( "\PdbInfo\BAK_IPSM_pdb.ini" )
DelTree ( "\PdbInfo" )
DelTree ( "\IPSM\PdbPkg" )
Delete ( "\IPSM\MCSetup.ini" )
Delete ( "\IPSM\pdb.ini" )
SetFileAttribute( "\IPSM\<Manufacturer>\AutoInstall\PPC_ARM_1330M_SIGN.CAB", "readonly", 0)
Delete ( "\IPSM\<Manufacturer>\AutoInstall\PPC_ARM_1330M_SIGN.CAB" )