Topic: RegCPE (Reg Converter PE)  (Read 26396 times)

0 Members and 1 Guest are viewing this topic.

Re: RegCPE (Reg Converter PE)
« Reply #60 on: February 27, 2016, 04:08:13 PM »

KYHI

  • Code Baker
  • Sr. Chef
  • ****
  • Location: Kentucky
  • Date Registered: Jan 2015
  • Posts: 909
It is nice to see an Eye on reason...

Re: RegCPE (Reg Converter PE)
« Reply #61 on: February 27, 2016, 09:22:25 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7183
It is nice to see an Eye on reason...

Sure  :thumbsup: , There is always an available Eye on reason...

all organizations have quite good logic behind to get projects sustainable. Even you can not understand logic there is simple fact, Self proof they are still alive, compared to other bad habit projects and organizations.....

:turtle:

Re: RegCPE (Reg Converter PE)
« Reply #62 on: August 07, 2016, 10:55:55 AM »

Prz42

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2014
  • Posts: 431
I need a little help with correctly writing a plugin.
This is the exported reg entry
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Licenses]
"{08472C9DDA17A372D}"=hex:5b,32,8f,0f,ef,81,a6,a4,41,06,54,88,7a,df,2d,d2,a8,\
  59,fb,00,aa,d7,25,f5,ec,8f,67,f4,73,d8,54,1f,66,56,19,fc,8b,33,ba,79,95,1e,\
  12,17,42,c5,2a,b7,38,cf,3a,9e,16,0c,f9,d9,98,56,73,f0,36,fb,1c,8c,27,04,2e,\
  79,ea,52,15,34,8f,16,84,be,7c,5f,6a,96,13,08,f4,ba,e6,b8,68,d4,8f,73,97,39,\
  2e,97,48,5d,6e,a7,c2,cb,36,1d,6c,8d,17,e3,bb,7d,39,ba,fb,65,db,15,af,d1,41,\
  70,99,f6,03,90,d7,27,89,dc,ff,f8,93,7e,54,cf,08,31,39,3e,ab,3d,b9,97,b6,e1,\
  3f,c8,23,52,8d,cf,18,c4,4c,f6,2a,9d,b1,eb,23,9d,ec,1b,ee,1f,ca,21,a7,b5,de,\
  7e,d9,80,26,4a,3f,9f,8f,bf,7f,55,cb,90,22,98,58,ea,ae,98,13,0e,1a,40,d2,22,\
  48,a9,13,82,64
This is the conversion
Code: [Select]
[Process]
RegHiveLoad,Tmp_Default,%RegDefault%
RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},5b,32,8f,0f,ef,81,a6,a4,41,06,54,88,7a,df,2d,d2,a8,59,fb,00,aa,d7,25,f5,ec,8f,67,f4,73,d8,54,1f,66,56,19,fc,8b,33,ba,79,95,1e,12,17,42,c5,2a,b7,38,cf,3a,9e,16,0c,f9,d9,98,56,73,f0,36,fb,1c,8c,27,04,2e,79,ea,52,15,34,8f,16,84,be,7c,5f,6a,96,13,08,f4,ba,e6,b8,68,d4,8f,73,97,39,2e,97,48,5d,6e,a7,c2,cb,36,1d,6c,8d,17,e3,bb,7d,39,ba,fb,65,db,15,af,d1,41,70,99,f6,03,90,d7,27,89,dc,ff,f8,93,7e,54,cf,08,31,39,3e,ab,3d,b9,97,b6,e1,3f,c8,23,52,8d,cf,18,c4,4c,f6,2a,9d,b1,eb,23,9d,ec,1b,ee,1f,ca,21,a7,b5,de,7e,d9,80,26,4a,3f,9f,8f,bf,7f,55,cb,90,22,98,58,ea,ae,98,13,0e,1a,40,d2,22,48,a9,13,82,64
RegHiveUnLoad,Tmp_Default
I need it to read the registry in the plugin and write the correct
values, because everytime the software is updated you need
a new license. So this is how I wrote it in the plugin, but it doesn't
work
Code: [Select]
RegHiveLoad,Tmp_Default,%RegDefault%
If,EXISTREGKEY,HKLM,Software\Licenses,CurrentConfiguration,Begin
  RegRead,HKLM,Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
  RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
End
RegHiveUnLoad,Tmp_Default
I tried this also
Code: [Select]
RegHiveLoad,Tmp_Default,%RegDefault%
If,EXISTREGKEY,HKCU,Software\Licenses,CurrentConfiguration,Begin
  RegRead,HKCU,Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
  RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
End
RegHiveUnLoad,Tmp_Default
      :scooter:

Re: RegCPE (Reg Converter PE)
« Reply #63 on: August 20, 2016, 08:21:43 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7183
Hi Prz42

Only a guess, maybe you forget System,REGREDIRECT,64

not tested, check this:

Code: [Select]
RegHiveLoad,Tmp_Default,%RegDefault%
Set,%TeraByteKey%,-
//--
If,ExistRegKey,HKLM,Software\Licenses,CurrentConfiguration,Begin
  RegRead,HKLM,Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
  RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
End
//--
If,%TeraByteKey%,Equal,-,Begin
If,ExistRegKey,HKCU,Software\Licenses,CurrentConfiguration,Begin
  RegRead,HKCU,Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
  RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
End
End
//----
If,%TeraByteKey%,Equal,-,Begin
System,REGREDIRECT,64
//--
If,ExistRegKey,HKLM,Software\Licenses,CurrentConfiguration,Begin
  RegRead,HKLM,Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
  RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
End
//--
If,%TeraByteKey%,Equal,-,Begin
If,ExistRegKey,HKCU,Software\Licenses,CurrentConfiguration,Begin
  RegRead,HKCU,Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
  RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
End
End
//--
System,REGREDIRECT,OFF
End
//-
RegHiveUnLoad,Tmp_Default
//-
If,%TeraByteKey%,Equal,-,Echo,"TeraByteKey not found"

:turtle:

Re: RegCPE (Reg Converter PE)
« Reply #64 on: August 20, 2016, 04:35:57 PM »

Prz42

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2014
  • Posts: 431
Hi Prz42

Only a guess, maybe you forget System,REGREDIRECT,64

not tested, check this:
:turtle:
That works in Version 2 of TeraByte, but unfortunately not in version 3.

Re: RegCPE (Reg Converter PE)
« Reply #65 on: August 21, 2016, 12:12:57 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7183
Hi Prz42,

I figured out,
your mistake is CurrentConfiguration !?
If,EXISTREGKEY,HKLM,Software\Licenses,CurrentConfiguration

there is no such key on your exampel ?!
 I do not know why you used this, maybe a mistake from a copy paste from another plugin ....


Here is fixed:

Code: [Select]
RegHiveLoad,Tmp_Default,%RegDefault%
Set,%TeraByteKey%,-
//--
If,ExistRegKey,HKLM,Software\Licenses,{08472C9DDA17A372D},Begin
  RegRead,HKLM,Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
  RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
End
//--
If,%TeraByteKey%,Equal,-,Begin
If,ExistRegKey,HKCU,Software\Licenses,{08472C9DDA17A372D},Begin
  RegRead,HKCU,Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
  RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
End
End
//----
If,%TeraByteKey%,Equal,-,Begin
System,REGREDIRECT,64
//--
If,ExistRegKey,HKLM,Software\Licenses,{08472C9DDA17A372D},Begin
  RegRead,HKLM,Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
  RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
End
//--
If,%TeraByteKey%,Equal,-,Begin
If,ExistRegKey,HKCU,Software\Licenses,{08472C9DDA17A372D},Begin
  RegRead,HKCU,Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
  RegWrite,HKLM,0x3,Tmp_Default\Software\Licenses,{08472C9DDA17A372D},%TeraByteKey%
End
End
//--
System,REGREDIRECT,OFF
End
//-
RegHiveUnLoad,Tmp_Default
//-
If,%TeraByteKey%,Equal,-,Echo,"TeraByteKey not found"

:turtle:

 

Powered by EzPortal