Title: Message
Well, I asked when I was at my end (or so I thought).  Then I figured it.
 
As a decimal value:
 
$InstallTime = $key->SetValue("ScheduledInstallTime", "0x003", REG_DWORD);
 
As a hex value:
 
$InstallTime = $key->SetValue("ScheduledInstallTime", pack("L",3), REG_DWORD);

Ended up NEEDING the hex value.

Thanks,

Matthew Allen

-----Original Message-----
From: Allen, Matthew (c) [mailto:[EMAIL PROTECTED]
Sent: Monday, April 19, 2004 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: TieRegistry - Dword

Hi all--

I am writing a script that uses tiereg to add values. I want to be able to add reg_dword values as a decimal and not as hex.

This causes the reg to report invalid value:

$InstallTime = $key->SetValue("ScheduledInstallTime", "00000000", REG_DWORD);

This works but only as hex:

$InstallTime = $key->SetValue("ScheduledInstallTime", pack("L",0), REG_DWORD);

Anyone know how I would write a dword value as a decimal or as 00000000?

Thanks in advance.

 

Matthew Allen

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to