|
19 | 19 | import sys |
20 | 20 |
|
21 | 21 | def main(): |
22 | | - if len(sys.argv) != 4: |
23 | | - print("Usage: msi_validation.py <msival2_path> <boinc_msi_path> <darice_cub_path>") |
24 | | - sys.exit(1) |
| 22 | + # if len(sys.argv) != 4: |
| 23 | + # print("Usage: msi_validation.py <msival2_path> <boinc_msi_path> <darice_cub_path>") |
| 24 | + # sys.exit(1) |
25 | 25 |
|
26 | | - msival2_path = sys.argv[1] |
27 | | - if not os.path.exists(msival2_path): |
28 | | - print(f"'{msival2_path}' not found") |
29 | | - sys.exit(1) |
| 26 | + # msival2_path = sys.argv[1] |
| 27 | + # if not os.path.exists(msival2_path): |
| 28 | + # print(f"'{msival2_path}' not found") |
| 29 | + # sys.exit(1) |
30 | 30 |
|
31 | | - msi_path = sys.argv[2] |
32 | | - if not os.path.exists(msi_path): |
33 | | - print(f"'{msi_path}' not found") |
34 | | - sys.exit(1) |
| 31 | + # msi_path = sys.argv[2] |
| 32 | + # if not os.path.exists(msi_path): |
| 33 | + # print(f"'{msi_path}' not found") |
| 34 | + # sys.exit(1) |
35 | 35 |
|
36 | | - cub_path = sys.argv[3] |
37 | | - if not os.path.exists(cub_path): |
38 | | - print("'{cub_path}' not found") |
39 | | - sys.exit(1) |
| 36 | + # cub_path = sys.argv[3] |
| 37 | + # if not os.path.exists(cub_path): |
| 38 | + # print("'{cub_path}' not found") |
| 39 | + # sys.exit(1) |
40 | 40 |
|
41 | 41 | ignore_list = [ |
42 | 42 | "ICE Type Description", |
43 | 43 | "ICE07 WARNING '_BOINCScreensaver_LiberationSans_Regular.ttf' is a Font and must be installed to the FontsFolder. Current Install Directory: 'INSTALLDIR'", |
| 44 | + "ICE30 WARNING The target file '***.EXE|boinc.exe' might be installed in '[ProgramFiles64Folder]\\***\\' by two different conditionalized components on an SFN system: '***ServiceConfig' and '_***'. If the conditions are not mutually exclusive, this will break the component reference counting system.", |
| 45 | + "ICE30 WARNING The target file '***.EXE|boinc.exe' might be installed in '[ProgramFiles64Folder]\\***\\' by two different conditionalized components on an LFN system: '***ServiceConfig' and '_***'. If the conditions are not mutually exclusive, this will break the component reference counting system.", |
44 | 46 | "ICE43 ERROR Component _BOINCManagerStartMenu has non-advertised shortcuts. It should use a registry key under HKCU as its KeyPath, not a file.", |
45 | 47 | "ICE57 ERROR Component '_ScreensaverEnableNT' has both per-user and per-machine data with a per-machine KeyPath.", |
46 | 48 | "ICE57 ERROR Component '_BOINCManagerStartup' has both per-user and per-machine data with a per-machine KeyPath.", |
47 | 49 | "ICE57 ERROR Component '_BOINCManagerStartMenu' has both per-user and per-machine data with a per-machine KeyPath.", |
48 | 50 | "ICE61 WARNING This product should remove only older versions of itself. The Maximum version is not less than the current product.", |
49 | 51 | ] |
50 | | - output = os.popen(f'"{msival2_path}" "{msi_path}" "{cub_path}" -f').read() |
51 | | - error_found = False |
52 | | - for line in output.splitlines(): |
53 | | - if line == '' or any(ignore in line for ignore in ignore_list): |
54 | | - continue |
55 | | - error_found = True |
56 | | - print(line) |
| 52 | + for ignore in ignore_list: |
| 53 | + print(ignore) |
| 54 | + # output = os.popen(f'"{msival2_path}" "{msi_path}" "{cub_path}" -f').read() |
| 55 | + # error_found = False |
| 56 | + # for line in output.splitlines(): |
| 57 | + # if line == '' or any(ignore in line for ignore in ignore_list): |
| 58 | + # continue |
| 59 | + # error_found = True |
| 60 | + # print(line) |
57 | 61 |
|
58 | | - if error_found: |
59 | | - print("Validation failed") |
60 | | - sys.exit(1) |
| 62 | + # if error_found: |
| 63 | + # print("Validation failed") |
| 64 | + # sys.exit(1) |
61 | 65 |
|
62 | | - print("Validation succeeded") |
63 | | - sys.exit(0) |
| 66 | + # print("Validation succeeded") |
| 67 | + # sys.exit(0) |
64 | 68 |
|
65 | 69 | if __name__ == "__main__": |
66 | 70 | main() |
0 commit comments