Corrected Uninstall
@@ -107,29 +107,43 @@ Finally, cybersecurity smart enough for the Mac.</string>
<dict>
<key>Arguments</key>
<dict>
- <key>pkg_path</key>
- <string>%RECIPE_CACHE_DIR%/downloads/installer-pkg/Malwarebytes.pkg</string>
- <key>repo_subdirectory</key>
- <string>%MUNKI_REPO_SUBDIR%</string>
- <key>version_comparison_key</key>
- <string>CFBundleVersion</string>
- <key>uninstaller_pkg_path</key>
+ <key>destination_path</key>
+ <string>%RECIPE_CACHE_DIR%/uninstaller_unpack/</string>
+ <key>flat_pkg_path</key>
<string>%RECIPE_CACHE_DIR%/downloads/uninstaller-pkg/Remove Malwarebytes.pkg</string>
+ <key>purge_destination</key>
+ <string>true</string>
</dict>
<key>Processor</key>
- <string>MunkiImporter</string>
+ <string>FlatPkgUnpacker</string>
+ </dict>
+ <dict>
+ <key>Processor</key>
+ <string>FileFinder</string>
+ <key>Arguments</key>
+ <dict>
+ <key>pattern</key>
+ <string>%RECIPE_CACHE_DIR%/uninstaller_unpack/MbamUninstaller.pkg/Scripts/postinstall</string>
+ </dict>
</dict>
<dict>
<key>Arguments</key>
<dict>
- <key>path_list</key>
+ <key>additional_makepkginfo_options</key>
<array>
- <string>%RECIPE_CACHE_DIR%/installer_payload/</string>
- <string>%RECIPE_CACHE_DIR%/installer_unpack/</string>
+ <string>--uninstall_script=%found_filename%</string>
</array>
+ <key>pkg_path</key>
+ <string>%RECIPE_CACHE_DIR%/downloads/installer-pkg/Malwarebytes.pkg</string>
+ <key>repo_subdirectory</key>
+ <string>%MUNKI_REPO_SUBDIR%</string>
+ <key>version_comparison_key</key>
+ <string>CFBundleVersion</string>
+ <key>uninstaller_pkg_path</key>
+ <string>%RECIPE_CACHE_DIR%/downloads/uninstaller-pkg/Remove Malwarebytes.pkg</string>
</dict>
<key>Processor</key>
- <string>PathDeleter</string>
+ <string>MunkiImporter</string>
</dict>
</array>
</dict>
