Ticket #5204 (closed: fixed)
Silent Windows Uninstaller
Reported by: | Owen Arnold | Owned by: | Owen Arnold |
---|---|---|---|
Priority: | major | Milestone: | Release 2.1 |
Component: | Mantid | Keywords: | |
Cc: | nick.draper@… | Blocked By: | |
Blocking: | Tester: | Stuart Campbell |
Description
Now that we use the CPACK/NSIS packaging technology, we are manually uninstalling any previous install as part of our install process.
The current logic for this is that if the installer is run sliently, the uninstaller is run silently. If the installer is run in GUI mode, the uninstaller will run in GUI mode.
Our preferences have changed here, we would now like it to always uninstall in slient mode, however, a messagebox of some kind would be useful to indicate that the uninstall process is about to start.
Change History
comment:2 Changed 8 years ago by Owen Arnold
refs #5204. Fix silent uninstall.
According to NSIS, the order of the arguments is important and the ExecWait will cancel after the copy unless the arguments are swapped over. This way the uninstall should happen in place without any copy.
Changeset: f4c4806d16202112feeb3119a2132ad5bb98c50a
comment:3 Changed 8 years ago by Owen Arnold
refs #5204. UAC User permission issues Fixed.
Changeset: 06135dafa7f4df29264c6f8619859939b155a24c
comment:4 Changed 8 years ago by Owen Arnold
- Priority changed from minor to major
This ticket now contains some fundamental changes.
comment:5 Changed 8 years ago by Owen Arnold
Tester:
This MUST be thoroughly tested in GUI (noisy) mode and Silent Mode. It should also be tested from an account without Admin rights. To run in silent mode use:
start "Install" /wait Mantid-Version.exe /S
There are are a number of test scenarios, I can point the tester towards, contact me for help.
comment:6 Changed 8 years ago by Owen Arnold
refs #5204. Smarter install script.
Tries to figure out if this is the users first time install. Changeset: b5db2f27ed4b5bb7e133b4e60acdf49ef6aaaa94
comment:8 Changed 8 years ago by Owen Arnold
- Status changed from accepted to verify
- Resolution set to fixed
Tester:
Here are some testing schenarios to try.
IN GUI MODE ONLY
- Try to install with previous (WxS) generated install already present (should get warning)
- Try to install on a clean environment
- Try to install over the top of a previous (NSIS) install (should silently uninstall)
IN SILENT MODE
- Try to install on a clean machine (everything should be silent!)
- Try to install over the top of a previous (NSIS) install (everything should be silent!)
comment:9 Changed 8 years ago by Stuart Campbell
- Status changed from verify to verifying
- Tester set to Stuart Campbell
comment:10 Changed 8 years ago by Stuart Campbell
SILENT MODE:
- Clean machine : OK
- Install (Upgrade) over previous NSIS installation : OK
- Install (Downgrade) over previous NSIS installation : OK
comment:11 Changed 8 years ago by Stuart Campbell
- Status changed from verifying to closed
GUI MODE:
- Last release installed : Get a warning message - OK.
- Clean Install : OK
- Install (Upgrade) : OK
- Install (Downgrade) : OK
One minor thing I did notice that in some of the dev kits, the default location of mantidinstall was in the Documents folder. But this doesn't seem to be the case in the latest kit (2.0.2411)
comment:12 Changed 8 years ago by Owen Arnold
Stuart: That behaviour was changed late yesterday because Russell Taylor requested that the install should always go to C:
MantidInstall by default.
comment:13 Changed 8 years ago by Owen Arnold
refs #5204. Should all be silent
Changeset: ecf2430b61dee83cc203e71236771e9f8e638c03
comment:14 Changed 8 years ago by Owen Arnold
refs #5204. Fix silent uninstall.
According to NSIS, the order of the arguments is important and the ExecWait will cancel after the copy unless the arguments are swapped over. This way the uninstall should happen in place without any copy.
Changeset: f4c4806d16202112feeb3119a2132ad5bb98c50a
comment:15 Changed 8 years ago by Owen Arnold
refs #5204. UAC User permission issues Fixed.
Changeset: 06135dafa7f4df29264c6f8619859939b155a24c
comment:16 Changed 8 years ago by Owen Arnold
refs #5204. Smarter install script.
Tries to figure out if this is the users first time install. Changeset: b5db2f27ed4b5bb7e133b4e60acdf49ef6aaaa94
comment:17 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 6050
refs #5204. Should all be silent