Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

uninstal doesn't respect version settings #612

Closed
emcek opened this issue Nov 12, 2014 · 1 comment
Closed

uninstal doesn't respect version settings #612

emcek opened this issue Nov 12, 2014 · 1 comment

Comments

@emcek
Copy link

emcek commented Nov 12, 2014

What I did:

  1. install Atom-142
  2. upgrade to 145
  3. try uninstall 142 with -version 0.142.0 145 is removed
  4. upgrade once more
  5. try uninstall 142 with -Version 0.142.0 once again 145 is removed
PS C:\ProgramData\chocolatey\lib> chocolatey install Atom -Version 0.142.0
Chocolatey (v0.9.8.28) is installing 'Atom' and dependencies. By installing you accept the license for 'Atom' and each dependency you are installing.

Atom v0.142.0
Using this proxyserver: proxy-server-at-work:8080
Downloading Atom 64 bit
  from 'https://github.com/atom/atom/releases/download/v0.142.0/atom-windows.zip'
Using this proxyserver: proxy-server-at-work:8080
Extracting C:\Users\munio\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip to C:\ProgramData\chocolatey\lib\Atom.0.142.0\tools...
C:\ProgramData\chocolatey\lib\Atom.0.142.0\tools
Atom has finished successfully! The chocolatey gods have answered your request!
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!


    Directory: D:\userdata\munio\Application Data\Microsoft\Windows\Start Menu\Programs


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----        11/03/2014     17:12            GitHub, Inc
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!
Adding C:\ProgramData\chocolatey\bin\apm.bat and pointing to '%DIR%..\lib\atom.0.142.0\tools\atom\resources\app\apm\node_modules\atom-package-manager\bin\apm.cmd'.
explorer menu items created
Added C:\ProgramData\chocolatey\bin\atom.exe shim pointed to '..\lib\atom.0.142.0\tools\atom\atom.exe'.
Finished installing 'Atom' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.


PS C:\ProgramData\chocolatey\lib>
PS C:\ProgramData\chocolatey\lib> cup Atom
Updating Atom from 0.142.0 to 0.145.0
Chocolatey (v0.9.8.28) is installing 'Atom' and dependencies. By installing you accept the license for 'Atom' and each dependency you are installing.

Atom v0.145.0
Using this proxyserver: proxy-server-at-work:8080
Downloading Atom 64 bit
  from 'https://github.com/atom/atom/releases/download/v0.145.0/atom-windows.zip'
Using this proxyserver: proxy-server-at-work:8080
Extracting C:\Users\munio\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip to C:\ProgramData\chocolatey\lib\Atom.0.145.0\tools...
C:\ProgramData\chocolatey\lib\Atom.0.145.0\tools
Atom has finished successfully! The chocolatey gods have answered your request!
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!


    Directory: D:\userdata\munio\Application Data\Microsoft\Windows\Start Menu\Programs


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----        11/03/2014     17:12            GitHub, Inc
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!
Adding C:\ProgramData\chocolatey\bin\apm.bat and pointing to '%DIR%..\lib\atom.0.145.0\tools\atom\resources\app\apm\node_modules\atom-package-manager\bin\apm.cmd'.
explorer menu items created
Added C:\ProgramData\chocolatey\bin\atom.exe shim pointed to '..\lib\atom.0.145.0\tools\atom\atom.exe'.
Finished installing 'Atom' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.


PS C:\ProgramData\chocolatey\lib> chocolatey uninstall Atom -Version 0.142.0
Chocolatey (v0.9.8.28) is uninstalling Atom...
Uninstalling from folder C:\ProgramData\chocolatey\lib\Atom.0.145.0
Removing shim C:\ProgramData\chocolatey\bin\atom.exe which pointed to '%DIR%..\lib\atom.0.145.0\tools\atom\atom.exe'.
PS C:\ProgramData\chocolatey\lib> cup Atom
Updating Atom from 0.142.0 to 0.145.0
Chocolatey (v0.9.8.28) is installing 'Atom' and dependencies. By installing you accept the license for 'Atom' and each dependency you are installing.

Atom v0.145.0
Using this proxyserver: proxy-server-at-work:8080
Extracting C:\Users\munio\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip to C:\ProgramData\chocolatey\lib\Atom.0.145.0\tools...
C:\ProgramData\chocolatey\lib\Atom.0.145.0\tools
Atom has finished successfully! The chocolatey gods have answered your request!
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!


    Directory: D:\userdata\munio\Application Data\Microsoft\Windows\Start Menu\Programs


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----        11/03/2014     17:12            GitHub, Inc
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!
Adding C:\ProgramData\chocolatey\bin\apm.bat and pointing to '%DIR%..\lib\atom.0.145.0\tools\atom\resources\app\apm\node_modules\atom-package-manager\bin\apm.cmd'.
explorer menu items created
Added C:\ProgramData\chocolatey\bin\atom.exe shim pointed to '..\lib\atom.0.145.0\tools\atom\atom.exe'.
Finished installing 'Atom' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.

PS C:\ProgramData\chocolatey\lib> chocolatey uninstall Atom -version 0.142.0
Chocolatey (v0.9.8.28) is uninstalling Atom...
Uninstalling from folder C:\ProgramData\chocolatey\lib\Atom.0.145.0
Removing shim C:\ProgramData\chocolatey\bin\atom.exe which pointed to '%DIR%..\lib\atom.0.145.0\tools\atom\atom.exe'.
PS C:\ProgramData\chocolatey\lib> cup Atom
Updating Atom from 0.142.0 to 0.145.0
Chocolatey (v0.9.8.28) is installing 'Atom' and dependencies. By installing you accept the license for 'Atom' and each dependency you are installing.

Atom v0.145.0
Using this proxyserver: proxy-server-at-work:8080
Extracting C:\Users\munio\AppData\Local\Temp\chocolatey\Atom\AtomInstall.zip to C:\ProgramData\chocolatey\lib\Atom.0.145.0\tools...
C:\ProgramData\chocolatey\lib\Atom.0.145.0\tools
Atom has finished successfully! The chocolatey gods have answered your request!
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!


    Directory: D:\userdata\munio\Application Data\Microsoft\Windows\Start Menu\Programs


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----        11/03/2014     17:12            GitHub, Inc
Install-ChocolateyShortcut completed has finished successfully! The chocolatey gods have answered your request!
Adding C:\ProgramData\chocolatey\bin\apm.bat and pointing to '%DIR%..\lib\atom.0.145.0\tools\atom\resources\app\apm\node_modules\atom-package-manager\bin\apm.cmd'.
explorer menu items created
Added C:\ProgramData\chocolatey\bin\atom.exe shim pointed to '..\lib\atom.0.145.0\tools\atom\atom.exe'.
Finished installing 'Atom' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.
@ferventcoder
Copy link
Contributor

That answers the question. Uninstall is very naive. Recommend you would uninstall prior to upgrade or wait for the c# version which will be out soon. It does a much better job of handling older versions, upgrades and uninstalls.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants