Can I create a Chocolatey installer automatically based on my currently installed applications? How?

7

I intend to reinstall Windows on my computer soon and I'd like to make the process of reinstalling all of my applications as seamless as possible. I know you can create a Chocolatey script that can be run on the new machine that will install of the applications I add to the script, but I have many applications and the process of typing out all of these into the script is tedious.

Is there some application available that can scan the currently installed programs on my computer (Win7) and generate a Chocolatey/Boxstarter script containing all of my programs that I can then use to reinstall all of them on my new computer?

Ryan Shripat

Posted 2014-04-30T18:41:15.980

Reputation: 759

Were your applications installed with Chocolatey? I'm sure it keeps a manifest of what it has installed. – heavyd – 2014-04-30T19:15:04.073

No, they were not. – Ryan Shripat – 2014-05-01T10:49:57.497

Answers

5

As far as I am aware, there is no such solution. It is definitely something I have thought of. It would be super cool to run a command that would look at:

  1. Currently installed packages
  2. Running services
  3. Installed windows features
  4. GUI registry settings
  5. MSIs installed and find matching chocolatey packages

and then spit out a big custom chocolatey package that could reconstruct the environment.

Matt Wrock

Posted 2014-04-30T18:41:15.980

Reputation: 216

That would be really sweet. – ferventcoder – 2014-05-01T16:47:26.667

3

This might get you some of the way:

choco list -li

lists installed packages (programs), whether installed by Chocolately, or not, as in your case. Adding -v gives you (sometimes) the install path:

choco list -liv

Then you could find the appropriate Chocolatey packages by searching chocolatey.org manually (or by some other means...) for the programs listed and prepare a powershell or Cygwin bash script like this: http://robinosborne.co.uk/2012/01/06/scripting-the-setup-of-a-developer-pc-part-3-of-4-installing-uh-everything-with-chocolatey/

Good luck!

drkvogel

Posted 2014-04-30T18:41:15.980

Reputation: 271

0

There is one way to do it...

puppet resource package --param provider

This will get you installed gems, things installed in programs and features, and if you do have chocolatey packages, it will pull those as well.

ferventcoder

Posted 2014-04-30T18:41:15.980

Reputation: 2 959