7-zip plugins problem with encryption on Windows 7

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Jacoj
New Member
New Member
Posts: 1
Joined: 2011-11-03, 07:50 UTC

7-zip plugins problem with encryption on Windows 7

Post by *Jacoj »

I noticed problem with 7-zip plugins - it doesn't encrypt files during compression even on user account with Administrator privileges, but it works OK when TC is "run as Administrator".
Details:
Windows 7 64bit PL
TC 7.56 and previous versions
7-zip plugins: 7Zip Plugin 0.7.6.5 (and previous), 0.5.8

Files are compressed without encryption and without any error window/notice!

Workaround:
Give a RWX privileges to folder with TC (eg. C:\Program Files (x86)\totalcmd) to users which run a TC.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This seems to be a plugin problem - moved to plugins forum.
Author of Total Commander
https://www.ghisler.com
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Jacoj.

I cannot reproduce the problem using the following combinations:

+ Total Commander 8.0ß7 64-bit
+ newly compiled and linked 7-zip plugin 0.7.6.5a 64-bit

+ Total Commander 8.0ß7 32-bit
+ newly compiled and linked 7-zip plugin 0.7.6.5a 32-bit

I.e. the archives will be encrypted.

Hm, looking at your explanation about the missing write privileges:

The plugin creates and updates its INI-file inside its 7-zip plugin folder.
As a rule this will be somewhere below the %COMMANDER_PATH%\plugins.
In case %COMMANDER_PATH% is located inside C:\Program Files or C:\Program Files (x86), starting with Vista, the special protection for this folder trees will be activated and prevent any non elevated write access.

So it would be great if the plugin could be persuaded to store its INI file in a different folder like %APPDATA%\Ghisler, side by side with winmd.ini.

Kind regards,
Karl
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

Karlchen got the point.
7zip.wcx(64) should also support PackSetDefaultParams() function to ask for directory with write access to save the ini file.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Post Reply