-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapple-hewlett-packard-printer-drivers.rb
64 lines (59 loc) · 2.64 KB
/
apple-hewlett-packard-printer-drivers.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
cask 'apple-hewlett-packard-printer-drivers' do
version '5.1'
sha256 '788e26e8afbfcf03d36f45e8563b1cd24183d6a8772b995914072189a714bd22'
url "https://support.apple.com/downloads/DL1888/en_US/HewlettPackardPrinterDrivers#{version}.dmg"
appcast 'https://support.apple.com/downloads/hewlett%2520packard'
name 'HP Printer Drivers'
homepage 'https://support.apple.com/kb/DL1888'
pkg 'HewlettPackardPrinterDrivers.pkg'
uninstall quit: [
'com.hp.HP-Scanner',
'com.hp.HPAiOScan',
'com.hp.HPAiOTulip',
'com.hp.HPDOT4Scan',
'com.hp.HPM1210_1130.HP_LaserJet_Professional_Utility',
'com.hp.HPSOAPScan',
'com.hp.HP_LaserJet_Professional_Utility',
'com.hp.LEDMScan',
'com.hp.ScanService',
'com.hp.aio.faxarchive',
'com.hp.customer.uploader',
'com.hp.devicemodel.hpdot4d',
'com.hp.devicemonitor.*',
'com.hp.dm.hpdot4d',
'com.hp.event.status.handler.generic',
'com.hp.events.*',
'com.hp.hpalerts.plugin.*',
'com.hp.printerutility.*',
'com.hp.productresearch.*',
'com.hp.scan.*',
'com.hp.scanModule.*',
],
signal: ['TERM', 'com.hp.printerutility'],
kext: 'com.hp.kext.io.enabler.compound',
pkgutil: [
'com.apple.pkg.HewlettPackardPrinterDrivers',
'com.apple.pkg.HewlettPackardPrinterDriversPreInstall',
],
delete: [
'/Library/Extensions/hp_io_enabler_compound.kext',
'/Library/Printers/hp/hpio',
],
rmdir: '/Library/Printers/hp'
zap trash: [
'~/Library/Application Support/HP/Product Improvement Study',
'~/Library/Logs/hp/HP Product Research.log',
'~/Library/Preferences/com.hp.HP-Scanner.plist',
'~/Library/Preferences/com.hp.printerutility.plist',
'~/Library/Preferences/com.hp.scanModule.plist',
'~/Library/Preferences/com.hp.scanModule3.plist',
'~/Library/Saved Application State/com.hp.printerutility.savedState',
],
rmdir: [
'~/Library/Application Support/HP',
'~/Library/Logs/hp',
]
caveats do
reboot
end
end