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?

Postby ecold » Wed Nov 23, 2005 10:45 am

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: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Wed Nov 23, 2005 1:03 pm

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?

Postby ecold » Wed Nov 23, 2005 2:08 pm

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?

Postby ecold » Wed Nov 23, 2005 2:13 pm

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?

Postby ecold » Wed Nov 23, 2005 2:15 pm

Sorry, the path (data field) is this:

C:\\MasterLayout\\STARTUP\\

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Wed Nov 23, 2005 4:23 pm

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?

Postby ecold » Wed Nov 23, 2005 4:35 pm

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?

Postby ecold » Thu Dec 01, 2005 9:43 am

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

#%#xC:\\MasterLayout\\STARTUPWas this incorrect? Any other ideas?

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Dec 01, 2005 3:37 pm

What exactly did it output?

ecold
Posts: 37
Joined: Wed Nov 23, 2005 10:38 am

REG_EXPAND_SZ

Postby ecold » Thu Dec 01, 2005 3:43 pm

Everything installed, just no registry entry.

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Dec 01, 2005 3:46 pm

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?

Postby ecold » Thu Dec 01, 2005 3:54 pm

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: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Dec 01, 2005 3:56 pm

You can try www.yousendit.com if you do not have a server to post the file on.

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Dec 01, 2005 3:57 pm

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

Postby ecold » Thu Dec 01, 2005 4:10 pm

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.


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 121 guests