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
Garth123

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
bernard

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
Phanjam

win7 32 home basic, win7 32 pro
 
 

My big thanks to you Goofwear!
My System SpecsSystem Spec
04 Feb 2013   #74
Perks

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
Arriens

windows 7
 
 

[QUOTE=BigPie;1968772]
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
corgano

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:
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.GIF]
@="GIFImage.Document"

[HKEY_CLASSES_ROOT\.GIF]
@="GIFImage.Document"

[HKEY_CLASSES_ROOT\GIFImage.Document]
"EditFlags"=dword:00010000
"FriendlyTypeName"=hex(2):40,00,25,00,57,00,69,00,6e,00,44,00,69,00,72,00,25,\
  00,5c,00,67,00,69,00,66,00,5c,00,73,00,68,00,69,00,6d,00,67,00,76,00,77,00,\
  2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,36,00,00,00
"ImageOptionFlags"=dword:00000000
"BrowserFlags"=dword:00000008
@="GIF Image"

[HKEY_CLASSES_ROOT\GIFImage.Document\DefaultIcon]
@=hex(2):25,00,57,00,69,00,6e,00,44,00,69,00,72,00,25,00,5c,00,67,00,69,00,66,\
  00,5c,00,73,00,68,00,69,00,6d,00,67,00,76,00,77,00,2e,00,64,00,6c,00,6c,00,\
  2c,00,34,00,00,00

[HKEY_CLASSES_ROOT\GIFImage.Document\shell]
@=""

[HKEY_CLASSES_ROOT\GIFImage.Document\shell\open]
"MuiVerb"="@shimgvw.dll,-550"

[HKEY_CLASSES_ROOT\GIFImage.Document\shell\open\command]
@=hex(2):25,00,57,00,69,00,6e,00,44,00,69,00,72,00,25,00,5c,00,67,00,69,00,66,\
  00,5c,00,72,00,75,00,6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,\
  65,00,20,00,25,00,57,00,69,00,6e,00,44,00,69,00,72,00,25,00,5c,00,67,00,69,\
  00,66,00,5c,00,73,00,68,00,69,00,6d,00,67,00,76,00,77,00,2e,00,64,00,6c,00,\
  6c,00,2c,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,5f,00,46,\
  00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,00,31,00,\
  00,00

[HKEY_CLASSES_ROOT\GIFImage.Document\shell\open\DropTarget]
"Clsid"="{E84FDA7C-1D6A-45F6-B725-CB260C236066}"

[HKEY_CLASSES_ROOT\GIFImage.Document\shell\printto]

[HKEY_CLASSES_ROOT\GIFImage.Document\shell\printto\command]
@="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,\
  00,69,00,66,00,5c,00,72,00,75,00,6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,\
  65,00,78,00,65,00,20,00,25,00,57,00,69,00,6e,00,44,00,69,00,72,00,25,00,5c,\
  00,67,00,69,00,66,00,5c,00,73,00,68,00,69,00,6d,00,67,00,76,00,77,00,2e,00,\
  64,00,6c,00,6c,00,2c,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,\
  00,5f,00,50,00,72,00,69,00,6e,00,74,00,54,00,6f,00,20,00,2f,00,70,00,74,00,\
  20,00,22,00,25,00,31,00,22,00,20,00,22,00,25,00,32,00,22,00,20,00,22,00,25,\
  00,33,00,22,00,20,00,22,00,25,00,34,00,22,00,00,00
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
Code:
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=XP Photo and fax viewer (For GIFS on Win 7).exe
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Res_Fileversion=1.1.0.0
#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.8.1
 Author:         Corgano, CorganoWade@gmail.com

 Purpose:
	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 - http://www.goofwear.com/windows/
	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

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

  Enjoy

#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
		ConsoleWrite("Remove"&@CRLF)
		RegDelete('HKEY_CLASSES_ROOT\.GIF')
		RegDelete('HKEY_CLASSES_ROOT\GIFImage.Document')
		FileDelete($path)
		Exit
	Else
		Exit
	EndIf
EndIf

ConsoleWrite("Instal"&@CRLF)
DirCreate($path)
FileInstall("rundll32.exe",$path&"\rundll32.exe",1)
FileInstall("shimgvw.dll",$path&"\shimgvw.dll",1)

RegWrite('HKEY_CLASSES_ROOT\.GIF','','REG_SZ','GIFImage.Document')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document','EditFlags','REG_DWORD','65536')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document','FriendlyTypeName','REG_EXPAND_SZ','@%WinDir%\gif\shimgvw.dll,-306')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document','ImageOptionFlags','REG_DWORD','0')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document','BrowserFlags','REG_DWORD','8')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document','','REG_SZ','GIF Image')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document\DefaultIcon','','REG_EXPAND_SZ','%WinDir%\gif\shimgvw.dll,4')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document\shell','','REG_SZ','')
RegWrite('HKEY_CLASSES_ROOT\GIFImage.Document\shell\open','MuiVerb','REG_SZ','@shimgvw.dll,-550')
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\open\DropTarget','Clsid','REG_SZ','{E84FDA7C-1D6A-45F6-B725-CB260C236066}')
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
Arriens

windows 7
 
 

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

Microsoft Community Contributor Award Recipient

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

Regards,
Golden
My System SpecsSystem Spec
28 Feb 2013   #79
corgano

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.
EDIT
I decided to run a series of scans to see what causes it to be flaged. A full report here
https://docs.google.com/document/d/1...WWOQPn_a-M/pub
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
Windbrand

 
 

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
Reply

 Windows 7 Gif Viewer Works perfectly




Thread Tools





Similar help and support threads
Thread Forum
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
Win 7 installed perfectly. But will not boot.
Hi all, My system config is: Intel Pentium D 925 MSI G33M 7357 motherboard Transcend 2*1GB DDR2 800 + 2GB DDR2 800 RAM Western Digital 250GB SATA boot disk. Sony IDE DVD-RW
Installation & Setup
How to perfectly clone my HD...HELP...
I am going to the biggest LAN in South Africa so can some one please help me to make a perfect copy of my HardDrive as is and put that copy on to a clean brad new HadrdDrive? Just in-case something goes wrong...please this will be much appreciated. c0re 7
General Discussion
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 15:20.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App