Registries within Component Designer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

I am currently designing a component within Component designer and I would
like to add some registries.
The problem I am facing is that I can set the "value" correctly using
shortcuts like %11%\file1.sys for example but I cannot use the same shortcuts
for the "value name". I always get an error afterward. The value is accepted
but I receive an error when building the image.
Does anyone knows if it is possible to use these shortcuts for the value
name of the registry as well? If yes I would be more than happy to see a
solution for that...

Thanks a lot
 
Hi Brad,

I am sorry but I think I was a bit unclear in my details.
I did exactly the same than you and this is working fine. But if you look in
your first picture, you set the value to %12%\test.exe and the value name to
"test".
What I wanted to do is to use %12%\test.exe for the VALUE NAME, not the
value. And this is the problem I am facing currently. It looks like we can
use shortcuts like %12% for the value but not the value NAME.

Is there any way to do it because I currently have to set the full path like
C:... which is incorrect to me.

Thanks a lot.
 
Hi Hardy,

Sorry, I misread your original post. It looks like the valuename is added as
the literal string, even when using REG_EXPAND_SZ.

I'm curious about using paths in valuenames. Is this a requirement for
something third party? I know that this method is used alot in the registry
to manage installed versions of files and such, but maybe there is another
work around?

HTH,
Brad
 
Interesting problem. Typically, the shortcut notation is used when the OS is
going to boot from a different drive letter other than C - more specific
used within the TD and CD tools. Wouldn't %systemroot% work instead?

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit
 
That's a good idea Sean...

Would that work Hardy? Store your value as the literal string
%systemroot%\.... and then expand the value in your own code using the
environment on the device.

HTH,
Brad
 
It has always seemed that there are places to use the %12% and others where
the literals have to be used.

-Sean
 
Back
Top