There is an Ini file , it contains the path to the directory in which data received from the server will be saved.

When this file is installed, the user selects the directory where he wants to install it.

How to make so that when you change the directory, change or record the directory in the Ini file and create an additional directory for the data?

Example:

There is a line in the file, capturedFacesDestPath = "d:/temp/CapturedFaces" , when the user changes the installation directory, this line will be overwritten and an empty "СapturedFaces" directory will be created in the directory where the program will be installed?

  • How do you select the directory in the installer? - kot-da-vinci
  • I try to make a simple example and use the directory DefaultDirName = {pf} \ My Program. - Aleksey Timoshchenko

1 answer 1

Record the selected path can be done like this:

 [INI] Filename: "{app}\INIFile.ini"; Section: "SectionName"; Key: "capturedFacesDestPath"; String: "{MyDirName}" 
  • it turned out, thanks - Aleksey Timoshchenko