Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10616

Windows: package doesn't pass uninstall_options to uninstaller

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: PUP 6.17.0
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Agent OS:
      Windows Server 2008 R2 (x64)
    • Team:
      Night's Watch
    • Sprint:
      ready for triage
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.17.0
      Puppet Server Version: 6.12.1
      OS Name/Version: Windows

      In order to uninstall a package from Windows agents, I created a package resource, which also included specific "uninstall_options" for the package. While the correct uninstaller ("...\uninstall.exe", as recorded in the registry) was executed, the package wasn't uninstalled. I checked with Process Explorer and found that the uninstaller was called w/o any option. So I ended up using an exec resource...

      package {'Sentinel Agent':
        ensure => absent,
        uninstall_options => ['/uninstall', '/norestart', '/q', "/k=\"${unlock_key}\""],
      }
      

       

      Desired Behavior:

      Puppet should have uninstalled the package by passing the correct options to the uninstaller.

      Actual Behavior:

      Options were not passed, which lead to package not being uninstalled. (Maybe related: There was also no error in the report, but that might have been caused by the uninstaller itself, which might not have reported one).

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dhs@recommind.com Dirk Heinrichs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support