Page 1 of 1 1
Topic Options
#201365 - 2011-01-12 06:23 PM Registry writevalue correct syntax
AdamH Offline
Just in Town

Registered: 2011-01-10
Posts: 4
Loc: UK
Hi Newbie here,

I'm trying to write a registry value via kix to add a custom form in outlook, this adds a new tab to an appointment.

The orginal .reg file that works contains the line:

[HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Compose]
"IPM.Appointment"=hex:49,50,4d,2e,41,70,70,6f,69,6e,74,6d,65,6e,74,2e,43,6f,6e,64,65,63,6f,0,0

I'm trying to get that to translate into kix, so far the best I've got is:

AddKey("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Compose")
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Compose","IPM.Appointment","49,50,4d,2e,41,70,70,6f,69,6e,74,6d,65,6e,74,2e,43,6f,6e,64,65,63,6f,0,0","REG_BINARY")

But this doesnt work. Whilst the value is being written to the registry its not correct & causes outlook to throw an error when trying to add an appointment:

Any ideas on how to tweak it please ?

Many thanks.

Top
#201367 - 2011-01-12 09:50 PM Re: Registry writevalue correct syntax [Re: AdamH]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
As far as I know you should remove all commas from the data your are trying to write.

 Code:
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Compose", "IPM.Appointment", "49504d2e4170706f696e746d656e742e436f6e6465636f00", "REG_BINARY")
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#201373 - 2011-01-13 12:14 PM Re: Registry writevalue correct syntax [Re: Mart]
AdamH Offline
Just in Town

Registered: 2011-01-10
Posts: 4
Loc: UK
Fantastic, just the ticket, many thanks for your help \:\)
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.049 seconds in which 0.021 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org