Archive: Reading from a file (runtime)?


Reading from a file (runtime)?
I want to create an installer which can run in silent mode and in GUI mode. The GUI mode installer has quite a few screens, and I want to capture the data required through either command line options (is that possible?) or through reading a file at runtime. I don't want to hard code defaults into the installer at compile time because machine configurations can change.

Is it possible to read from a file at runtime? Are there any examples of this? If not, is it possible to read any other command line options other than /D and /S in silent mode? Is it possible to read in environment variables?

Thanks in advance!


I think you should use a ini File in which the psoperties can be inserted and which is read if the installer is run at runtime...

for this you have to use ReadINIstr to read from the INI

hope this Helps

greetz Dave


Check out my Multilingual Example. (Link below).