How to get the local IP address using Inno Setup

前端 未结 2 1065
盖世英雄少女心
盖世英雄少女心 2020-12-06 11:29

How can I get user\'s local IP address using Inno Setup?

I thought about using Win32 API GetIpAddrTable, but it is unclear how to make the adjustment. <

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-06 11:35

    Build an external DLL that returns a list of IP addresses and read that list in Inno Setup script.

    In this article you will find code example how to build a DLL and how to call it in the InnoSetup script.

    In this SO post you will find how to get IP addresses using Indy library or plain WinApi.

提交回复
热议问题