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.