I have an custom action with the msidbCustomActionTypeNoImpersonate bit during the uninstallation. The custom action is for deinstalling the WinSock provider. With the UAC, the uninstall option works fine if launching by a Setup.exe Bootstrapper manifest. However, it fails to remove the LPS provider if using the uninstall option from the Vista’s “Uninstall and Change Program” (it used to call Add/Remove Program). I can see the Credential Prompt dialog that indicates the elevation, and the custom action can access the System Context by deleting the registry entries. However, the WinSock function WSCDeinstallProvider returns Access Denied, error 10013. It happens only on the uninstall action from the “Uninstall and Change Program”.
Couple questions:
1) How to include a manifest on the “Uninstall and Change Program”. In the WSCDeinstallProvider API documentation, http://msdn.microsof...lprovider_2.asp, the UAC suggestion can only apply to your own executable, but not the “Uninstall and Change Program”.
2) Why the no impersonate custom action that is launched by the “Uninstall and Change Program” can access the System Registry API, but NOT the WinSock WSCDeinstallProvider function.
Thank You!
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Vista UAC, Uninstall and Change Program
Started by
byronng
, Oct 20 2006 00:56
1 reply to this topic
Posted 20 October 2006 - 07:23
Does it work from setup.exe with basic UI (/qb)? Are you passing any data from UI sequence to Execute sequence, or setting any properties on the command line?
What does a verbose log (www.msifaq.com/a/1022.htm) tell you?
What does a verbose log (www.msifaq.com/a/1022.htm) tell you?
Stefan Krüger
InstallSite.org twitter facebook