Silent Deployment of XnView

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

Post Reply
MAK

Silent Deployment of XnView

Post by MAK » Thu Dec 11, 2003 4:49 pm

Hello I like to deploy XnView without any user clicks. I know the switch "/silent", but I like to know how I can set the .bmp link with XnView per BATCH or Switch.

User avatar
helmut
Posts: 8176
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Silent deployment of XnView

Post by helmut » Sat Dec 13, 2003 1:01 pm

There might be other and more professional ways to do a silent installation of XnView (e.g. Software Management tools, ...), but I followed your initial idea and tried it out. What you need is a small batch script and a .reg file containing registry keys exported from regedit.

The batch file will
- call regedit and do the registrations for .bmp
- call the XnView setup program in silent mode

The .reg file contains the keys for the file associations for the .bmp format.

File "xnview-install-silent.bat":

Code: Select all

@echo off
regedit /s xnview-assoc.reg
XnView-win1.66-full-de.exe /silent
File "xnview-assoc.reg":

Code: Select all

REGEDIT4

[HKEY_CLASSES_ROOT\.bmp]
@="XnView.Image"

[HKEY_CLASSES_ROOT\XnView.bmp]

[HKEY_CLASSES_ROOT\XnView.bmp\shell]

[HKEY_CLASSES_ROOT\XnView.bmp\shell\open]

[HKEY_CLASSES_ROOT\XnView.bmp\shell\open\command]
@="\"C:\\PROGRAMME\\XNVIEW1.66\\XNVIEW.EXE\" \"%1\""

[HKEY_CLASSES_ROOT\XnView.bmp\DefaultIcon]
@="C:\\PROGRAMME\\XNVIEW1.66\\XNVIEW.EXE,2"
The registry keys above are exported using RegEdit on Windows 98. The format of the .reg file might differ when using RegEdit on newer Windows platforms.

SniCKerZ
Posts: 8
Joined: Mon Oct 04, 2004 3:51 pm
Contact:

Post by SniCKerZ » Wed Oct 06, 2004 7:44 am

more:
File 'associate.reg'

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.bmp]
@="XnView.bmp"
"PerceivedType"="image"
"Content Type"="image/bmp"

[HKEY_CLASSES_ROOT\.emf]
"PerceivedType"="image"
@="XnView.Image"

[HKEY_CLASSES_ROOT\.gif]
"PerceivedType"="image"
@="XnView.gif"
"Content Type"="image/gif"

[HKEY_CLASSES_ROOT\.jpe]
"PerceivedType"="image"
@="XnView.Image"
"Content Type"="image/jpeg"

[HKEY_CLASSES_ROOT\.jpeg]
"PerceivedType"="image"
@="XnView.Image"
"Content Type"="image/jpeg"

[HKEY_CLASSES_ROOT\.jpg]
"PerceivedType"="image"
@="XnView.jpg"
"Content Type"="image/jpeg"

[HKEY_CLASSES_ROOT\.png]
"PerceivedType"="image"
@="XnView.png"
"Content Type"="image/png"

[HKEY_CLASSES_ROOT\.rle]
@="XnView.Image"

[HKEY_CLASSES_ROOT\.targa]
@="XnView.Image"

[HKEY_CLASSES_ROOT\.tga]
@="XnView.tga"

[HKEY_CLASSES_ROOT\.tif]
"Content Type"="image/tiff"
@="XnView.tif"

[HKEY_CLASSES_ROOT\.tiff]
"Content Type"="image/tiff"
"PerceivedType"="image"
@="XnView.Image"

[HKEY_CLASSES_ROOT\.wmf]
"PerceivedType"="image"
@="XnView.Image"

[HKEY_CLASSES_ROOT\XnView.bmp]
[HKEY_CLASSES_ROOT\XnView.bmp\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,2"
[HKEY_CLASSES_ROOT\XnView.bmp\shell]
[HKEY_CLASSES_ROOT\XnView.bmp\shell\open]
[HKEY_CLASSES_ROOT\XnView.bmp\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""

[HKEY_CLASSES_ROOT\XnView.gif]
[HKEY_CLASSES_ROOT\XnView.gif\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,3"
[HKEY_CLASSES_ROOT\XnView.gif\shell]
[HKEY_CLASSES_ROOT\XnView.gif\shell\open]
[HKEY_CLASSES_ROOT\XnView.gif\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""

[HKEY_CLASSES_ROOT\XnView.iff]
[HKEY_CLASSES_ROOT\XnView.iff\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,4"
[HKEY_CLASSES_ROOT\XnView.iff\shell]
[HKEY_CLASSES_ROOT\XnView.iff\shell\open]
[HKEY_CLASSES_ROOT\XnView.iff\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""

[HKEY_CLASSES_ROOT\XnView.Image]
@="XnView Image"
[HKEY_CLASSES_ROOT\XnView.Image\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,1"
[HKEY_CLASSES_ROOT\XnView.Image\shell]
[HKEY_CLASSES_ROOT\XnView.Image\shell\open]
[HKEY_CLASSES_ROOT\XnView.Image\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""

[HKEY_CLASSES_ROOT\XnView.jpg]
[HKEY_CLASSES_ROOT\XnView.jpg\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,5"
[HKEY_CLASSES_ROOT\XnView.jpg\shell]
[HKEY_CLASSES_ROOT\XnView.jpg\shell\open]
[HKEY_CLASSES_ROOT\XnView.jpg\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""

[HKEY_CLASSES_ROOT\XnView.pcx]
[HKEY_CLASSES_ROOT\XnView.pcx\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,6"
[HKEY_CLASSES_ROOT\XnView.pcx\shell]
[HKEY_CLASSES_ROOT\XnView.pcx\shell\open]
[HKEY_CLASSES_ROOT\XnView.pcx\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""

[HKEY_CLASSES_ROOT\XnView.pic]
[HKEY_CLASSES_ROOT\XnView.pic\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,7"
[HKEY_CLASSES_ROOT\XnView.pic\shell]
[HKEY_CLASSES_ROOT\XnView.pic\shell\open]
[HKEY_CLASSES_ROOT\XnView.pic\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""

[HKEY_CLASSES_ROOT\XnView.png]
[HKEY_CLASSES_ROOT\XnView.png\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,8"
[HKEY_CLASSES_ROOT\XnView.png\shell]
[HKEY_CLASSES_ROOT\XnView.png\shell\open]
[HKEY_CLASSES_ROOT\XnView.png\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""

[HKEY_CLASSES_ROOT\XnView.Slide]
@="XnView Slide"
[HKEY_CLASSES_ROOT\XnView.Slide\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,0"
[HKEY_CLASSES_ROOT\XnView.Slide\shell]
[HKEY_CLASSES_ROOT\XnView.Slide\shell\open]
[HKEY_CLASSES_ROOT\XnView.Slide\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" -slide \"%1\""

[HKEY_CLASSES_ROOT\XnView.tga]
[HKEY_CLASSES_ROOT\XnView.tga\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,9"
[HKEY_CLASSES_ROOT\XnView.tga\shell]
[HKEY_CLASSES_ROOT\XnView.tga\shell\open]
[HKEY_CLASSES_ROOT\XnView.tga\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""

[HKEY_CLASSES_ROOT\XnView.tif]
[HKEY_CLASSES_ROOT\XnView.tif\DefaultIcon]
@="C:\\Program Files\\XnView\\xnview.exe,10"
[HKEY_CLASSES_ROOT\XnView.tif\shell]
[HKEY_CLASSES_ROOT\XnView.tif\shell\open]
[HKEY_CLASSES_ROOT\XnView.tif\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Applications\xnview.exe]
[HKEY_CLASSES_ROOT\Applications\xnview.exe\shell]
[HKEY_CLASSES_ROOT\Applications\xnview.exe\shell\open]
[HKEY_CLASSES_ROOT\Applications\xnview.exe\shell\open\command]
@="\"C:\\Program Files\\XnView\\xnview.exe\" \"%1\""
I use this batch file:

Code: Select all

XnView-win-full.exe /silent
copy /b /Y xnview.ini %programfiles%\xnview\
regedit /S associate.reg
May be someone help.
SniCKerZ

Nico207

Post by Nico207 » Sun Jan 23, 2005 10:51 pm

May be someone help.
Yes me! THANK YOU :wink:

Lator

Post by Lator » Fri Feb 04, 2005 9:09 am

thx u !!

Post Reply