Page 1 of 2

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

Posted: Wed Nov 23, 2005 10:45 am
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.

Posted: Wed Nov 23, 2005 1:03 pm
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".

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

Posted: Wed Nov 23, 2005 2:08 pm
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.

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

Posted: Wed Nov 23, 2005 2:13 pm
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!!!

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

Posted: Wed Nov 23, 2005 2:15 pm
by ecold
Sorry, the path (data field) is this:

C:\\MasterLayout\\STARTUP\\

Posted: Wed Nov 23, 2005 4:23 pm
by sinan
I would try #%#xC:\\MasterLayout\\STARTUP\\

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

Posted: Wed Nov 23, 2005 4:35 pm
by ecold
Thank you. I'll let you know if it doesn't work. But probably not till Monday.

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

Posted: Thu Dec 01, 2005 9:43 am
by ecold
Ok, that didn't work. I used the following:

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

Posted: Thu Dec 01, 2005 3:37 pm
by sinan
What exactly did it output?

REG_EXPAND_SZ

Posted: Thu Dec 01, 2005 3:43 pm
by ecold
Everything installed, just no registry entry.

Posted: Thu Dec 01, 2005 3:46 pm
by sinan
Could you send me the MSI file that was built as part of your setup?

REG_EXPAND_SZ Just the msi file?

Posted: Thu Dec 01, 2005 3:54 pm
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?

Posted: Thu Dec 01, 2005 3:56 pm
by sinan
You can try www.yousendit.com if you do not have a server to post the file on.

Posted: Thu Dec 01, 2005 3:57 pm
by sinan
RE: PM.
NOT the entire file. JUST the MSI file which should be a LOT smaller.

REG_EXPAND_SZ

Posted: Thu Dec 01, 2005 4:10 pm
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.