The scenario is that we have a client / server application with client installation, which is the boot machine using Inno Setup, which downloads the client from the server specified by the IP / port number. We would like to know if there is a server on the local network via UDP broadcasting, and you can write a console application that does this. The problem is how do we transfer information from the console application to the installer?
I can capture the return code, but it can only be int. As far as I can tell, the only functions for reading a file in Inno Setup are in the preprocessor, so we cannot read the file created at run time by the console application. The only thing I can think of is to return an int, where the first 4 digits are the position. and: in front of the port, and then analyze a value that seems hacky, flimsy and error prone, especially considering that I am not familiar with Inno Setup syntax / functions for constructing a string.
Any suggestions?
Davy8 source share