This repository was archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregInit.js
More file actions
84 lines (82 loc) · 2.42 KB
/
regInit.js
File metadata and controls
84 lines (82 loc) · 2.42 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
const regedit = require('regedit')
//Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{PRNAME}
//regedit.deleteKey(['HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe_Discord_RPC_NodePort'], function(err) {
// if (err) throw err;
//})
regedit.createKey(['HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe_Discord_RPC_NodePort'], function(err) {
if (err) throw err;
})
regedit.putValue({
'HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe_Discord_RPC_NodePort': {
'DisplayIcon': {
value: 'C:\\Program Files\\Adobe Discord RPC\\temp.ico',
type: 'REG_SZ'
},
'DisplayName': {
value: 'Adobe Discord RPC',
type: 'REG_SZ'
},
'DisplayVersion': {
value: 'Release 2021-05-09-pre1',
type: 'REG_SZ'
},
'InstallDate': {
value: '20210122',
type: 'REG_SZ'
},
'Publisher': {
value: 'Adobe Discord RPC Team.',
type: 'REG_SZ'
},
'UninstallString': {
value: 'Path',
type: 'REG_SZ'
},
'URLInfoAbout': {
value: 'https://adobe.discordrpc.org/',
type: 'REG_SZ'
},
'HelpLink': {
value: 'https://adobe.discordrpc.org/',
type: 'REG_SZ'
},
'ModifyPath': {
value: 'Path',
type: 'REG_SZ'
},
'InstallLocation': {
value: 'C:\\Program Files\\Adobe Discord RPC',
type: 'REG_SZ'
},
'ADRPC:Core_Version': {
value: '4.0-pre1 (2021050901)',
type: 'REG_SZ'
},
'ADRPC:Monitor_Version': {
value: '1.0-pre1 (2021050901)',
type: 'REG_SZ'
},
'ADRPC:Configurator_Version': {
value: '1.0-pre1 (2021050901)',
type: 'REG_SZ'
},
'ADRPC:Controller_Version': {
value: '1.0-pre1 (2021050901)',
type: 'REG_SZ'
},
'ADRPC:StartMenuFolder': {
value: 'true',
type: 'REG_SZ'
},
'ADRPC:StartWithWindows': {
value: 'true',
type: 'REG_SZ'
},
'ADRPC:DesktopShortcut': {
value: 'true',
type: 'REG_SZ'
}
},
}, function(err) {
if (err) throw err;
})