PDA

View Full Version : How to get the IP Adress with InstallScript?



sandyellow
03-09-2006, 06:26 AM
1. How to get the IP Adress with InstallScript?

In my project, i have to set URL into the Web.config when installing.
the URL likes " http://myIP/myLocation/Login.aspx "

and i don't How to get the IP Adress with InstallScript.

2. Ican the IP by using C#. But failed to send the IP back into the InstallScript. I don't know how to call the dll made by C#(failed with UseDLL)
Can someone help me out?

Thanks

RobertDickau
03-09-2006, 08:02 AM
Perhaps see www.installsite.org > InstallScript Samples > Network for examples of getting the IP address with InstallScript.

(InstallShield 11.5 introduced the CoCreateObjectDotNet function, with which you can directly call methods from your .NET assembly, but earlier versions require a C-callable DLL with UseDLL.)