Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a few programs that have been installed using non-Chocolatey methods (.msi packages, setup.exe, etc.). I have recently started using Chocolatey and would like to use it to update these programs.

Is there a way I can do this or do I need to uninstall the programs and reinstall them using Chocolatey?

share|improve this question
up vote 7 down vote accepted

The answer I believe will be, "it depends". :-)

The majority of packages on Chocolatey are simply wrappers to the underlying MSI's and EXE's that you would ultimately be running manually yourself, it just automates the process.

In theory, if you run Chocolatey for a package that is already installed, when the MSI or EXE is run, it should detect that it is already installed, and exit. However, how cleanly this happens will impact on how Chocolatey reacts. If this exits with an error code, Chocolatey will report back that the installation failed, even though it is already installed. If it exits cleanly, Chocolatey will now "know" about the installation, and everything will be happy.

You might get into trouble when the Chocolatey package does "other stuff" as part of the installation, i.e. set registry keys, extract files to certain locations, etc. Depending on how many packages we are talking about there, I personally would be tempted to uninstall them manually and then have Chocolatey do the work.

share|improve this answer
1  
This is correct. I have seen a number of chocolatey packages code, and I would say it would be rare and surprising for them to manually set registry keys or manually extract files to locations, but of courses I can't account for all packages in the repository. For the most part they are very simple programs that automate existing installers. The cases where I'd be more careful is when the publisher puts out a simple *.zip or portable exe. – Jonathan Leaders Aug 17 '15 at 16:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.