Install and uninstall programs on Windows Mobile

Source: Internet
Author: User

Install the cab package:
1) shellexecuteex;
2) CreateProcess;
Wceload.exe is required for implementation.

After the program is successfully installed, you can view the list of installed programs in Settings> system> Delete programs. Where are the list information stored?
The answer is that under the Registry key HKEY_LOCAL_MACHINE/security/appinstall, you can see the name of the program you just mentioned in this directory.

To uninstall:
If there is a sub-item under appinstall named aaa bbb, then it corresponds to the manufacturer and productname we specified during packaging. You can also find the uninstall method on the Internet: Use dmprocessconfigxml to complete:
Lpctstr szxml =
L "<WAP-provisioningdoc>"
L "<characteristic type =/" Uninstall/">"
L "<characteristic type =/" aaa bbb/">"
L "<parm name =/" Uninstall/"value =/" 1/"/>"
L "</characteristic>"
L "</characteristic>"
L "</WAP-provisioningdoc> ";

Lpwstr pszwxmlout = NULL;
Hresult hR = dmprocessconfigxml (szxml, export flag_process, & pszwxmlout );
If (pszwxmlout)
{
Delete [] pszwxmlout;
Pszwxmlout = NULL;
}

Of course, when you use this method to uninstall a program, everything is quiet and will not be prompted when you delete the program in the settings.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.