Topic: FileShredder Plugin  (Read 2326 times)

FileShredder Plugin
« on: October 31, 2017, 05:08:20 AM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
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: November 01, 2017, 09:50:02 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
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, 03:03:16 PM »

sa mo

  • Jr. Chef
  • **
  • Date Registered: Oct 2017
  • Posts: 19
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, 05:53:11 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
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, 08:03:23 PM by bob.omb »

Re: FileShredder Plugin
« Reply #4 on: November 02, 2017, 08:23:03 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
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, 09:47:49 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
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, 09:58:32 PM »

sa mo

  • Jr. Chef
  • **
  • Date Registered: Oct 2017
  • Posts: 19
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 03, 2017, 08:39:27 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
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 03, 2017, 09:13:57 AM »

Lancelot

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

File Shredder v4 on server,

minor:
just removed unnecessary quotes.

:turtle:

 

Powered by EzPortal