munkiserver icon indicating copy to clipboard operation
munkiserver copied to clipboard

Uninstall Method 'Uninstall Item Location' missing key

Open treydock opened this issue 12 years ago • 1 comments

Looks like there's a key missing to define the Uninstall Method "Uninstall Item Location"...

FORM_OPTIONS = {
....
                  :uninstall_method        => [['Remove Copied Items','remove_copied_items'],
                                               ['Remove Packages','removepackages'], 
                                               ['Remove App', 'remove_app'], 
                                               ['Uninstall Script', 'uninstall_script'],
                                               ['Uninstaller Script Location', ''],
                                               ['Uninstall Item Location', 'uninstaller_item_location'],    
                                               ['AdobeUberUninstaller','AdobeUberUninstaller'],
                                               ['AdobeSetup','AdobeSetup'],
                                               ['AdobeCS5AAMEEPackage','AdobeCS5AAMEEPackage']]}

In Munki pkginfos have this,


    <key>uninstall_method</key>
    <string>/etc/cups/printers_deployment/uninstalls/PERFACAD406Printer.sh</string>

Does uninstall_script have the same effect when generating XML ?

treydock avatar Apr 17 '12 21:04 treydock

Is that key and string generated by makepkginfo? If so, you've found a case that hasn't been handled yet.

You should be able to accomplish the same effect by selecting "Uninstaller script location" from the Uninstaller Method drop down, then entering the path to your uninstall script in the Uninstaller script location field.

Let me know how it goes!

jnraine avatar Apr 24 '12 20:04 jnraine