Replace PictView through Windows Photo Viewer

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
tdrees
Posts: 10
Joined: 13 Dec 2005, 20:14

Replace PictView through Windows Photo Viewer

Post by tdrees »

Hi,

I want to replace the interal PictView Plugin through the Windows Photo Viewer. Therefore I have changed the configuration. From within the file viewer I have done the following change (see hardcopy). The full command is

rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen

Nothing happens, when I press F3 on a JPG.

What am I doing wrong? Using cmdline this is working fine.

Thanks and Regards,

Torsten
Attachments
2016-02-28 15_11_53-Konfiguration.png
2016-02-28 15_11_53-Konfiguration.png (30.89 KiB) Viewed 6113 times
User avatar
SelfMan
Posts: 1143
Joined: 05 Apr 2006, 20:51
Contact:

Re: Replace PictView through Windows Photo Viewer

Post by SelfMan »

try FullName instead of Name. Use the following syntax:
%SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll",ImageView_Fullscreen <full path to the image without quotes>

you have 2 main error in the configuration:
1) there should be no space character between , and ImageView_Fullscreen - ,ImageView_Fullscreen
2) the "$(Name)" should be without quotes and FullName - $(FullName)

I've tested the line above and its working.
tdrees
Posts: 10
Joined: 13 Dec 2005, 20:14

Re: Replace PictView through Windows Photo Viewer

Post by tdrees »

Hi, I dot no get it running with this syntax either. Please see attached hardcopy with the error message. "System cannot find the file"....
Regards,

Torsten
Attachments
2016-02-29 20_35_18-Fehler.png
2016-02-29 20_35_18-Fehler.png (6.92 KiB) Viewed 6069 times
User avatar
SelfMan
Posts: 1143
Joined: 05 Apr 2006, 20:51
Contact:

Re: Replace PictView through Windows Photo Viewer

Post by SelfMan »

Ok, it seems that there is a problem expandisk system variables...%blahblah% so use:
command: C:\Windows\System32\rundll32.exe
argument: "C:\Program files\Windows Photo Viewer\PhotoViewer.dll",ImageView_Fullscreen $(FullName)
Initial directory: $(FullPath)

This is valid for a 32 bit OS. For a 64 bit OS you have to adjust the paths accordingly.

I've tested this configuration and its working.
tdrees
Posts: 10
Joined: 13 Dec 2005, 20:14

Re: Replace PictView through Windows Photo Viewer

Post by tdrees »

Yes you are right. No it is working.
Thanks and Regards,
Torsten
Post Reply