(addon) NSIScons - use NSIS variables in your button bar

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tpr
Junior Member
Junior Member
Posts: 37
Joined: 2011-06-05, 12:55 UTC

(addon) NSIScons - use NSIS variables in your button bar

Post by *tpr »

NSIScons helps you using NSIS constants (e.g. $WINDIR, $HISTORY, $LOCALAPPDATA) in Total Commander's Button Bar.

By clicking on an NSIScons button, the target panel of Total Commander will jump to the corresponding location.

See the included readme.txt.

http://rolandtoth.hu/files/NSIScons.zip
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

No additional external software is needed to achieve the same goal: Simply use the existing environment variables and the T.C. internal special variables.

Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
tpr
Junior Member
Junior Member
Posts: 37
Joined: 2011-06-05, 12:55 UTC

Post by *tpr »

I found only about 20 TC special environment variables. Mine handles about 50. Anyway, this tool is rather for NSIS guys out there.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

tpr, BTW you may use %COMMANDER_PATH% or %COMMANDER_EXE% envvars instead of specifying path to TC in INI file.

Also I don't think it is a good idea to require administrator rights in order to start your tool.

(ofc. COMMANDER_EXE)
Last edited by MVV on 2011-12-15, 11:29 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 16140
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2MVV
%COMMANDER_PROGRAM%
It is %COMMANDER_EXE% not %COMMANDER_PROGRAM%

But you can also use %COMMANDER_INI% which points directly to the current ini-file
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
tpr
Junior Member
Junior Member
Posts: 37
Joined: 2011-06-05, 12:55 UTC

Post by *tpr »

Also I don't think it is a good idea to require administrator rights in order to start your tool.
I agree, though NSIScons should not require that. I use it also on a machine where I have no admin rights.

I will consider adding the %COMMANDER_EXE%, thanks.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

tpr wrote:
Also I don't think it is a good idea to require administrator rights in order to start your tool.
I agree, though NSIScons should not require that. I use it also on a machine where I have no admin rights.
But it requires elevation if user is administrator. There should be a way to switch requestedExecutionLevel level to asInvoker instead of highestAvailable...
tpr
Junior Member
Junior Member
Posts: 37
Joined: 2011-06-05, 12:55 UTC

Post by *tpr »

Thanks, I updated the zip with

Code: Select all

RequestExecutionLevel user
Hope this will do the trick.

I have winXP only and never thought this issue can come up. I have to remember to use this in future projects.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, now it works w/o elevation prompts. :)
tpr
Junior Member
Junior Member
Posts: 37
Joined: 2011-06-05, 12:55 UTC

Post by *tpr »

New version available:

http://rolandtoth.hu/files/NSIScons_v0.2.zip

Changelog:
- NEW: support for Double Commander (http://doublecmd.sourceforge.net/)
- NEW: examples for Total Commander / Double Commander with system icons (see README.txt)
- NEW: attempt to resolve parameter as environment variable if no matching NSIS constant found
- updated documentation
- main icon size fixes
- minor fixes

Screenshot:
Image: http://rolandtoth.hu/pic/NSIScons-doublecmd.png
Image: http://rolandtoth.hu/pic/NSIScons-totalcmd.png
Post Reply