|
6 | 6 | "identifier": "Shareware", |
7 | 7 | "url": "https://www.scootersoftware.com/kb/licensev5" |
8 | 8 | }, |
| 9 | + "depends": "innounp", |
9 | 10 | "notes": [ |
10 | 11 | "The manifest already updated to v5, if you want to stay on v4 proceed as follows:", |
11 | 12 | "", |
|
20 | 21 | "architecture": { |
21 | 22 | "64bit": { |
22 | 23 | "installer": { |
23 | | - "args": [ |
24 | | - "/DIR=\"$dir\"", |
25 | | - "/VERYSILENT", |
26 | | - "/PORTABLE" |
| 24 | + "script": [ |
| 25 | + "Expand-InnoArchive \"$dir\\$fname\" -Removal", |
| 26 | + "Rename-Item \"$dir\\BCompare,2.exe\" \"$dir\\BCompare.exe\"", |
| 27 | + "Rename-Item \"$dir\\7z,2.dll\" \"$dir\\7z.dll\"", |
| 28 | + "Rename-Item \"$dir\\mscoree,2.dll\" \"$dir\\mscoree.dll\"", |
| 29 | + "Rename-Item \"$dir\\PdfToText,2.exe\" \"$dir\\PdfToText.exe\"", |
| 30 | + "Rename-Item \"$dir\\BCUnRAR,2.dll\" \"$dir\\BCUnRAR.dll\"", |
| 31 | + "Remove-Item \"$dir\\*,*\" -Force" |
27 | 32 | ] |
28 | 33 | } |
29 | 34 | }, |
30 | 35 | "32bit": { |
31 | 36 | "installer": { |
32 | | - "args": [ |
33 | | - "/32", |
34 | | - "/DIR=\"$dir\"", |
35 | | - "/VERYSILENT", |
36 | | - "/PORTABLE" |
| 37 | + "script": [ |
| 38 | + "Expand-InnoArchive \"$dir\\$fname\" -Removal", |
| 39 | + "Rename-Item \"$dir\\BCompare,1.exe\" \"$dir\\BCompare.exe\"", |
| 40 | + "Rename-Item \"$dir\\7z,1.dll\" \"$dir\\7z.dll\"", |
| 41 | + "Rename-Item \"$dir\\mscoree,1.dll\" \"$dir\\mscoree.dll\"", |
| 42 | + "Rename-Item \"$dir\\PdfToText,1.exe\" \"$dir\\PdfToText.exe\"", |
| 43 | + "Rename-Item \"$dir\\BCUnRAR,1.dll\" \"$dir\\BCUnRAR.dll\"", |
| 44 | + "Remove-Item \"$dir\\*,*\" -Force" |
37 | 45 | ] |
38 | 46 | } |
39 | 47 | } |
40 | 48 | }, |
| 49 | + "extract_dir": "Beyond Compare 5", |
41 | 50 | "bin": [ |
42 | 51 | "Bcomp.exe", |
43 | 52 | "BCompare.exe" |
|
46 | 55 | [ |
47 | 56 | "BCompare.exe", |
48 | 57 | "Beyond Compare 5" |
| 58 | + ], |
| 59 | + [ |
| 60 | + "BCClipboard.exe", |
| 61 | + "Clipboard Compare" |
49 | 62 | ] |
50 | 63 | ], |
51 | 64 | "pre_install": [ |
|
67 | 80 | "Helpers", |
68 | 81 | "Packers" |
69 | 82 | ], |
| 83 | + "post_install": [ |
| 84 | + "$dir_escaped = \"$dir\".Replace('\\', '\\\\')", |
| 85 | + "\"install-context-$architecture\", \"uninstall-context\" | ForEach-Object {", |
| 86 | + " if (Test-Path \"$bucketsdir\\$bucket\\scripts\\beyondcompare\\$_.reg\") {", |
| 87 | + " $content = Get-Content \"$bucketsdir\\$bucket\\scripts\\beyondcompare\\$_.reg\"", |
| 88 | + " $content = $content.Replace('$install_dir', $dir_escaped)", |
| 89 | + " $content = $content.Replace('$version', $version)", |
| 90 | + " $outfile_no_arch = $_.Replace(\"-$architecture\", \"\")", |
| 91 | + " $content | Set-Content -Path \"$dir\\$outfile_no_arch.reg\"", |
| 92 | + " }", |
| 93 | + "}", |
| 94 | + "if (Test-Path \"$dir\\install-context.reg\") {", |
| 95 | + " regedit /s \"$dir\\install-context.reg\"", |
| 96 | + "}" |
| 97 | + ], |
70 | 98 | "pre_uninstall": [ |
71 | 99 | "# Hardlinks won't work properly here to persist files, because this app creates a new file instead of writing to the existing one.", |
72 | 100 | "# Please keep the file list the same in both pre_install and post_install scripts.", |
73 | 101 | "'BC5Key.txt', 'BCColors.xml', 'BCCommands.xml', 'BCFileFormats.xml', 'BCPreferences.xml', 'BCState.xml', 'BCSessions.xml' | ForEach-Object {", |
74 | 102 | " if (Test-Path \"$dir\\$_\") {", |
75 | 103 | " Copy-Item \"$dir\\$_\" \"$persist_dir\\$_\" -Force", |
76 | 104 | " }", |
| 105 | + "}", |
| 106 | + "if (Test-Path \"$dir\\uninstall-context.reg\") {", |
| 107 | + " regedit /s \"$dir\\uninstall-context.reg\"", |
77 | 108 | "}" |
78 | 109 | ], |
79 | 110 | "checkver": { |
|
0 commit comments