41

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?

1 Answer 1

28

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.

UPDATE:

In addition to the above, it would be worth checking out the new Licensed Version features of Chocolatey.

1
  • 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
    Commented Aug 17, 2015 at 16:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .