This happens every once in a while, and I haven't seen any pattern
such as "just after Windows updates".
Sometimes, when I double-click a file, I get a popup "How do you want
to ope this file?" In every case, it's a file where I already have an association set up. For instance, Irfanview is my program to open
.JPG, but this morning I got the popup. Irfanview was highlighted,
but a couple of other programs were listed below it. I checked
(ticked) the "Always" box at the bottom, and now when I double-click
a .JPG file Irfanview opens it. Also today, i double-clicked an .XLSX
file, and got the popup. So it doesn't seem likely that this is just
Windows trying to push us to use Microsoft software instead of third-
party applications.
Any way to tell Windows "no, I don't want random invitations to
change file associations?"
I googled, and most of the hits explained how to deal with this when
there wasn't actually a file association, but that's not my
situation. Of the minority that talked about this happening
repeatedly, they said either "this can happen after Windows updates"
(which doesn't seem to be my situation), or "could be a virus" (but I
have the default Win 10 antivirus running in real time and do
periodic scans), or "there's no cure for this" (ouch!).
This happens every once in a while, and I haven't seen any pattern
such as "just after Windows updates".
Thanks to those who responded, but from the responses I
see I must not have made the problem clear.
The problem is that occasionally, when I double-click a
file, or some type that has an associated program,
Windows 10 pops up a "How do you want to open this
file?" dialog for no apparent reason. My existing
associated program is highlighted, below that are
several other choices including Windows Store, and
below them is a check box for "Always open with this
program" (quoted from memory, so probably not the exact
words). I tick "Always" and click OK. Double-clicking
that file works just fine again, until some days or
weeks later I get that annoying pop-up again.
That is the issue: that gratuitous pop-up. It's not
just Irfanview and Excel; I gave those as examples.
(The point of the Excel example is that I think it
shows this isn't just Microsoft trying to nag me to
switch to their software from a third-party
application.) And my file association is not lost,
because Windows 10 always highlights the program I had
previously chosen. It's as though Windows is trying to
get me to change file associations, for some reason I
can't fathom.
I don't need help with setting file associations; I
need help in stopping this stupid pop-up.
Stan Brown <the_stan_brown@fastmail.fm> wrote:
Thanks to those who responded, but from the responses I
see I must not have made the problem clear.
The problem is that occasionally, when I double-click a
file, or some type that has an associated program,
Windows 10 pops up a "How do you want to open this
file?" dialog for no apparent reason. My existing
associated program is highlighted, below that are
several other choices including Windows Store, and
below them is a check box for "Always open with this
program" (quoted from memory, so probably not the exact
words). I tick "Always" and click OK. Double-clicking
that file works just fine again, until some days or
weeks later I get that annoying pop-up again.
That is the issue: that gratuitous pop-up. It's not
just Irfanview and Excel; I gave those as examples.
(The point of the Excel example is that I think it
shows this isn't just Microsoft trying to nag me to
switch to their software from a third-party
application.) And my file association is not lost,
because Windows 10 always highlights the program I had
previously chosen. It's as though Windows is trying to
get me to change file associations, for some reason I
can't fathom.
I don't need help with setting file associations; I
need help in stopping this stupid pop-up.
(Cause might be due to filetype protection ... https://www.winhelponline.com/blog/windows-10-resetting-file-associations/
Since the choice popup doesn't always occur, wait until it does show up. Don't select always. Close the popup (abort the file open), and go look
in Default Apps to see the filetype associations. When the popup
appears, check if there is an association for that filetype. I'm
wondering if the choice popup appears because, at that moment, there is
no association versus a bogus popup when the association is defined at
that moment.
...
At the moment the popup appears, if the association is missing then
something is deleting it. Could be another program you run that
attempts to create or change the association. Peter mentioned PaintShop
Pro being rude in trying to change associations to point to itself. RealPlayer had that rude behavior for a long time: everytime you loaded RealPlayer, it modified the filetype associations.
there was a security program
that would alert you when filetype associations got changed.
As I recall, it generated too many alerts, and
some were bogus in that it was supposed to alert when there was a
filetype change, but seemed to pend up the alerts until the next time it
was loaded (as a startup program) whereupon I'd get a ton of alerts.
Some were no longer valid by then. The free version polled for the
changes.
https://www.bleepingcomputer.com/download/winpatrol/
https://www.softpedia.com/dyn-search.php?search_term=winpatrol
However, if you can't find the payware version (for free) then you'll
probably incur the pending alerts problem
With SysInternals ProcMon (Process Monitor), you can define a filter ...
I've not done
registry monitoring using ProcMon, and, from what I see of defining
event filters in it, you can select registry operations, like RegOpen,
but not select a particular key to view events on it, or its subkeys.
Maybe someone else knows how to use ProcMon to filter its event logs to
show change (create, rename, change data item value) on a particular
registry key.
I remember looking briefly at Process Hacker, but I can't tell you if it
will monitor registry change events. My recollection is it was more an alternative of SysInternals Process Explorer (which I use occasionally,
and enabled its lookup on processes at VirusTotal to see if a process
might be suspicious).
https://sourceforge.net/projects/processhacker/
I've heard of, but never used, Registry Live Watch. However, it is old
(last update was 2009, and not tested as of Windows 8, and beyond). It
is supposed to monitor a user-defined registry key for changes, and any changes to its subkeys.
http://leelusoft.altervista.org/registry-live-watch.html
However, depending on how long it takes for the filetype association to disappear (causing the choice popup), you might get nuisanced with the
GUI for this tool for a long time. Perhaps it can be minimized, but I
don't know if it will restore its window, or show a popup, when it
detects the monitored registry key got changed.
https://www.majorgeeks.com/files/details/registry_live_watch.html
That says Registry Live works on Windows XP to 10, but the product site
says there has been no testing on Windows 8, or higher. MajorGeeks says
it ran okay under Windows 10.
Another I've heard of, but not use, is MJ Registry Watcher found at:
https://jacobsm.com/mjsoft.htm#rgwtchr
But I'll be extremely surprised if the file association is flat-out
missing, because every time I get this prompt, the program I've been
using all along is the first one listed, and it's highlighted.
I can maybe get around that in the short term by always shutting down
Windows instead of hibernating. Did you ever try shutting down the
program and restarting it without rebooting?
"VanguardLH" <V@nguard.LH> wrote
But I'll be extremely surprised if the file association is flat-out|
missing, because every time I get this prompt, the program I've been
using all along is the first one listed, and it's highlighted.
| That's the MRU (Most Recently Used) list also in the registry.
Actually I think that's the OpensWithProgIDs or some such.
It's a subkey under the extension key that tells Windows what
to suggest. Probably program installers put the entries there.
Unfortunately, Stan seems to be uncomfortable with the Registry,
so there's not much to be done.
"Stan Brown" <the_stan_brown@fastmail.fm> wrote
| Any way to tell Windows "no, I don't want random invitations to
| change file associations?"
|
| I googled, and most of the hits explained how to deal with this when
| there wasn't actually a file association, but that's not my
| situation. Of the minority that talked about this happening
| repeatedly, they said either "this can happen after Windows updates"
| (which doesn't seem to be my situation), or "could be a virus" (but I
| have the default Win 10 antivirus running in real time and do
| periodic scans), or "there's no cure for this" (ouch!).
|
I don't have a specific answer, but a friend of mine recently
had trouble that was somewhat similar. She had all office files
associated with Libre Office. Then she installed Office365 for
work. At the end of the school year O365 refused to run,
presumably because the school she works for had a contract
only for the year. That was fine, but O365 butchered the
associations and didn't fix them. And she just got an O365
popup that said something like, "Sorry, but the program failed
to start" when she double-clicked a docx. It didn't even tell
her that she no longer had a subscription for the program! And
it didn't offer to uninstall.
If you're comfortable with the Registry you can do these
things directly. Under HKCR are extension keys. .jpg, .xlsx, etc.
The default value should be something like "IrfanView.jpg".
That's a pointer to a class name key. Under HKCR\IrfanView.jpg
you'll find various things, including
HKCR\IrfanView.jpg\Shell\open\command
That should be pointing to the IV EXE path. Typically
something like: "C:\Program Files\IrfanView\i_view32.exe" "%1"
If it malfunctions, either key may be faulty. Make sure the .jpg
key has the correct entry, then make sure the class key is
properly set up. For example, with the O365 debacle I didn't
mess with class name keys. I just switched HKCR\.docx to
LibreOffice.Docx. Nothing else was needed because LO already
has the class name keys configured. I just had to make it point
to the right one.
Stan Brown <the_stan_brown@fastmail.fm> wrote:
But I'll be extremely surprised if the file association is flat-out missing, because every time I get this prompt, the program I've been
using all along is the first one listed, and it's highlighted.
That's the MRU (Most Recently Used) list also in the registry. It
records which programs were used on a filetype in last-used order. The program you used before will be at the top of the list.
As for which is the older version, Softpedia lists WinPatrol 35.5.2017.8 (c.2017) while BleepingComputer lists version 33.1.2015.0 (c.2015). The "Last update" data shown at the download site is when the file got
uploaded to the site, not when the program version got released.
At Softpedia, be damn
careful on which "Download" link you click. They shove links into
product pages where "Download" points elsewhere. I got rid of that crap
by using an adblocker (uBlock Origin).
"Philip Herlihy" <PhillipHerlihy@SlashDevNull.invalid> wrote
| I see the Windows 10 command interpreter still has the ASSOC and FTYPE
| commands. Are these obsolete now (or restricted in applicability)?
Sorry, but I don't know what you're talking about.
Setting file associations in a console window? I'm
not familiar with anything like that.
Linking a file extension to a command to be run when a file of that type is double-clicked was always a two-stage process. A particular extension has been
associated with a "code" called a "filetype". So on most systems a .TXT file will be associated with "txtfile". (This allows multiple extensions to resolve
to the same filetype, for example you may want a .LOG file to open in notepad too. The ASSOC command displays the association. Try it with the .txt extension.
Those filetypes are linked to a command line. The FTYPE command displays the command line that is set. Try "FTYPE txtfile" for example.
Now, it seems that up to Windows 7, the ASSOC and FTYPE command line utilities
were all you needed to muck about with your associations, but since Windows 8 they can no longer be used (normally) to _set_ those associations - for security reasons. A different mechanism now applies, which (from a hurried reading) appears to override the original mechanism, though I've seen articles
which go into this in more detail than I personally need.
Here are the best overall articles I found on ASSOC/FTYPE and the newer XML- based mechanism.
https://www.fileformat.info/tip/microsoft/assocftype.htm
https://bit.ly/485H2PS
And I can answer my own question now: Yes - they are (all but) obsolete now, and certainly restricted in applicability.
But interesting nonetheless -- thanks for putting them on my radar. I
think of myself as being good with the command line, but these were
new to me.
But interesting nonetheless -- thanks for putting them on my radar. I think of myself as being good with the command line, but these were
new to me.
This will be handy for quickly checking whether a file association is actually missing, the next time I get one of the "How do you want to
open this file?" popups.
"Philip Herlihy" <PhillipHerlihy@SlashDevNull.invalid> wrote
| > Sorry, but I don't know what you're talking about.
| > Setting file associations in a console window? I'm
| > not familiar with anything like that.
|
| Here's a tip. If someone mentions something you're not familiar with, try | Googling it. Or maybe just try the following, in a command interpreter (not
| Powershell):
|
I didn't do either because I don't use console windows
any more than absolutely necessary. So I was telling you
politely that I couldn't care less. :)
The last time I remember really needing a console window
was when I upgraded my XP box to a dual-core CPU and
needed to swap out hal.dll. That was probably 10 years
ago.
I'd much rather just go straight to the Registry for
this kind of thing. That's where the file association is stored.
Thanks to those who responded, but from the responses I
see I must not have made the problem clear.
The problem is that occasionally, when I double-click a
file, or some type that has an associated program,
Windows 10 pops up a "How do you want to open this
file?" dialog for no apparent reason. My existing
associated program is highlighted, below that are
several other choices including Windows Store, and
below them is a check box for "Always open with this
program" (quoted from memory, so probably not the exact
words). I tick "Always" and click OK. Double-clicking
that file works just fine again, until some days or
weeks later I get that annoying pop-up again.
That is the issue: that gratuitous pop-up. It's not
just Irfanview and Excel; I gave those as examples.
(The point of the Excel example is that I think it
shows this isn't just Microsoft trying to nag me to
switch to their software from a third-party
application.) And my file association is not lost,
because Windows 10 always highlights the program I had
previously chosen. It's as though Windows is trying to
get me to change file associations, for some reason I
can't fathom.
I don't need help with setting file associations; I
need help in stopping this stupid pop-up.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (0 / 16) |
Uptime: | 129:36:22 |
Calls: | 6,663 |
Calls today: | 1 |
Files: | 12,212 |
Messages: | 5,335,299 |