AdNauseam icon indicating copy to clipboard operation
AdNauseam copied to clipboard

[Suggestion] AdNauseam as a chocolatey package(Windows)

Open laundmo opened this issue 6 years ago • 11 comments

Chocolatey is a package manager for windows, which makes it very easy to install supported packages.

It can install broswer plugins too as seen with choco install ublockorigin-chrome

To make installing Ad-nauseam easier for chrome users and generally automatable, i would like to suggest providing AdNauseam as a chocolatey package.

laundmo avatar Sep 07 '19 18:09 laundmo

Sounds plausible -- what is involved?

dhowe avatar Sep 11 '19 04:09 dhowe

Chocolatey can install .exe or .msi installers, but also run powershell to install. The package cvreation process is documented here: https://chocolatey.org/docs/create-packages

In this case i would think that making a pwoershell script that edits the chrome preferences json (if it has the developer mode option) with the path to the CRX and/or the registry keys would suffice (i am not familiar with the process chrome uses to install/load extensions). This is a article i found about pre-installed extensions in chrome: https://www.chromium.org/administrators/pre-installed-extensions

i hope this helps and im sorry i cant help more

laundmo avatar Sep 12 '19 10:09 laundmo

I'd be willing to attempt a package for this. I've never made one for a chrome extension. I also, have an AU repo that can keep it up to date without changes to the release process (Or I can assist in integrating a package into your CI)

digitalcoyote avatar Oct 23 '19 21:10 digitalcoyote

Sure, that would be great -- what would be required from our end?

dhowe avatar Oct 31 '19 07:10 dhowe

If it goes like others I've done, then at most I'd need help ensuring it worked after I wrote scripts to install it. I've got a couple other packages I'm working on at the moment, but I think I can start this one next week.

digitalcoyote avatar Oct 31 '19 12:10 digitalcoyote

Excellent -- thanks

dhowe avatar Oct 31 '19 12:10 dhowe

@digitalcoyote That would be awesome! I can help with testing once you finished.

cqx931 avatar Oct 31 '19 22:10 cqx931

I'm finally taking a look into this (after a much longer delay than I expected).

digitalcoyote avatar Dec 03 '19 13:12 digitalcoyote

per https://stackoverflow.com/questions/10211772/how-to-install-a-chrome-extension-programmatically this may be a bit of an issue now that AdNauseam is not on the chrome web store. If anyone finds a way around this, I'd be happy to assist. The method used by ublock-origin uses the chrome web store ID when installing.

digitalcoyote avatar Dec 03 '19 13:12 digitalcoyote

If you are using chocolatey , then chances are that you have the Chrome enterprise MSI installed. This install listens to GPO's. You can Install AdNauseam in Chrome without Developer mode enabled. Simply by adding the following Registery string:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist] "1"="pnjfhlmmeapfclcplcihceboadiigekg;https://rednoise.org/adnauseam/updates.xml"

For the Edge Beta you can set the same key in this location. Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ExtensionInstallForcelist

Edit: If you want to do this with Chocolatey the package would only have to set the key, and the most resent version will be pulled from that updates.xml location

guinhill avatar Jan 15 '20 08:01 guinhill

Yes, please add package to repository.

AdNauseam.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist]
"1"="pnjfhlmmeapfclcplcihceboadiigekg;https://rednoise.org/adnauseam/updates.xml"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ExtensionInstallForcelist]
"1"="pnjfhlmmeapfclcplcihceboadiigekg;https://rednoise.org/adnauseam/updates.xml"