简体   繁体   English

Inno Setup / ISTool:检测本地计算机的IP地址

[英]Inno Setup / ISTool: Detect local computer's IP address(es)

In the [code] section of my ISS script I want to detect the local machine's IP addresses. 在我的ISS脚本的[代码]部分中,我要检测本地计算机的IP地址。 What is the most elegant way to accomplish this? 实现此目的的最优雅的方法是什么? Is there a Win32 DLL I can import via "external" ? 我可以通过“外部”导入Win32 DLL吗?

I haven't seen any prepackaged DLLs that you could call but writing one should be too difficult. 我还没有看到可以调用的任何预打包DLL,但是编写一个DLL太困难了。 I found this post on the InnoSetup newsgroup: http://news.jrsoftware.org/news/innosetup.code/msg09240.html that might give you a start. 我在InnoSetup新闻组上找到了这篇文章: http : //news.jrsoftware.org/news/innosetup.code/msg09240.html ,这可能会让您入门。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM