-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-en-x86.json
91 lines (91 loc) · 2.92 KB
/
setup-en-x86.json
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
85
86
87
88
89
90
91
{
"product_name": "Setup Demo",
"product_version": "1.0.0.1",
"publisher": "Straight",
"language": "en",
"platform": "x86",
"install_name": "%product_name%(%Language%%platform%)",
"install_folder": "%SystemDrive%/%install_name%",
"on_init": [
{
"type": "check_running",
"target": "%install_folder%/wordpad.exe"
},
{
"type": "check_running",
"target": "%install_folder%/Uninstaller.exe"
}
],
"on_install": [
{
"type": "shortcut",
"name": "%install_name%",
"link": "%SystemDrive%/Users/Public/Desktop/%install_name%.lnk",
"target": "%install_folder%/wordpad.exe",
"icon": "%install_folder%/icon/Installer.ico",
"startin": "%install_folder%"
},
{
"type": "shortcut",
"name": "%install_name%",
"link": "%ProgramData%/Microsoft/Windows/Start Menu/Programs/%install_name%/%install_name%.lnk",
"target": "%install_folder%/wordpad.exe",
"icon": "%install_folder%/icon/Installer.ico",
"startin": "%install_folder%"
},
{
"type": "shortcut",
"name": "Uninstall %install_name%",
"link": "%ProgramData%/Microsoft/Windows/Start Menu/Programs/%install_name%/Uninstaller.lnk",
"target": "%install_folder%/Uninstaller.exe",
"icon": "%install_folder%/icon/Uninstaller.ico",
"startin": "%install_folder%"
},
{
"type": "regadd",
"platform": "os",
"parent": "HKEY_LOCAL_MACHINE",
"key": "SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/%install_name%",
"DisplayName": "%install_name%",
"DisplayVersion": "%product_version%",
"InstallLocation": "%install_folder%",
"UninstallString": "%install_folder%/Uninstaller.exe",
"DisplayIcon": "%install_folder%/Uninstaller.exe,0",
"Publisher": "%publisher%"
},
{
"type": "execute",
"command": "%install_folder%/prerequisite/VC_redist_2019_x86.exe",
"parameters": "",
"visible": "true"
}
],
"on_uninstall": [
{
"type": "execute",
"command": "cmd.exe /c",
"parameters": "del /Q '%SystemDrive%/Users/Public/Desktop/%install_name%.lnk'"
},
{
"type": "execute",
"command": "cmd.exe /c",
"parameters": "del /Q '%ProgramData%/Microsoft/Windows/Start Menu/Programs/%install_name%/%install_name%.lnk'"
},
{
"type": "execute",
"command": "cmd.exe /c",
"parameters": "del /Q '%ProgramData%/Microsoft/Windows/Start Menu/Programs/%install_name%/Uninstaller.lnk'"
},
{
"type": "execute",
"command": "cmd.exe /c",
"parameters": "rmdir '%ProgramData%/Microsoft/Windows/Start Menu/Programs/%install_name%'"
},
{
"type": "regdel",
"platform": "os",
"parent": "HKEY_LOCAL_MACHINE",
"key": "SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/%install_name%"
}
]
}