views:

48

answers:

1

What I want to do is uninstall my program on the device Programmatically. So I trying to use DMProcessConfigXML() as this site

It seems to work well on the emulator, but it didn't work on my device.

Application goes exit after calling DMProcessConfigXML() without return result code.

This is a part of code. after line 2, program is terminated.

const wchar_t *_deleteUninstallOFficeLiteXML = 
L"<wap-provisioningdoc>"
L"   <characteristic type=\"UnInstall\">"
L"      <characteristic type=\"myApp\">"
L"         <parm name=\"uninstall\" value=\"1\"/>"
L"      </characteristic>"
L"   </characteristic>"
L"</wap-provisioningdoc>";

   1. HRESULT hr = E_FAIL;
   2. hr = DMProcessConfigXML(_deleteUninstallXML, CFGFLAG_PROCESS, &out);
   3. if (FAILED(hr))
   4. { ...

Does anyone know why this happen and how to fix?

A: 

Have the same problem when I try to uninstall my application on WM 6.5. Same code works well on other WM versions. Have tried so many things but cannot get it to work.

Houser