REG_EXPAND_SZ How can I add a registry entry of this type?

Got a problem you cannot solve? Try here.
ecold
Posts: 37
Joined: Wed Nov 23, 2005 10:38 am

REG_EXPAND_SZ How can I add a registry entry of this type?

Post by ecold »

I need to add the following registry entry. How can I do this?

[HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\11.0\\Word\\Options]

"STARTUP-PATH"=hex(2):43,00,3a,00,5c,00,4d,00,61,00,73,00,74,00,65,00,72,00,4c,\ 00,61,00,79,00,6f,00,75,00,74,00,5c,00,53,00,54,00,41,00,52,00,54,00,55,00,\ 50,00,5c,00,00,00

If I can't do this, then I have to find an installer that will.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

If you use this prefix in the value field:

Code: Select all

#%
You should be able to create REG_EXPAND_SZ values.

Also, this prefix:

Code: Select all

#x
denotes REG_BINARY values.

And finally, using this sequence within the value:

Code: Select all

[~]
creates a REG_MULTI_SZ, the sequence indicates a "new line".
ecold
Posts: 37
Joined: Wed Nov 23, 2005 10:38 am

REG_EXPAND_SZ How can I add a registry entry of this type?

Post by ecold »

Thank you, I'll try this. This will make all the difference in the world. I wish it were documented in the help file.
ecold
Posts: 37
Joined: Wed Nov 23, 2005 10:38 am

REG_EXPAND_SZ How can I add a registry entry of this type?

Post by ecold »

Ok, if my value is STARTUP-PATH what should my full value be? In what sequence? The data is a path but is stored as a hex value.

#% #x [~] STARTUP-PATH

the path is C:\\MasterLayout\\ but in hex appears like this:

"STARTUP-PATH"=hex(2):43,00,3a,00,5c,00,4d,00,61,00,73,00,74,00,65,00,72,00,4c,\ 00,61,00,79,00,6f,00,75,00,74,00,5c,00,53,00,54,00,41,00,52,00,54,00,55,00,\ 50,00,5c,00,00,00

Thanks for your help!!!
ecold
Posts: 37
Joined: Wed Nov 23, 2005 10:38 am

REG_EXPAND_SZ How can I add a registry entry of this type?

Post by ecold »

Sorry, the path (data field) is this:

C:\\MasterLayout\\STARTUP\\
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

I would try #%#xC:\\MasterLayout\\STARTUP\\
ecold
Posts: 37
Joined: Wed Nov 23, 2005 10:38 am

REG_EXPAND_SZ How can I add a registry entry of this type?

Post by ecold »

Thank you. I'll let you know if it doesn't work. But probably not till Monday.
ecold
Posts: 37
Joined: Wed Nov 23, 2005 10:38 am

REG_EXPAND_SZ How can I add a registry entry of this type?

Post by ecold »

Ok, that didn't work. I used the following:

#%#xC:\\MasterLayout\\STARTUPWas this incorrect? Any other ideas?
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

What exactly did it output?
ecold
Posts: 37
Joined: Wed Nov 23, 2005 10:38 am

REG_EXPAND_SZ

Post by ecold »

Everything installed, just no registry entry.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Could you send me the MSI file that was built as part of your setup?
ecold
Posts: 37
Joined: Wed Nov 23, 2005 10:38 am

REG_EXPAND_SZ Just the msi file?

Post by ecold »

Forget the PM, The file however is 20MB. I don't think it will go through email. Can I upload it FTP or something?
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

You can try www.yousendit.com if you do not have a server to post the file on.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

RE: PM.
NOT the entire file. JUST the MSI file which should be a LOT smaller.
ecold
Posts: 37
Joined: Wed Nov 23, 2005 10:38 am

REG_EXPAND_SZ

Post by ecold »

I sent the file. Also, there was a registry entry which you can see in the screen shot. Also below is what the correct entry should look like.
Post Reply