Search plugin archives

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
aguirRe
Junior Member
Junior Member
Posts: 88
Joined: 2003-02-06, 17:33 UTC
Contact:

Search plugin archives

Post by *aguirRe »

Is it possible to search plugin archives (e.g. 7-zip) the same way it works for zips? If not, is there a plan to implement it?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Add all extensions you wanna search in wincmd.ini entry

Code: Select all

[Configuration]
SearchInFiles=*.7z *.xyz *.etc...
Icfu
This account is for sale
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

How to avoid searches ?

Post by *Gral »

It's really works ? I don't see any difference. AIK by default TC performs searches in all plugins archive.
I need opposite option. How to avoid searches in certain plugins archive files ?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

It's really works ? I don't see any difference. AIK by default TC performs searches in all plugins archive.
By default only those extensions are searched you have assigned a packer plugin to (and the default extensions like zip, rar, ace, etc...).
How to avoid searches in certain plugins archive files ?
Not possible in the ini file, the default extensions are always searched.

Icfu
This account is for sale
aguirRe
Junior Member
Junior Member
Posts: 88
Joined: 2003-02-06, 17:33 UTC
Contact:

Post by *aguirRe »

Icfu, I tried your tip but it doesn't seem to work.

I forgot to mention that I meant search for text in files inside 7-zip archives. Searching for filenames inside 7-zip archives already works, with or without the "SearchInFiles" entry. Which is a bit confusing actually, as the entry then doesn't seem to make any difference either way.

So my initial question remains; is it possible or is it planned as an upcoming feature?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

I forgot to mention that I meant search for text in files inside 7-zip archives.
In general this is possible for archive plugins, there is a flag "128=allow searching for text in archives" that is set when the plugin supports it but currently 7z plugin hasn't set that flag.

*Edited*
It is already possible, it seems that OnO has just forgotten to add that flag. Please open your wincmd.ini and exchange "7z=87" with "7z=215" in the section [PackerPlugins]. You can also activate it using the Plugins Manager. Choose the 7z plugin and press "Tweak".
Which is a bit confusing actually, as the entry then doesn't seem to make any difference either way.
Example:
Right now you have (probably) entered ".7z" as packer extension for 7zip. When you add "*.7zip" or "*.xyz" in the above mentioned ini setting those will also be searched although the extensions are not assigned.

Usually this setting is used for extensions that you don't wanna treat as archives under normal circumstances like the OpenOffice extensions for example which are nothing else but usual .zip-files:
SearchInFiles=*.sxw *.sxc

Icfu
This account is for sale
aguirRe
Junior Member
Junior Member
Posts: 88
Joined: 2003-02-06, 17:33 UTC
Contact:

Post by *aguirRe »

I tried the 215 setting but on both my systems (W95/XP), TC crashed while searching in module 7zip.wcx (v 0.4.6). This is maybe why the author didn't enable it yet ...

Thanks for trying, though.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

I have tried it here and it worked flawlessly, maybe something is wrong with the archive. I can check the archive if it's not too big or too private if you want, maybe I can reproduce the crash.

Icfu
This account is for sale
aguirRe
Junior Member
Junior Member
Posts: 88
Joined: 2003-02-06, 17:33 UTC
Contact:

Post by *aguirRe »

All 7-zip archives verify OK both in plugin and 7-zip file manager (4.23). I've tried searching with different variants, with/without filespec, only marked etc and it worked in maybe one variant, the rest crashed.

I'm on dial-up so I'd rather not send any big files and I doubt that they are at fault here. Even if they were corrupt, the plugin shouldn't crash. Thanks for the offer, though.

If anyone needs more info, I have the DrWatson log. EIP is 0x1000371b and function is "7zip!CanYouHandleThisFile" in 7zip.wcx. I guess the answer is no ...
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Contact OnO then, email address is in readme.

Icfu
This account is for sale
Post Reply