What is "ValueName" for RunOnce items?

T

Tony

Hi,
I have an XPe project that builds a working XPe image for my target.
It requires a known static IP address so I have netshell included and
working, and I can manually set the IP address of my network card. It
will ultimately be a headless system though so I am trying to automate
the process of setting the static IP address.

To accomplish this, I'm trying to use Component Designer to set up
several RunOnce components. The first will execute
"rundll32 netshell.dll HrRenameConnection"
to set the names of all NICs. The second RunOnce component should
execute
"netsh interface ip set address <rest of my settings>"

Each of the components are set up for the most part - FilePath has the
executable, Arguments has the appropriate argument string, and Phase
settings are 8500 and 8501 respectively. I can't figure out what to
put for the field ValueName though. The help for RunOnce items says
this field should hold the name of the program to run, but I don't
know what that means. I tried entering the name of the EXE I was
running, and it compiled without errors but did not work. I looked
around but couldn't find any examples anywhere.

Any help is greatly appreciated. Thanks in advance.
- Tony H.
 
G

Gordon Smith \(eMVP\)

That's going to be the name of the registry value for your item. Just name
it something that makes sense to you. Your first one, for example, could be
"RenameConnection". The second one, for example, could be "SetAddress".

--Gordon Smith (eMVP)
 
K

KM

Tony,

I think XPE docs are pretty clear about the ValueName property: "Specifies the name of the program to run. In the registry, this is
the name of the REG_SZ value used to specify the program name.".

Btw, are you using RunOnce Request Resource? Then, how you're able to verify the FBA phase for the command (you mention 8500,8501)?
You may want to switch to FBA Generic command to have more flexibility and control over the command launch time (you may no need to
run the command many time on each reboot).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top