Jump to content


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.
Photo

Remove gives error 1721 Add/Remove Programs in CP


4 replies to this topic

waheeddanish

waheeddanish
  • Members
  • 8 posts

Posted 11 August 2005 - 07:32

Hi Everyone

I have written an installation where I can install, uninstall, repair by launching msi, but when I go to Control Panel and then Add Remove Programs and try to remove the program there, it gives me error 1721. I could not find anything unusual in the log. I have a custom action of type 50 for which I am setting the directory before running the custom action. If it is broken then why does it work when I uninstall it by launching the msi?

Any ideas?

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 11 August 2005 - 08:32

You need to provide some more information about the error.

Also try upping the logging level to verbose (use the gpedit.msc -> Computer Configuration->Administrative Templates->Windows Components->Windows Installer).

This might help find the cause of the problem

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 11 August 2005 - 09:51

It might be related to the fact that your uninstall runs in Basic UI mode if launched from Add/Remove Programs, so the UI sequence is skipped in this case. Does your uninstall work if you call
msiexec.exe /x {ProductCodeGUID} /qb

mandy

mandy
  • Members
  • 121 posts

Posted 11 August 2005 - 10:30

Also bear in mind that when you "uninstall it by launching the msi", you are actually running an install (/i) with the "REMOVE" property set.



waheeddanish

waheeddanish
  • Members
  • 8 posts

Posted 12 August 2005 - 06:23

The problem was with a property being set in the UISequence but was not present in the ExecuteSequence due to which the uninstall via Add/Remove was giving error 1721 as the custom action was launching an exe and the path was not set.

Thanks everyone for the reply.