Jump to content











Photo
- - - - -

[Fixed] RegMulti,HKLM,Section,Key,DELETE,SubVal bug


  • Please log in to reply
8 replies to this topic

#1 olegpov

olegpov

    Frequent Member

  • .script developer
  • 309 posts
  • Location:Orel
  • Interests:BSD systems

Posted 06 March 2010 - 01:05 PM

RegMulti,HKLM,Section,Key,DELETE,SubVal Not correctly deletes value if it one.

How to reproduce:
1.Write down in registry of PE system such value:
Attached File  2010_03_06_15_52_17.jpg   32.91KB   6 downloads
2. Try to execute this code:
[main]

Title=CodeBox test

Description=Running custom commands



[variables]



[process]



Hive_Load,System

If,EXISTREGMULTI,HKLM,%reg%\ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318},UpperFilters,partmgr,begin

RegMulti,HKLM,%reg%\ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318},UpperFilters,DELETE,partmgr

end

If,EXISTREGMULTI,HKLM,%reg%\ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318},UpperFilters,partmgr,begin

RegMulti,HKLM,%reg%\ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318},UpperFilters,DELETE,partmgr

end

Hive_Unload
And you receive such result:
Attached File  2010_03_06_15_48_35.jpg   19.13KB   10 downloads

#2 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 06 March 2010 - 05:03 PM

nice finding olegpov :cheers: ,

And you receive such result:

and loaded hive stuck (can not be unloaded with wb) . wb should be closed to unload hive :cheers:.

well olegpov, new functions never tested (and test results ignored) since development asked us to test only the existant (before wb080) ones. :cheers:

Since you find first, Here is "found born death syntax" award :unsure: . :whistling:

#3 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 06 March 2010 - 06:07 PM

@Olegpov!

I cannot reproduce your issue.

Try this simple snippet:

[process]

RegHiveLoad,WB-Software,%Target_sys%\config\software

RegWrite,HKLM,0x7,WB-Software\psc,Bla,hi,NOWARN

RegMulti,HKLM,WB-Software\psc,Bla,DELETE,hi

RegHiveUnLoad,WB-Software
It works as it should work.

If you comment the DELETE line and run, there is an 0x7 entry

If you uncomment the DELETE line and run, you get an "Empty" 0x7 value.

Can you check what's the difference in your constellation?

Peter

EDIT: I found it!

It is an issue of If,EXISTREGMULTI ...

#4 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 06 March 2010 - 06:17 PM

great that you found it...

#5 olegpov

olegpov

    Frequent Member

  • .script developer
  • 309 posts
  • Location:Orel
  • Interests:BSD systems

Posted 06 March 2010 - 06:21 PM

@psc
Peter Try it:
RegHiveLoad,WB-Software,%Target_sys%\config\software

RegWrite,HKLM,0x7,WB-Software\psc,Bla,hi,NOWARN

RegMulti,HKLM,WB-Software\psc,Bla,DELETE,hi

RegMulti,HKLM,WB-Software\psc,Bla,DELETE,hi

RegHiveUnLoad,WB-Software
:whistling:

#6 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 06 March 2010 - 06:22 PM

psc, try this

RegHiveLoad,WB-Software,%Target_sys%\config\software

RegWrite,HKLM,0x7,WB-Software\psc,Bla,hi,NOWARN

If,EXISTREGMULTI,HKLM,WB-Software\psc,bla,hi,Begin

RegMulti,HKLM,WB-Software\psc,Bla,DELETE,hi

End

RegHiveUnLoad,WB-Software

have fun :whistling:

#7 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 06 March 2010 - 06:49 PM

Sorry!
I do not want to try anything because I told here that I SOLVED!

And maybe anywhen 'development' decides to publish the fix.

Currently it is not reasonable for me.
Here it works, but I do not have the time to test.

And Lancelote critisized correctly that untested versions should not be published.

When it is tested, I'll publish ASAP.

Peter

EDIT: @Olegpov: your sample works here ok

#8 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 06 March 2010 - 07:09 PM

Sorry!
I do not want to try anything because I told here that I SOLVED!

you edit you solved probably after our posts.

anyway, happy ending is good....


@ctmag
Be carelfull ctmag, things could be replied delusional for some outsiders, but it should not be for you. :whistling:

#9 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 06 March 2010 - 07:34 PM

Sometimes something crosses ...

And sometimes it seams to be reasonable to wait with comments "for some time" ...

Peter :whistling:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users