
CChong2 (Flexera) asked a question.
Read a setting from an .INI file
Gday folks,
I have a package that prompts the user for a setting, which is actually already contained in a .ini file on their workstations - I'd like to automate this step, so it reads the setting from the existing .INI file and passes it through to the installation. Anyone have any examples iof reading settings from .INI files using Installshield? My only other idea was to create a VBScript to set an environment variable.
Rgds
Paul
Search the InstallShield Help Library (Help >> Search) for the topic 'Built-in Function Index.' More specifically, here are several which may help. Also, at the bottom of the main articles often times you will find links to example articles which illustrate the use of the command.
GetProfInt - Returns an integer from an .ini file.
GetProfString - Returns a string from an .ini file.
GetProfStringList - Retrieves lists of key names and string values from an .ini file
Built-In Function Index:
http://helpnet.installshield.com/Robo/BIN/Robo.dll?tpc=/robo/projects/devstudio9helplangref/LangrefBuiltin_function_index.htm
GetProfInt:
http://helpnet.installshield.com/Robo/BIN/Robo.dll?tpc=/robo/projects/devstudio9helplangref/LangrefGetProfInt.htm
GetProfString:
http://helpnet.installshield.com/Robo/BIN/Robo.dll?tpc=/robo/projects/devstudio9helplangref/LangrefGetProfString.htm
GetProfStringList:
http://helpnet.installshield.com/Robo/BIN/Robo.dll?tpc=/robo/projects/devstudio9helplangref/LangrefGetProfStringList.htm