Link to home
Start Free TrialLog in
Avatar of Flounder
Flounder

asked on

Need local IP Address in Setup.exe Command

How do I gather and add the local Windows Server ip address to an application installation command.

For example:

setup.exe /s /z "--path=c:\\program files\\application\\new--localip=192.1.1.1"

Basically, I need to get the local ip address and enter it in "--localip=..........

Any assistance would be great appreciated.
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Flounder
Flounder

ASKER

NVIT - thank you for the quick response; unfortunately, I got sidetracked on another project (that never happens).

How do I run the command? Create a script?
> Create a script?
1. Start Notepad or other text editor. I like to install and use Notepad++
2. Copy the code I posted.
3. Save it as test.bat - or whatever name you like. Just include the .bat extension

> How do I run the command?
1. In Windows Explorer, open the folder containing test.bat
2. Hover mouse over the folder. Press <Shift> key and Right-MouseButton at same time. Pick "Open command window here". This opens a CMD window.
3. Type: test.bat
Worked. Thank you.

Just an fyi...how would modify this for powershell?