×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Registry Query in Wise

Registry Query in Wise

Registry Query in Wise

(OP)
Hello!
I need help querying the registry using the Wise Windows Installer.
I need to look for the ip address of the pc and replace it with another one. The problem is the IP address location in the registry is not static... it is different in all the machines although the key name is always the same.

Thank you in advance for your help.
 

RE: Registry Query in Wise

Why couldn't you use a call to the Internet Protocol Helper (IP Helper) API. I would try tuse this versus make the change in the registry.

my 2 cents

RE: Registry Query in Wise

How does one capture the registry changes/additions that go with an application and pull them into a *.wsi package?   We've been using InControl to generate a list.  Are there any established methods for doing this?

RE: Registry Query in Wise

If your clients and your version of WfWI support VBScript then something like this would work...

CODE

On Error Resume Next
Dim ipAddress, oWMISvc, items, item, i
Set oWMISvc = GetObject("winmgmts:\\.\root\cimv2")
Set items = oWMISvc.ExecQuery("Select * from Win32_NetworkAdapterConfiguration",,48)
For Each item in items
    if isarray(item.IPAddress) then
        for i = lbound(item.IPAddress) to ubound(item.IPAddress)
           ipAddress = ipAddress & item.IPAddress(i) & vbcrlf
         next
    end if
 Next
Session.Property("IPADDRESS") = ipAddress

You can run the script then use the property IPADDRESS.

HtH,

Rob

-Focus on the solution to the problem, not the obstacles in the way.-

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close