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