|
42 | 42 | "C:\\", "ProgramData", "Microsoft", "Windows", "Start Menu", "Programs", "Startup" |
43 | 43 | ) |
44 | 44 |
|
45 | | -SECI = "SECI User interface.lnk" |
46 | | -SECI_ONE_PATH = os.path.join("C:\\", "Program Files (x86)", "CCLRC ISIS Facility") |
47 | | -SECI_AUTOSTART_LOCATIONS = [os.path.join(USER_STARTUP, SECI), os.path.join(ALLUSERS_STARTUP, SECI)] |
48 | 45 | EPICS_CRTL_PATH = os.path.join(EPICS_PATH, "crtl") |
49 | 46 |
|
50 | 47 |
|
@@ -83,49 +80,6 @@ def clean_up_desktop_ibex_training_folder(self) -> None: |
83 | 80 | """ |
84 | 81 | self._file_utils.remove_tree(DESKTOP_TRAINING_FOLDER_PATH, self.prompt) |
85 | 82 |
|
86 | | - @task("Remove SECI shortcuts") |
87 | | - def remove_seci_shortcuts(self) -> None: |
88 | | - """ |
89 | | - Remove (or at least ask the user to remove) all Seci shortcuts |
90 | | - """ |
91 | | - for path in SECI_AUTOSTART_LOCATIONS: |
92 | | - if os.path.exists(path): |
93 | | - self.prompt.prompt_and_raise_if_not_yes( |
94 | | - f"SECI autostart found in {path}, delete this." |
95 | | - ) |
96 | | - |
97 | | - self.prompt.prompt_and_raise_if_not_yes("Remove task bar shortcut to SECI") |
98 | | - self.prompt.prompt_and_raise_if_not_yes("Remove desktop shortcut to SECI") |
99 | | - self.prompt.prompt_and_raise_if_not_yes("Remove start menu shortcut to SECI") |
100 | | - |
101 | | - @task("Remove Treesize shortcuts") |
102 | | - def remove_treesize_shortcuts(self) -> None: |
103 | | - """ |
104 | | - Remove (or at least ask the user to remove) all Treesize shortcuts. |
105 | | -
|
106 | | - For justification see https://github.com/ISISComputingGroup/IBEX/issues/4214 |
107 | | - """ |
108 | | - self.prompt.prompt_and_raise_if_not_yes("Remove task bar shortcut to Treesize if it exists") |
109 | | - self.prompt.prompt_and_raise_if_not_yes("Remove desktop shortcut to Treesize if it exists") |
110 | | - self.prompt.prompt_and_raise_if_not_yes( |
111 | | - "Remove start menu shortcut to Treesize if it exists" |
112 | | - ) |
113 | | - |
114 | | - @task("Remove SECI 1 Path") |
115 | | - def remove_seci_one(self) -> None: |
116 | | - """ |
117 | | - Removes SECI 1 |
118 | | - """ |
119 | | - if os.path.exists(SECI_ONE_PATH): |
120 | | - try: |
121 | | - self._file_utils.remove_tree(SECI_ONE_PATH, self.prompt, use_robocopy=False) |
122 | | - except (IOError, WindowsError) as e: |
123 | | - self.prompt.prompt_and_raise_if_not_yes( |
124 | | - f"Failed to remove SECI 1 (located in '{SECI_ONE_PATH}') " |
125 | | - f"because '{e}'. Please remove it manually and type 'Y'" |
126 | | - f" to confirm" |
127 | | - ) |
128 | | - |
129 | 83 | @version_check(Java()) |
130 | 84 | @task("Install java") |
131 | 85 | def check_java_installation(self) -> None: |
|
0 commit comments