XnView placed on a USB drive or an optical media.
Drive has autorun.inf at its root.
autorun file has to generate some options in the drive's contextual menu.
These contextual menu positions lead to xnview invocation with the -ini and -slide parameters.
How should the autorun syntax look?
It has to work at least on Vista and Windows 7.
I guess, they will be the shell/<item>/command items.
But how exactly have they to be?
XnView on removable drive - drive's contextual menu
Moderators: helmut, XnTriq, xnview
Re: XnView on removable drive - drive's contextual menu
Usual autorun.inf context menu looks like this:aapapapa wrote:XnView placed on a USB drive or an optical media.
Drive has autorun.inf at its root.
autorun file has to generate some options in the drive's contextual menu.
These contextual menu positions lead to xnview invocation with the -ini and -slide parameters.
How should the autorun syntax look?
It has to work at least on Vista and Windows 7.
I guess, they will be the shell/<item>/command items.
But how exactly have they to be?
Code: Select all
shell\uniquestring=Menu text
shell\uniquestring\command=some.exe -param
Code: Select all
shell\xnview=&XnView slide
shell\xnview\command=xnview.exe -ini xnview.ini -slide someslide.sld
To fix the problem you need to use full paths in the command line or you could use a little program I wrote called Autorunner, it will correct the working directory before runing the context menu program.
When using Autorunner you simply add 'autorunner.exe' to the beginning of the command entry:
Code: Select all
shell\xnview=&XnView slide
shell\xnview\command=autorunner.exe xnview.exe -ini xnview.ini -slide someslide.sld
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.