ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21.38k stars 1.41k forks source link

Register installed apps #2651

Open Ash258 opened 6 years ago

Ash258 commented 6 years ago

When installing apps using scoop, these apps are not registered and cannot be set as default apps. (After some windows update there is no button "look for app on PC"). It need some "hacks" or app should support it in settings. (Winrar, potplayer, firefox, ...),

It would be basicly some Registry keys, which would be added on installing and removed on uninstalling.

Maybe new schema property (register: true/false or register" stringOrArrayOfString, like shortcuts, bins),

Def

claudenobs commented 5 years ago

AFAIK this should only be possible for globally installed apps (at least in windows 10 these are system wide defaults). Setting an app as a file-extension default for the current user can still be done via the FileExplorer "Open With" context menu entry. It would be nice if a reg file to do that would be supplied though...

~see Win10 Default Apps Documentation~ ~see File-Extension Registration~

also as already mentioned in #3176, IMHO it's best to use the installer for globally installed apps anyway

shewlian commented 5 years ago

I'm having this issue with VLC.

I'm on Windows 10, Version 1903, Build 18362.

I've tried installing VLC through Scoop locally and globally, with and without the sudo util. The only way I've been able to get it registered to Default apps is by using the official .exe installer.

Is this a problem with the VLC manifest?

g-berthiaume commented 4 years ago

+1 When installing firefox with scoop, it is not available in the installed apps. This is especially inconvenient as it make it impossible to use installed app as default.

Example (Even if firefox is installed, it cannot be used as default browser): image

Info windows 10 - version 1903

kid1412621 commented 4 years ago

+1

onichandame commented 4 years ago

any update on this?

7wells commented 3 years ago

Hello! Does somebody work on this?

I understand that one could accomplish this (as a workaround) via manually registering registry keys as kindly pointed out there for e.g. the PowerShell: https://github.com/PowerShell/PowerShell/blob/af6d9fbe141848d14c17528c9b6becf0e81c713e/assets/Product.wxs#L237

gluonman commented 3 years ago

I understand that one could accomplish this (as a workaround) via manually registering registry keys as kindly pointed out there for e.g. the PowerShell: https://github.com/PowerShell/PowerShell/blob/af6d9fbe141848d14c17528c9b6becf0e81c713e/assets/Product.wxs#L237

Hi @7wells those sources appear to address a way to add context menus to explorer. Can you further explain how it's a workaround for registering scoop apps?

Eyepan commented 3 years ago

I am also currently facing this issue, and honestly this is the only thing that is keeping me from using scoop all the time. Scoop being super convenient to use with just a few taps of the keyboard to install most if not all of my applications has almost spoiled me. It sometimes disgusts me going through an installer manually instead of letting scoop handle it. And if there was a way to add default apps I would be the happiest person on earth! Thanking @lukesampson in advance

gluonman commented 3 years ago

Is there any way at all that I can register an app installed via scoop such that I can then, for example, set Qutebrowser as my default browser? I broke my system trying to learn how to manually register a scoop-installed app myself, and the truth is I don't much know what I'm doing with these registry tweaks. As a Linux user, I always wondered why you couldn't just install an app in Windows from a repo using a quick CLI, and then when I found out about scoop I got really excited thinking Windows finally caught up to the rest of the OS world, but I'd have to call it a major "almost." Because Windows doesn't actually fully recognize the apps you install with scoop. I've had to uninstall all my scoop apps and just install them normally in order to have a functional system. So please let me know if I'm missing something in the way I'm supposed to be using scoop, and if not I think I'm just going to totally bail on it and check on it again in a couple of years.

angelog0 commented 2 years ago

Have you read this document? Could it be helpful?

It seems that just exporting associations in an xml file, changing the desired associations there and re-importing the xml should solve this? Should it? I didn't try yet.

What do you think?

amreus commented 2 years ago

I created a repo with an example .reg script for adding Scoop Firefox to Window's default browser options.

https://github.com/amreus/scoop-default-browser

rashil2000 commented 2 years ago

That's great! Can you make a PR to submit it in Extras?

You can look at many examples to learn from, see vscode and its manifest in particular.

amreus commented 2 years ago

That's great! Can you make a PR to submit it in Extras?

Thanks. I can (busy today.) I consider the script in it's current state as a proof-of-concept which needs more features and testing.

rashil2000 commented 2 years ago

Sure, take your time :)

amreus commented 2 years ago

Ok I added the firefox manifest and .reg script to my small bucket if anyone would like to test.

https://github.com/amreus/bucket

grahamIT commented 1 year ago

Does anyone have a way to make this work for globally installed pdf and office software?

jcrben commented 1 year ago

Some people don't want registry edits so hopefully we can warn people before they are made, or make this happen only if people opt in via a flag or only if people do a global install.

niStee commented 3 months ago

4633

niStee commented 3 months ago

Ok I added the firefox manifest and .reg script to my small bucket if anyone would like to test.

https://github.com/amreus/bucket

For a fork for LibreWolf, check out astroprogs11's repository: https://github.com/astroprogs11/librewolf-default-browser

Alternatively, you can refer to the solution to make LibreWolf portable in this issue, which also mentions the PortableRegistrator project.