IPB

Welcome Guest ( Log In | Register )

Recommended
BootDisk.com

Active Users

 
Reply to this topicStart new topic
Hive_Unload Syntax, No need any parameter
pedrole15
post Aug 24 2008, 10:23 PM
Post #1


Advanced Member
***

Group: .script developer
Posts: 412
Thank(s): 14
Joined: 18-August 06
Member No.: 183


France


I see all people using Hive_Unload with a parameter but it is not required
The syntax is simply:
Hive_Unload

But you can add a parameter just to make the code more easy to understand

Pedro
Go to the top of the page
 
+Quote Post
The Following 1 Users Say Thank You to pedrole15 For This Useful Post:
Nuno Brito
Galapo
post Aug 24 2008, 10:53 PM
Post #2


Advanced Member
***

Group: .script developer
Posts: 1,783
Thank(s): 86
Joined: 16-July 06
From: Sydney
Member No.: 11


Australia


I wasn't aware of that. Thanks for the notice, Pedro.

Regards,
Galapo.
Go to the top of the page
 
+Quote Post
Nuno Brito
post Aug 24 2008, 11:29 PM
Post #3


Advanced Member
***

Group: .script developer
Posts: 6,137
Thank(s): 127
Joined: 13-July 06
From: Azores
Member No.: 1


Portugal


Updated registry tutorial as well: http://www.boot-land.net/forums/?showtopic=5518

Would you detail the exact syntax for reg_del as well?

I'm trying to document as much as possible for future reference.

Thanks.

(IMG:../forums/style_emoticons/default/smile.gif)
Go to the top of the page
 
+Quote Post
pedrole15
post Aug 24 2008, 11:44 PM
Post #4


Advanced Member
***

Group: .script developer
Posts: 412
Thank(s): 14
Joined: 18-August 06
Member No.: 183


France


QUOTE (Nuno Brito @ Aug 24 2008, 11:29 PM) *
Updated registry tutorial as well: http://www.boot-land.net/forums/?showtopic=5518

Would you detail the exact syntax for reg_del as well?

I'm trying to document as much as possible for future reference.

Thanks.

(IMG:../forums/style_emoticons/default/smile.gif)

Reg_Del like Reg_Add is defined only in Sript.project
CODE
reg_add=RegWrite,"HKLM"
reg_del=RegDelete,"HKLM"

So syntax is :
Reg_Del,Section,Key

(IMG:../forums/style_emoticons/default/cheers.gif)
Pedro
Go to the top of the page
 
+Quote Post
The Following 1 Users Say Thank You to pedrole15 For This Useful Post:
Nuno Brito
Nuno Brito
post Aug 25 2008, 08:48 AM
Post #5


Advanced Member
***

Group: .script developer
Posts: 6,137
Thank(s): 127
Joined: 13-July 06
From: Azores
Member No.: 1


Portugal


Thank you, I've added the missing syntax.

(IMG:../forums/style_emoticons/default/ok.gif) (IMG:../forums/style_emoticons/default/smart.gif)
Go to the top of the page
 
+Quote Post
psc
post Aug 25 2008, 11:57 AM
Post #6


Guru
***

Group: .script developer
Posts: 5,404
Thank(s): 83
Joined: 14-July 06
From: Korschenbroich
Member No.: 3


Germany


QUOTE (pedrole15 @ Aug 24 2008, 11:23 PM) *
I see all people using Hive_Unload with a parameter but it is not required
The syntax is simply:
Hive_Unload

But you can add a parameter just to make the code more easy to understand

Pedro

And what happens, if two hives are open simultaniously:
Hive_Load,HKU
Hive_Load,HKLM
...
...
Hive_Unload,???
Hive_Unload,???

With 'classic' syntax this can be done.

Peter
Go to the top of the page
 
+Quote Post
Nuno Brito
post Aug 25 2008, 12:15 PM
Post #7


Advanced Member
***

Group: .script developer
Posts: 6,137
Thank(s): 127
Joined: 13-July 06
From: Azores
Member No.: 1


Portugal


If only a hive is loaded it should unload the only hive available.
---

If more than one hive is loaded then the unload function should mention which hive.

---------------

Otherwise we can as well just allow one hive at a time.

Don't really see much inconvenience, in the the scripts where multiple hives are loaded it also becomes a bit more difficult to keep the proper registry data organized and understandable for other developers.

The current rawreg code should also be adapted to support multiple hives if this is desired.

---

Maybe this topic should be moved to the development section?

http://www.boot-land.net/forums/index.php?showforum=7 (IMG:../forums/style_emoticons/default/huh.gif)
Go to the top of the page
 
+Quote Post
pedrole15
post Aug 25 2008, 12:26 PM
Post #8


Advanced Member
***

Group: .script developer
Posts: 412
Thank(s): 14
Joined: 18-August 06
Member No.: 183


France


QUOTE (psc @ Aug 25 2008, 11:57 AM) *
And what happens, if two hives are open simultaniously:
Hive_Load,HKU
Hive_Load,HKLM
...
...
Hive_Unload,???
Hive_Unload,???

With 'classic' syntax this can be done.

Peter

It 's not possible for now
Is it necessairy to have this ?

Pedro

Go to the top of the page
 
+Quote Post
psc
post Aug 25 2008, 12:34 PM
Post #9


Guru
***

Group: .script developer
Posts: 5,404
Thank(s): 83
Joined: 14-July 06
From: Korschenbroich
Member No.: 3


Germany


QUOTE (pedrole15 @ Aug 25 2008, 01:26 PM) *
Is it necessairy to have this ?

Technically I do not see any situation where it is necessary.

But I could imagine that a script programmer (nowhere described as forbidden) opens all hives at script start and closes them as script exit.

Or: The easiest way to copy some values from one hive to another one: have both open simultaniously.

But don't worry. I think that reaction is necessary on the first real complain, when there is no workaround.

Peter
Go to the top of the page
 
+Quote Post
wendy
post Sep 4 2008, 07:23 AM
Post #10


Advanced Member
***

Group: Lady
Posts: 101
Thank(s): 13
Joined: 16-July 06
From: one mile from the QR main line
Member No.: 13


Australia


I normally load/unload hives via reg.exe or regina.exe. In either case, you need to point to the hive being loaded/unloaded, since Windows itself loads hives.


eg reg load HKLM\setup g:\winxp\i386\setupreg.hiv
loads this hive to HKLM\setup

eg: reg unload HKLM\setup
unloads whatever hive is mounted here.



Go to the top of the page
 
+Quote Post
« Next Oldest · Tutorials · Next Newest »
 

Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Display Mode: Standard · Switch to: Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum

RSS Lo-Fi Version Time is now: 12th October 2008 - 08:51 AM

W3C XHTML • © 2008 Boot Land • All rights reserved • W3C CSS