gmasterscm / ama

Ask me anything!
https://blog.sindresorhus.com/answering-anything-678ce5623798
5 stars 1 forks source link

Machine wide installation #19

Open pascalberger opened 6 years ago

pascalberger commented 6 years ago

Gmaster currently seems to be installed in the local user profile. This makes it hard to script installation in an enterprise environment. Do you have plans to support machine wide installation?

Additionally providing a Chocolatey package for installation would be awesome :)

psantosl commented 6 years ago

Hi! Actually, if you want to install it machine wide... you just have to copy/paste it to the location you want :-) Because it is self-contained. I mean, copy the AppData\Local\gmaster\bin wherever you want.

Chocolatey: sure, good idea. We have to figure out how hard it is to create a new one, but since we do not touch registry or anything, I guess it will be super easy :-)

pascalberger commented 6 years ago

Creating a Chocolatey package is generally quite easy. After installing Chocolatey you can run choco new to create a template for a new package. There is also Documentation available, or if you stuck you get plenty of advise on the Gitter Channel.

Note that Chocolatey packages normally are distinguished between installable and portable packages (see Portable vs Installable). So in your case it maybe would make sense to offer a gmaster.install package which runs the installer and installs into local user directory and a gmaster.portable package which contains the binaries and installs it to another location (eg to Program Files). There are other packages which are working like this (eg Git or PuTTY).