Wiki source code of Deinstallation einer MSI-Datei

Last modified by Jannis Klein on 2024/08/13 08:19

Hide last authors
Jannis Klein 1.1 1 {{aagon.priorisierung}}
2 160
3 {{/aagon.priorisierung}}
4
5 {{aagon.floatingbox/}}
6
Sabrina V. 5.1 7 = Initial situation =
Jannis Klein 1.1 8
Sabrina V. 5.1 9 case, you may need to remove software that has already been installed from the Clients. This is where the fact that uninstalling an MSI file in a Client Command takes very little time comes in handy. All you need is an unique ID that has already been read by ACMP during the inventory scan and that you can access. This means that the entry is already in the list, which you just need to access and select.
Jannis Klein 1.1 10
Sabrina V. 5.1 11 This use case explains how to uninstall installed software. This use case is related to the "Installing an MSI file" use case, so we will continue with the example and uninstall the data compression utility 7-Zip.
Jannis Klein 1.1 12
Sabrina V. 5.1 13 If you want to uninstall a different MSI package at a later date, you can use this example as a template and replace the information where appropriate. To uninstall a MSI file, follow these steps:
Jannis Klein 1.1 14
Sabrina V. 5.1 15 == Select Script ==
Jannis Klein 1.1 16
Sabrina V. 5.1 17 1. Navigate to the //Client Commands //> //Create// module.
18 1. Click //Add// on the ribbon bar. The Client Command Editor will open and you will need to decide whether it is a Console or Client Script. In this case select Client Script.
Jannis Klein 1.1 19
Sabrina V. 5.1 20 == **Select and edit the //Uninstall MSI package //Command** ==
21
22 1. Double click the //Uninstall MSI Package// (MSI) Command to load it into the Script.
23 1. Under //Product Information//, click the Browse icon next to the product code.
24 A new window will open.
25 1. From the list of installed MSI packages, select the software you want to remove from the Clients.
26 In this example, the software //7-Zip 22.01 (x64 Edition//) is selected.
27
Jannis Klein 1.1 28 {{figure}}
Sabrina V. 5.1 29 (% style="text-align:center" %)
30 [[image:65_Use Case Client Commands_Deinstallation einer MSI Datei_Produktcode Suche_616.png]]
Jannis Klein 1.1 31
32 {{figureCaption}}
Sabrina V. 5.1 33 Find product code
Jannis Klein 1.1 34 {{/figureCaption}}
35 {{/figure}}
36
Sabrina V. 5.1 37 4. Click //OK//.
38 5. You will be returned to the previous window where the product code field was filled in. This is the product code stored internally by the 7-Zip software.
Jannis Klein 1.1 39
40 {{aagon.infobox}}
Sabrina V. 5.1 41 Find and select the appropriate product code for soft entry in your environment.
Jannis Klein 1.1 42 {{/aagon.infobox}}
43
Sabrina V. 5.1 44 6. Select //Unattended// under the display mode.
45 7. Under Options, you can select //Suppress restart//. If the uninstaller requires a reboot, it will not reboot immediately. This means that other open programs or files will not simply be closed without you having saved  them.
46 8. Change to the //Error Code// tab.
Jannis Klein 1.1 47
48 {{aagon.infobox}}
Sabrina V. 5.1 49 It is possible that the Command may fail if, for example, you select software that exists in multiple versions. If you enter an incorrect product code in the version number, you will not be able to exit the Command. It is therefore advisable to include error codes that are to be ignored. These error codes are defined by Microsoft and can be found [[here>>doc:65.ACMP-Solutions.Client Commands.Client Command erstellen.Client Commands neu hinzufügen.Client Command Editor.Commandlist.MSI.WebHome||anchor="HMSIFehlercodes"]].
Jannis Klein 1.1 50 {{/aagon.infobox}}
51
Sabrina V. 5.1 52 9. Insert error codes 1605 and 3010 one below the other so that they are added to the list of exceptions that will be ignored when the command is processed.
53 10. Optional: Switch to the //General// tab.
54 ~11. Optional: Change the description of the action, for example by adding the name, e.g. "Uninstall MSI package (7-Zip 22.01 (x64 edition)".
55 12. Click //OK// to close the Command.
Jannis Klein 1.1 56
57 {{figure}}
Sabrina V. 5.1 58 (% style="text-align:center" %)
59 [[image:65_Use Case Client Commands_Produktinformationen zum Deinstallieren eines MSI-Pakets.png]]
Jannis Klein 1.1 60
61 {{figureCaption}}
Sabrina V. 5.1 62 Product information on how to uninstall an MSI package
Jannis Klein 1.1 63 {{/figureCaption}}
64 {{/figure}}
65
Sabrina V. 5.1 66 == To insert and edit **//Run Client Task //Command** ==
Jannis Klein 1.1 67
Sabrina V. 5.1 68 1. Select //ACMP// > //Run Client Task// from the Command List.
69 1. Open the //General// tab.
70 1. In the //Description of actions// box, enter a name. It is recommended that you add the name of the scanner, e.g. „Run software scanner as a scheduled task“.
71 1. Return to the //Details// tab.
72 1. Under //Run as a scheduled task//, select the software scanner. This will update the system, delete the software from the inventory and it will no longer appear on the Clients.
73 1. Click //OK//.
Jannis Klein 1.1 74
75 {{figure}}
Sabrina V. 5.1 76 (% style="text-align:center" %)
77 [[image:65_Use Case Client Commands_Software Scanner als geplante Aufgabe ausführen.png]]
Jannis Klein 1.1 78
79 {{figureCaption}}
Sabrina V. 5.1 80 Run Software scanner as a scheduled task
Jannis Klein 1.1 81 {{/figureCaption}}
82 {{/figure}}
83
Sabrina V. 5.1 84 The final step is to save your Client Commands in the Editor.
Jannis Klein 1.1 85
86 {{figure}}
Sabrina V. 5.1 87 (% style="text-align:center" %)
88 [[image:65_Use Case Client Commands_Client Command Editor MSI-Paket deinstallieren.png]]
Jannis Klein 1.1 89
90 {{figureCaption}}
Sabrina V. 5.1 91 Client Command Editor: Uninstall MSI Package
Jannis Klein 1.1 92 {{/figureCaption}}
93 {{/figure}}
94
95 == Client Command-Phasen durchlaufen lassen ==
96
Sabrina V. 5.1 97 The Client Commands must then go through the [[Test>>doc:ACMP.65.ACMP-Solutions.Client Commands.Client Command testen.WebHome]], [[Synchronize>>doc:ACMP.65.ACMP-Solutions.Client Commands.Client Command synchronisieren.WebHome]], [[Release>>doc:ACMP.65.ACMP-Solutions.Client Commands.Client Command freigeben.WebHome]] and [[Execute>>doc:ACMP.65.ACMP-Solutions.Client Commands.Client Command ausführen.WebHome]] phases before they can be used. During the execution of the Client Command, the 7-Zip software is uninstalled from the Clients.
© Aagon GmbH 2025
Besuchen Sie unsere neue Aagon-Community