Topic: FileShredder Plugin  (Read 288 times)

0 Members and 1 Guest are viewing this topic.

FileShredder Plugin
« on: October 30, 2017, 07:08:20 PM »

bob.omb

  • Chef
  • ***
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 162
Fileshredder is freeware.  Able to make files irrecoverable on demand.

Plugin attached. (Maybe providefile better?)

Source:
http://www.fileshredder.org/

Re: FileShredder Plugin
« Reply #1 on: October 31, 2017, 11:50:02 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7378
Hi bob.omb

Thanks for sharing  :thumbsup:

Add plugin to server:
Downloads\AppYGS\HD Tasks\Erase\File Shredder

:turtle:

Re: FileShredder Plugin
« Reply #2 on: November 01, 2017, 05:03:16 AM »

sa mo

  • Jr. Chef
  • **
  • Date Registered: Oct 2017
  • Posts: 12
Hi bob.omb
- needed dlls for 64 bit (from Lancelot post)
Code: [Select]
[Process]
If,Not,%SourceArch%,Equal,x86,Begin
If,%TargetWOW64%,Equal,x86,Run,%ScriptFile%,Process_WoW64
End

[Process_WoW64]
Set,%PluginArch%,x86
Require_FileQ,sfc.dll
Require_FileQ,sfc_os.dll

- from installer theristhere is two dll files:
Code: [Select]
[Files]
Source: "{app}\Shredder.exe"; DestDir: "{app}"; MinVersion: 0.0,5.0; Flags: ignoreversion 32bit
Source: "{app}\fsshell,1.dll"; DestDir: "{app}"; DestName: "fsshell.dll"; Check: "Is64BitInstallMode"; MinVersion: 0.0,5.0; Flags: regserver noregerror ignoreversion 64bit
Source: "{app}\fsshell,2.dll"; DestDir: "{app}"; DestName: "fsshell.dll"; Check: "not Is64BitInstallMode"; MinVersion: 0.0,5.0; Flags: regserver noregerror ignoreversion 32bit
and adding this ContextMenu:
Code: [Select]
[Process]
RegHiveLoad,Tmp_Default,%RegDefault%
If,%version%,Smaller,80,RegWrite,HKLM,0x1,Tmp_Default\Software\Microsoft\RestartManager
Else,RegWrite,HKLM,0x0,Tmp_Default\Software\Microsoft\RestartManager
RegHiveUnLoad,Tmp_Default

RegHiveLoad,Tmp_Software,%RegSoftware%
RegWrite,HKLM,0x1,Tmp_Software\Classes\AllFilesystemObjects\shellex\ContextMenuHandlers\DeleteFiles,,{736AF091-C361-49B4-A928-87C586130D33}
If,%version%,Smaller,80,RegWrite,HKLM,0x1,Tmp_Software\Classes\CLSID\{736AF091-C361-49B4-A928-87C586130D33}\InprocServer32
Else,RegWrite,HKLM,0x0,Tmp_Software\Classes\CLSID\{736AF091-C361-49B4-A928-87C586130D33}\InprocServer32
RegWrite,HKLM,0x1,Tmp_Software\Classes\CLSID\{736AF091-C361-49B4-A928-87C586130D33}\ProgID,,fsshell.SxContextMenu1
RegWrite,HKLM,0x1,Tmp_Software\Classes\CLSID\{736AF091-C361-49B4-A928-87C586130D33}\InprocServer32,,%PE_Programs%\%ProgramFolder%\fsshell.dll
RegWrite,HKLM,0x1,Tmp_Software\Classes\CLSID\{736AF091-C361-49B4-A928-87C586130D33}\InprocServer32,ThreadingModel,Apartment
RegWrite,HKLM,0x1,Tmp_Software\Classes\CLSID\{736AF091-C361-49B4-A928-87C586130D33},,"Delete Files"
RegWrite,HKLM,0x1,Tmp_Software\Classes\fsshell.SxContextMenu1\Clsid,,{736AF091-C361-49B4-A928-87C586130D33}
RegWrite,HKLM,0x1,Tmp_Software\Classes\fsshell.SxContextMenu1,,"Delete Files"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved",{736AF091-C361-49B4-A928-87C586130D33},DeleteFiles
RegHiveUnLoad,Tmp_Software
the result is:
Code: [Select]
http://hpics.li/520bb20

Re: FileShredder Plugin
« Reply #3 on: November 01, 2017, 07:53:11 AM »

bob.omb

  • Chef
  • ***
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 162
Thank you for your research, and spending time to contribute,

RestartManager key in context section, this is used to schedule a restart after software installation, it is not needed.

(I used your keys for ReFS just to be safe, from previous post.)
« Last Edit: November 01, 2017, 10:03:23 AM by bob.omb »

Re: FileShredder Plugin
« Reply #4 on: November 01, 2017, 10:23:03 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7378
Hi sa mo,

Thanks  :thumbsup:

*About code writing:

Code: [Select]
[Process]
If,Not,%SourceArch%,Equal,x86,Begin
If,%TargetWOW64%,Equal,x86,Run,%ScriptFile%,Process_WoW64
End

[Process_WoW64]
-->
Code: [Select]
[Process]
Arch,x86

 :wink:

*
About Context Menu:
You missed
Software\Shredder,Location,....
without this value, contextmenu gives warning.

*
New plugin with ContextMenu on server:
Downloads\AppYGS\HD Tasks\Erase\File Shredder

:turtle:

Re: FileShredder Plugin
« Reply #5 on: November 02, 2017, 11:47:49 AM »

bob.omb

  • Chef
  • ***
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 162
Thank you Lancelot I was just coming in to post same results of keys needing adjustment.  Many thanks for making it better  :thumbsup:

Re: FileShredder Plugin
« Reply #6 on: November 02, 2017, 11:58:32 AM »

sa mo

  • Jr. Chef
  • **
  • Date Registered: Oct 2017
  • Posts: 12
Code: [Select]
without this value, contextmenu gives warning..
i was thinking why he ask to run the program before running from shell ....
thanks for your help Lancelot , you give me solution for my old plugins  :grin:

Re: FileShredder Plugin
« Reply #7 on: November 02, 2017, 10:39:27 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7378
Hi sa mo

Some ContextMenu tips:

thanks for your help Lancelot , you give me solution for my old plugins  :grin:
same solution not required for all dll ContextMenu, it is about dll

i was thinking why he ask to run the program before running from shell ....
do not use same solution for all your old plugins.


--->
+
It is about author of .dll
fsshell.dll do not check folder for Shredder.exe
other context menu dll mostly check. -> no solution required.

+
We prefer writing "Expandable String" value since it is written during build.

fsshell.dll can not read "Expandable String" value,
Code: [Select]
RegWrite,HKLM,0x2,Tmp_Default\Software\Shredder,Location,%PE_Programs%\%ProgramFolder%\Shredder.exe
does not work.

fsshell.dll can only read "String" value
solution:
Code: [Select]
RegAddBoot,HKCU,0x1,Software\Shredder,Location,%PE_Programs%\%ProgramFolder%\Shredder.exe



:turtle:

Re: FileShredder Plugin
« Reply #8 on: November 02, 2017, 11:13:57 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7378
Hi all,

File Shredder v4 on server,

minor:
just removed unnecessary quotes.

:turtle:

 

Powered by EzPortal