Champak Posted November 24, 2023 Share Posted November 24, 2023 (edited) I have this simple line to launch a jpg using windows Photos, ShellExecute($DisplayPhoto1[0]) (The variable is a path to a jpg). Windows did that stupid update a couple nights ago and ever since then every time this executes the window pops up asking what app I want to use to open the file. I select the Photos app and check the always use this app, but even though I check the always use this app, this window keeps coming up. Now if I go and click a jpg file directly, the image opens up in Photos without any issue. What has happened? What can I do to fix or work around this? And no, I can't do a windows roll back because for some reason all of my windows recovery points were wiped out even though I have over 200G of free space smh. I also tried: Run(@ComSpec & " /c rundll32.exe C:\Windows\System32\shimgvw.dll,ImageView_Fullscreen " & $DisplayPhoto1[0]) but that doesn't work for me because it actually opens a different app and command prompt. EDIT: I also checked the default app settings and it shows that Photos is set as the default for jpg files, but this popup window keeps coming up asking me which program I want to use. Edited November 25, 2023 by Champak Link to comment Share on other sites More sharing options...
CYCho Posted November 25, 2023 Share Posted November 25, 2023 Did you check the default app to open jpg file in the Windows Settings? https://www.howtogeek.com/746203/how-to-set-your-default-apps-on-windows-11/ zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
Champak Posted November 25, 2023 Author Share Posted November 25, 2023 (edited) yes...and I'm using Win10 Edited November 25, 2023 by Champak Link to comment Share on other sites More sharing options...
argumentum Posted November 25, 2023 Share Posted November 25, 2023 Just tested both: start "this.jpg" opens my default handler. rundll32.exe C:\Windows\System32\shimgvw.dll,ImageView_Fullscreen "this.jpg" opens Windows Photo Viewer. What you claim should be impossible, since you're calling shimgvw.dll. No clue of what's going on. Using Win 10 (2004) here. What version are you using ?. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Champak Posted November 25, 2023 Author Share Posted November 25, 2023 I'm looking in the windows specifications in the settings about area and it doesn't say the year but it is Win 10 Pro version 22H2 build 19045.2965 Link to comment Share on other sites More sharing options...
Resiak1811 Posted November 25, 2023 Share Posted November 25, 2023 try : $command = @SystemDir & "\Rundll32.exe Url,FileProtocolHandler " & $DisplayPhoto1[0] Run($command) Link to comment Share on other sites More sharing options...
Champak Posted November 25, 2023 Author Share Posted November 25, 2023 same thing Link to comment Share on other sites More sharing options...
Resiak1811 Posted November 25, 2023 Share Posted November 25, 2023 do a : ClipPut($DisplayPhoto1[0]) and paste your result .. want to see the path please Link to comment Share on other sites More sharing options...
Champak Posted November 25, 2023 Author Share Posted November 25, 2023 It's just a basic path...I did your suggestion in a file by itself. $command = @SystemDir & "\Rundll32.exe Url,FileProtocolHandler " & "C:\Users\User\Desktop\Newfolder2\IMG_5301.jpg" Run($command) Anyway, I went into Recovery and did an advanced startup and uninstalled the update from there...I forgot about this area. That fixed the problem (uninstalling them from control panel wasn't working). What I don't understand is why these damn updates are always sneaking onto my system. Every time I think I defeated one of these auto updates and update proofed my computer, BAM I get another one. Why can't microsoft leave me alone!?! Link to comment Share on other sites More sharing options...
Resiak1811 Posted November 25, 2023 Share Posted November 25, 2023 hehe Dear Microsoft! Leave your post open so maybe another user will have a better idea.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now