[PythonCE] Remotely uninstalling application
Hi, I am trying to remotely/programmatically uninstall app from PPC 5.0 device. with python script. know it happens by sending XML file with details. As parameter to some app. So can anyone help me witch app should I call with the xml parameter. To do the uninstalling. thankyou in advance -Petri ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Remotely uninstalling application
Hello Petri, This module should do the trick (assume you have ctypes): uninstall.py : from ctypes import * DMProcessConfigXML = cdll.aygshell.DMProcessConfigXML XML = u'''\ ''' 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. Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Remotely uninstalling application
Hi, one stupid question where can i get ctypes :) - Petri 2007/8/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hello Petri, > > This module should do the trick (assume you have ctypes): > > uninstall.py : > > from ctypes import * > > DMProcessConfigXML = cdll.aygshell.DMProcessConfigXML > XML = u'''\ > > > > > > > ''' > > 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. > > Regards, > Alexandre > > -- I love deadlines. I love the whooshing sound they make as they go by. - Douglas Adams ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce