A way to uninstall and reinstall a package in a single action
Sometimes a package will require a clean uninstallation and reinstallation.
Resolving the problem
When a package requires a clean uninstallation and reinstallation, this is easily accomplished with a BigFix baseline. For example, one might remove MyApplication version 8 before installing version 9. To do this in the Software Distribution Package Library, we will want to start with package definitions and installation tasks for versions 8 and 9. If these package definitions have not been built yet, please see http://www-01.ibm.com/support/docview.wss?uid=swg21506264 for guidance on building a package.
- Navigate to the fixlet for installing version 8.
- Click copy to create an uninstall fixlet. This will open the Fixlet creation wizard so that you can modify the file set, command line, and relevance.
- Depending on the package, the installation files may or may not need to be sent to the device. Make any required changes here, and click Next.
- The command line will need to be changed; for instance, if the command line to install was MSIEXEC.EXE /I MyApplication8.MSI /QN, the new command line will be MSIEXEC.EXE /X MyApplication8.MSI /QN.
- The relevance will need to be reversed; installation relevance looks for the absence of MyApplication 8, so the uninstallation relevance needs to look for the presence of it. This may be as simple as removing the NOT keyword.
- Navigate to the Software Distribution Tasks folder and locate the MyApplication8 Uninstallation and MyApplication9 Installation Tasks; select, right-click and Add to New Baseline. You may need to re-order the tasks and select the proper actions for them.
- Take action from the selected Baseline.
Translate this page: