File tree 1 file changed +21
-2
lines changed
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 13
13
"hash" : " 0f472dd8e466951095c3e8debef484628d7ba72c439d62368c04bce1610049b0"
14
14
}
15
15
},
16
- "extract_dir" : " Files" ,
16
+ "installer" : {
17
+ "script" : [
18
+ " $configpath = \" $env:PUBLIC\\ Documents\\ Tencent\\ QQ\" " ,
19
+ " if (!(Test-Path \" $configpath\" )) {" ,
20
+ " New-Item -Path \" $configpath\" -Type Directory -Force | Out-Null" ,
21
+ " }" ,
22
+ " Set-Content -NoNewline -Path \" $configpath\\ UserDataInfo.ini\" -Value \" [UserDataSet]`nUserDataSavePathType=2`nUserDataSavePath=$persist_dir\\ QQ-Files\" " ,
23
+ " # handle runtime cache" ,
24
+ " ensure \" $persist_dir\\ appdata\" | Out-Null" ,
25
+ " New-Item \" $env:APPDATA\\ QQ\" -ItemType Junction -Target \" $persist_dir\\ appdata\" | Out-Null"
26
+ ]
27
+ },
17
28
"shortcuts" : [
18
29
[
19
- " QQ.exe" ,
30
+ " Files \\ QQ.exe" ,
20
31
" QQ"
21
32
]
22
33
],
34
+ "persist" : " QQ-Files" ,
35
+ "uninstaller" : {
36
+ "script" : [
37
+ " Remove-Item -Path \" $env:PUBLIC\\ Documents\\ Tencent\" -Recurse -Force | Out-Null" ,
38
+ " #remove handle runtime cache" ,
39
+ " Remove-Item \" $env:APPDATA\\ QQ\" -Recurse -Force -ErrorAction 'SilentlyContinue'"
40
+ ]
41
+ },
23
42
"checkver" : {
24
43
"script" : [
25
44
" $url = 'https://im.qq.com/pcqq/index.shtml'" ,
You can’t perform that action at this time.
0 commit comments