1

无论如何,我可以获取使用 INNOSETUP 安装安装应用程序的系统的 IP 地址吗?

4

1 回答 1

0

you can use this function:

Exec(ExpandConstant('{cmd}'), '/C ipconfig | findstr "IPv4"', '', 0,ewWaitUntilTerminated, ResultCode);

you will get IP address of the system

Windows:

C:\Users\LEo>ipconfig | findstr "IPv4"
IPv4 addr . . . . . . . . . . . . : 192.168.1.101
IPv4 addr . . . . . . . . . . . . : 192.168.0.82
于 2014-07-23T02:41:23.343 回答