Page 1 of 1

How to enable / disable Shell Extension (in ZIP version)

Posted: Sat Mar 04, 2006 3:28 pm
by Dreamer
How to enable / disable (install / uninstall) Shell Extension (in ZIP full version)?

Create two .TXT files, copy blue text there, change path to XnView (if needed) and rename them to .CMD or .BAT (exact names below).

For Windows 2000:

An example - Install_win2k.cmd:

@echo off
cls
c:\winnt\system32\regsvr32.exe "c:\program files\xnview\xnviewshellext.dll"
exit


An example - Uninstall_win2k.cmd:

@echo off
cls
c:\winnt\system32\regsvr32.exe /u "c:\program files\xnview\xnviewshellext.dll"
exit


For Windows XP:

XnShellEx_Install_WinXP.cmd:

@echo off
cls
%windir%\System32\regsvr32.exe /s "C:\Program Files\XnView\XnViewShellExt.dll"
exit


XnShellEx_Uninstall_WinXP.cmd:

@echo off
cls
%windir%\System32\regsvr32.exe /u /s "C:\Program Files\XnView\XnViewShellExt.dll"
exit


Note: You can use this solution only if you have file XnViewShellExt.dll in XnView folder.

Posted: Sat Mar 04, 2006 4:28 pm
by Aokromes
I think it's better to use %windir% and %programfiles% also it only works on windows x86 builds.

Posted: Sat Mar 04, 2006 10:36 pm
by Dreamer
Aokromes wrote:I think it's better to use %windir% and %programfiles% also it only works on windows x86 builds.
OK, it's not my idea (it was ckit - 2k version), so I'm not sure about it (%windir%) - then it should work on Windows 2000/XP and also 98/ME?

I'd rather don't use %programfiles% - because not all users use Program Files folder (e.g. me), so it could be more difficult / confusing to replace %programfiles%, since they don't know what it means...

I found also a command /s = hide info dialog, so you don't need to press OK button.