Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Windows 7 Gif Viewer Works perfectly

11 Nov 2012   #71

Windows 7/8 32-bit

I realize this is the Windows 7 forum, but does anyone know of something that will do this in Windows 8?

My System SpecsSystem Spec
18 Nov 2012   #72

7 SP1 / 8

Quote   Quote: Originally Posted by Garth123 View Post
I realize this is the Windows 7 forum, but does anyone know of something that will do this in Windows 8?
I also would like to know it.
My System SpecsSystem Spec
18 Dec 2012   #73

win7 32 home basic, win7 32 pro

My big thanks to you Goofwear!
My System SpecsSystem Spec

04 Feb 2013   #74

Windows 7 Ultimate x64

Great job on this, i was looking for some kind of fix for a long time.
Unfortunately I have a problem which was stated here before:
If I custom sort my files (say by date), the gif viewer just keeps showing gifs and jpgs by name when I'm flipping through them. Is there any way to fix this (Or did I miss something during the setup)?
Regards, Perks
My System SpecsSystem Spec
14 Feb 2013   #75

windows 7

Quote   Quote: Originally Posted by senselocke View Post
Quote   Quote: Originally Posted by BigPie View Post

1) Right-click .jpg file
2) Open With...
3) Browse
4) Navigate to root directory: C:\
5) Select "All Files" from file type box
6) Select shimgvw.dll (this is the "program" that is Windows 7 GIF Viewer)
7) Make sure "always use this program" is selected.
8) Repeat with .jpeg and .jpe if you wish
We I Do That the error message comes up "C:\Users\Public\Pictures\Spongebob.jpg is not a valid Win32 application"
I have wins 7 home (64bit) if that helps
I receive the same error.
No matter what compatibility I use.

The odd thing is, before I reinstalled win7 it worked as intended.
My System SpecsSystem Spec
27 Feb 2013   #76

Win 7 32 bit

Your registry work is a little sloppy, as you place the files in the root of the C drive, and assume all computers are installed on C: (Mine is in fact D:). I've come up with a little fix:
Windows Registry Editor Version 5.00



@="GIF Image"







@="C:\\rundll32.exe C:\\shimgvw.dll,ImageView_PrintTo /pt \"%1\" \"%2\" \"%3\" \"%4\""
"New Value #1"=hex(2):25,00,57,00,69,00,6e,00,44,00,69,00,72,00,25,00,5c,00,67,\
As well, I don't care for the installer or modified DLL, and found a way to set compatability through registry. For simplicity's sake, I wrote a one click installer. Literally double click and you're done(Now run again to un install), as well as source below source. The installer doesn't need autoit, and you don't need to set the compatiability settings - it does everything for you
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=XP Photo and fax viewer (For GIFS on Win 7).exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#cs ----------------------------------------------------------------------------

 AutoIt Version:
 Author:         Corgano,

	This script provides a one-click instalation for easy gif viewing experience identical (literally!)
	to that of windows XP

 Terms of use:
	This script is free to use, distribute, modify, and what else have your fancies be as long as these
	three conditions are met
		1: This header must remain intact with any mods or copies of this script
		2: You may not sell or in any way make profit off of this script. It's free, for free use by
		anyone, anywhere.
		3: This is by no means an official fix. It's just a workaround to make windows XP's photo viewer
		work on win 7. May work for win 8, may **** up your computer. I'm not responcable for any loss of
		data or hair as result of this program

  What it does:
	This is based off of this idea -
	However, there were many errors. All the addresses were static, and assumed that the system drive was
	C:. It doesn't work if your system drive isn't C:, so I re-wrote it to use %WinDir% making it much, MUCH more robust. I also moved the
	files to windows\gif, which is cleaner IMO. Replaced the modified "shimgvw.dll" with the real file
	and wrote a simpler installer

	Added an uninstal option
	Fixed spelling mistakes (derp)
	Added message confirming instal


#ce ----------------------------------------------------------------------------

$path = @WindowsDir&"\gif"
if RegRead("HKEY_LOCAL_MECHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers", $path&"\rundll32.exe") = "WINXPSP3" or FileExists($path&"\rundll32.exe") Then
	if msgbox(36,"Already installed!","Do you want to uninstal XP Photo and Fax Viewer (for gifs)?") = 6 Then


RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document','','REG_SZ','GIF Image')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document\shell\open\command','','REG_EXPAND_SZ','%WinDir%\gif\rundll32.exe %WinDir%\gif\shimgvw.dll,ImageView_Fullscreen %1')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document\shell\printto\command','','REG_SZ','C:\rundll32.exe C:\shimgvw.dll,ImageView_PrintTo /pt "%1" "%2" "%3" "%4"')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document\shell\printto\command','New Value #1','REG_EXPAND_SZ','%WinDir%\gif\rundll32.exe %WinDir%\gif\shimgvw.dll,ImageView_PrintTo /pt "%1" "%2" "%3" "%4"')
RegWrite("HKEY_LOCAL_MECHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers", $path&"\rundll32.exe", "REG_SZ", "WINXPSP3")

MsgBox(0,"Installed!","Try opening a gif now. Run again to uninstal")
To run the source you will need Autoit installed, and the Rundll32 and shimgvw.dll files in the script's folder. I hope someone learns something or finds this useful :P
My System SpecsSystem Spec
28 Feb 2013   #77

windows 7

My virus scanner (Fsecure) popped up and claimed it was a trojan virus...
My System SpecsSystem Spec
28 Feb 2013   #78
Microsoft MVP

Windows 7 Ult. x64

Quote   Quote: Originally Posted by Arriens View Post
My virus scanner (Fsecure) popped up and claimed it was a trojan virus...
Upload the file/s for a second opinion using this:

Online Scanners - Scan Suspicious Files on your PC

My System SpecsSystem Spec
28 Feb 2013   #79

Win 7 32 bit

False positives is an odd, but not an uncommon problem for AutoIt; see Are my AutoIt EXEs really infected? - General Help and Support - AutoIt Forums. It';s probably caused because the script runs in administrator, has calls to the registry, and installs files. However the script is completely harmless. Don't trust me? You don't even have to, just get Autoit, rundll32.exe, and shimgvw.dll (grey download zip now button) and you can run it for yourself.

I'll try to simplify the code so the antivir don't flag it, but it's safe.
I decided to run a series of scans to see what causes it to be flaged. A full report here
The results are that some antivirus' see fileinstall() as bad, but because the purpose of the script is to INSTALL something, these can be safely called false positives.
Most of the other results see it as an AutoIt EXE and instantly flag it bad, regaurdless of what it does.
Even an EMPTY exe isn't immune to this.

I also realized I could just copy the rundll32.exe from windows, making it smaller.
My System SpecsSystem Spec
08 Mar 2013   #80


How do I uninstall this?
It doesn't come with an uninstaller and doesn't show up in control panel?
This program causes that "do you want this program to make changes to your computer?" popup to open up every time I open a gif, so damn annoying.
My System SpecsSystem Spec

 Windows 7 Gif Viewer Works perfectly

Thread Tools

Similar help and support threads
Thread Forum
Perfectly legal ways you can still get Windows 7 cheap (or even free)
Source A Guy
Does Windows 7 install and works perfectly with 512 MB RAM?
I'd installed windows XP about 3 months ago because of a faulty RAM, and now would like to switch back to Windows 7. And now I have only 512 MB of RAM left. So, my question is that will windows 7 handle 512 MB perfectly or will it run slowly?
General Discussion
Windows Media player does not show video audio works perfectly AVI
This all started earlier today it worked fine yesterday no changes to my computer at all this only happens with avi files cant do system restore I dont use restore points uses too much HDD space can you help me?
Music, Pictures & Video
Windows dont resize "perfectly"?
It may be a nit but I'll ask anyway - I use a Toshiba I7 PC with two external Acer 22" monitors under W7, 64 bit - all works great but when I hit the middle top upper right button (I dont know its proper name) the windows resize - but not "perfectly" - i.e., its edge shows on the adjacent monitors...
General Discussion
Well Build 7077 works perfectly and my surround sound!!
Well, 7077 build works perfectly and even my surround sound. It was a stupid error on my part :(. I forgot to select the 5.1 surround sound option in the Control Panel lols.
Sound & Audio

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:40.
Twitter Facebook Google+