Plugin for Irfan View 398, free
(no. 158 on the download list)

-For Nu2menu and XPE

-If the program is not installed, the plugin will download it for you.

-Optionally starting from disk or ramdrive

-Localized

-Starting in "thumbs mode"

-Info HERE

Regards, Reatogo smile.gif






autoHelp_i_view32.cmd
QUOTE
@echo off& Color F8&MODE CON: COLS=73 LINES=20&if not exist ..\..\REA.cmd echo Wrong Directory...&pause&exit
set SILENT=%1&set GET=call ..\..\REA.cmd
If not "%SILENT%" == "silent" if exist start.inf.txt echo The plugin is already configured...&pause&exit
If "%MASTER%" == "" If "%SILENT%" == "silent" if exist start.inf goto :EOF

:: ==================================================
:: REATOGO AUTOHELP BASIC PLUGIN SETTINGS
:: ==================================================

set startFrom=disk
%GET% YES-NO "Start from Disc? (No =RamDrive)"
if "%result%" == "no" set startFrom=cmd

%GET% CREDITS "Reatogo" "" "317-104" "2006-01-09" "IrfanView"

%GET% HEAD "590" "i_view32.exe" "Irfan View 398" "%startFrom%" "None" "" "Rea" "Nu2" ""

%GET% INFO "http://www.irfanview.com/" "free"

:: ==================================================
:: CREATING THE REST OF THE PLUGIN

:: Note: PROGPATH is already defined.
:: ==================================================

:: Download the program if not installed:
if not "%LANG%" == "english" if not exist "%ProgramFiles%\IrfanView\i_view32.exe" ..\..\wget -c http://www.irfanview.net/lang/%LANG%.zip
%GET% DOWNLOAD "" "" "" "http://ewetel.tucows.com/files2/iview398.exe"
%GET% DOWNLOAD "" "DOWNLOAD IRVAN PLUGINS" "Download all available plugins 4.8 MB" "http://easyhost.tucows.com/files2/irfanview_plugins_398.exe" "No plugin download" ""

%GET% FOLDER "a" "iv_uninstall.exe"

%GET% INI "Files\i_view32.ini" -s "Language" "DLL" "%LANG%.dll"
%GET% INI "Files\i_view32.ini" -s "Language" "Lang" "%LANG%"
%GET% INI "Files\i_view32.ini" -ds "Open"
%GET% INI "Files\i_view32.ini" -ds "WinPosition"
%GET% INI "Files\i_view32.ini" -ds "Thumbnails"

set FILE=Files\i_view32.ini
ECHO [WinPosition] >> %FILE%
ECHO xKoord=328 >> %FILE%
ECHO yKoord=83 >> %FILE%
ECHO Width=496 >> %FILE%
ECHO Height=468 >> %FILE%
ECHO Maximized=0 >> %FILE%
ECHO [Thumbnails] >> %FILE%
ECHO WindowX=155 >> %FILE%
ECHO WindowY=102 >> %FILE%
ECHO WindowW=780 >> %FILE%
ECHO WindowH=543 >> %FILE%
ECHO TreeW=191 >> %FILE%
ECHO Maximized=0 >> %FILE%
ECHO Enlarge=0 >> %FILE%
ECHO UseResample=0 >> %FILE%
ECHO PaintBorders=0 >> %FILE%
ECHO ThumbSize=2 >> %FILE%
ECHO BackColor=16777215 >> %FILE%
ECHO BackgroundColor=16777215 >> %FILE%
ECHO MRUDs=30 >> %FILE%
ECHO TrueColWarning=1 >> %FILE%
ECHO ShowShell=0 >> %FILE%
ECHO [Open] >> %FILE%
ECHO OpenDir=C:\ >> %FILE%


if not exist "%PROGPATH%\Languages\%LANG%.dll" (
if not "%LANG%" == "english" (
..\..\wget -c http://www.irfanview.net/lang/%LANG%.zip
..\..\unzip -q -o %LANG%.zip -d lang
if not exist Files\Languages md Files\Languages
if exist lang\Languages copy lang\Languages\*.* Files\Languages\
if exist lang\%LANG%.dll move lang\%LANG%.dll Files\Languages\
if "%LANG%" == "nederlands" move lang\Nederlands3.dll Files\Languages\%LANG%.dll
if "%LANG%" == "spanish" move lang\Spanish1.dll Files\Languages\%LANG%.dll
if exist Languages rd Languages /s /q
if exist lang\Help (
copy lang\Help\*.* Files\
if exist Files\i_view32.hlp (
del Files\i_view32.hlp
del Files\i_view32.cnt
)
)
if "%LANG%" == "hungarian" (
move lang\i_view32.hlp Files\i_view32.hlp
move lang\i_view32.cnt Files\i_view32.cnt
)
if exist lang rd lang /s /q
)
)

md INFO&move Files\*.txt INFO\

%line%

ECHO [Software.AddReg] %OUT%
ECHO ; XPE Shortcuts for i_view32 %OUT%
if "%startFrom%" == "disk" (
ECHO 0x2, "Sherpya\XPEinit\Desktop", "i_view32", "%%SystemDrive%%\Programs\i_view32\i_view32.exe|/thumbs|%%SystemDrive%%\Programs\i_view32\i_view32.exe,0" %OUT%
ECHO 0x2, "Sherpya\XPEinit\Programs", "i_view32", "%%SystemDrive%%\Programs\i_view32\i_view32.exe|/thumbs|%%SystemDrive%%\Programs\i_view32\i_view32.exe,0" %OUT%
)
if "%startFrom%" == "cmd" (
ECHO 0x2, "Sherpya\XPEinit\Desktop", "Irfan View 398", "%%SystemDrive%%\Programs\i_view32\Start_i_view32.cmd||%%SystemDrive%%\Programs\i_view32\i_view32.exe" %OUT%
ECHO 0x2, "Sherpya\XPEinit\Programs", "Irfan View 398", "%%SystemDrive%%\Programs\i_view32\Start_i_view32.cmd||%%SystemDrive%%\Programs\i_view32\i_view32.exe" %OUT%
)

:: Uncomment to supress UPX dialog:
::set autoUPX=no
:: ==================================================
:: FINAL CLEANUP
if exist start.inf rename start.inf start.inf.txt&%GET% FINAL&exit
%GET% FINAL
:: ==================================================




Note for users not using the reatogo setup:
The plugin depends on certain files to be in the PEbuilder root.
Download Getting_Started.exe and run it in your folder "plugin". This will put those depends into your setup and then present you with the list of all available autoHelp plugins, including this one.
Get it here