[PythonCE] Remotely uninstalling application

alexandre.delattre at enst-bretagne.fr alexandre.delattre at enst-bretagne.fr
Wed Aug 8 00:30:00 CEST 2007

Hello Petri,

This module should do the trick (assume you have ctypes):

uninstall.py :

from ctypes import *

DMProcessConfigXML = cdll.aygshell.DMProcessConfigXML
XML = u'''\
     <characteristic type="UnInstall">
         <characteristic type="%s">
             <parm name="uninstall" value="1"/>

def uninstall(app_name):
     Removes the program designated by app_name
     (as appearing in Program->Settings->Remove)
     xml_out = c_wchar_p()
     return DMProcessConfigXML(XML %app_name, 1, byref(xml_out))

Just call the uninstall function in any of you script and the job is done.
Worked on my Acer n311.


More information about the PythonCE mailing list