Announcement

Collapse
No announcement yet.

getting IP with multiple NIC's

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • getting IP with multiple NIC's

    Hello all,

    Perhaps you could asist me with this small problem I'm having...

    I'm creating installations for a couple of programs which are to go onto computers with 2 network cards. Some of these programs need to have configuration files setup with the IP Number of the computer. I know that the %LANIP% variable provides access to the IP Number for the computer, but is there any way of extracting the IP Number's for both cards? I currently assume this is not possible and that %LANIP% is the IP of the primary card (when what I really need is the IP of the secondary card) when there are multiple cards.

    Is my assumsion correct? Or is there some way of getting the IP Number for other cards using SetupFactory which I'm not aware of?

    [currently using 6.0.1.2]

    --
    Introvert

  • #2
    Re: getting IP with multiple NIC's

    You could try getting that information from the Registry. A bit of searching on Google should turn something up.
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: getting IP with multiple NIC's

      Thanks, I was able to find the right keys and values in the registry. I wasn't able to get SetupFactory to read them for some reason. not sure why it wasn't able to read stuff out of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Linkage\Bind etc...

      While I was pondering this though other factors intervened and decided that the user should enter the IP number during the installation. Which is very easy to do, and I'm using LANIP as the default value.

      Thankyou for the help though.

      Next I need to find a way to revert SetupFactory to 6.0 rather than 6.0.1.2... have to do a build using old files and I've noticed some problems with the old sf6 files under 6.0.1.2 - primarily some conditionals which used to work, but no longer do. And some Edit boxes don't appear to be setting their values correctly [ie: at all] in some cases.

      I'll do the reversion by reinstalling unless I stumble across something clever before doing that.

      --
      Introvert

      Comment


      • #4
        Re: getting IP with multiple NIC's

        I'm sorry, there is no way to revert back to previous builds of the product other than reinstalling if you have a previous build. However I highly recommend that you do not do this as previous versions do contain bugs which means that your install may appear to be working correctly when in fact it is not. Without seeing the actions it's hard to say what the problem is, however they are likely very minor and very easy to fix, so I would recommend taking the time to look at these problem areas and making the modifications.

        It may help to read through the ReadMe file to see all of the fixes and modifications that have been made to the product and this will likely shed some light on what may be the cause. A good debugging tool is the use of Message Box actions to display messages at different points in the install and to display the contents of variables.

        Hope that helps. If you have any questions about why something is not working, feel free to post back and we'll assist you the best we can.

        Comment


        • #5
          Re: getting IP with multiple NIC's

          Actually that was more or less my initial reaction. However, I was instructed to make a build using the old files. Any future realeases will be using updated files, and v6.0.1.2. And one of the old sf6 files, which in more resent versions has had a number of minor bugs fixed, doesn't work well with 6.0.1.2. The installers it's producing may not be working correctly, but it gets the job done. When built using 6.0.1.2 and that older sf6 file the installer may be working correctly but it not getting the job done. So I reverted (reinstalled) for that one file... and immediately afterwards reapplied the patch so I could build the next product which required 6.0.1.2 [img]/ubbthreads/images/icons/smile.gif[/img].

          Actually, I have already managed to fix most of those minor problems. I have read through the various updates and improvements [and I was very pleased to see and adopt a "wait for service to stop" addition to the stop service action - busy waits are such a horrible way of doing things].

          Heh, I told them there were broken things in the files they wanted built into an installer, but they insisted, and it eventually dawned on me that we do just have to supply what's asked for sometimes, rather than something that actually works properly... I had to have it explained to me a few different ways first though. [img]/ubbthreads/images/icons/smile.gif[/img]

          --
          Introvert

          Comment

          Working...
          X