When I run the following code below in a command prompt (as administrator):
"C:\Program Files\Windows Photo Viewer\PhotoViewer.dll" "C:\00012.tif"
it produces error as shown below :
"This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an associated in the Default Programs control panel."
Both .tif
and .tiff
are associated in the Default programs control panel.
I am trying to call this from a .net windows app.
Any help is appreciated.
In the dialog, scroll down and click on More apps , then `Look for another app on this PC. Then, at the bottom right, choose All Files (*. *) instead of Programs (*.exe ...) , then navigate to C:\Program Files\Windows Photo Viewer and choose PhotoViewer. dll .
If You Upgraded From Windows 7/8 If it's not there, click “Choose another app” from the “Open with” menu, then scroll down, click “More apps,” scroll down to the bottom again, click “Look for another app on this PC,” then navigate to “C:Program FilesWindows Photo Viewer” and select the Windows Photo Viewer executable.
Windows Photo Viewer isn't part of Windows 10, but if you upgraded from Windows 7 or Windows 8.1, you might still have it. To check, press and hold (or right-click) a photo in File Explorer, and select Open with. If Windows Photo Viewer isn't in the list, you cannot install it on Windows 10.
Windows 7
rundll32 "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen path_to_image
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With