Tamir Gefen
Tamir Gefen

Reputation: 1126

How to save installation path to a file during installation?

My application is installed by InnoSetup. The user may change the installation folder when he starts install the application.

I'd like to store the installation path right after the user decided about it (during the installation process), into an INI file (My application holds an INI file that is stored in the roaming folder).

Is that possible? Can you tell me how to?

Thank you

Upvotes: 1

Views: 1007

Answers (1)

TLama
TLama

Reputation: 76693

Yes, it is possible. You can simply add an [INI] section entry like this into your script. There you can pass the {app} constant, which holds the selected directory path:

[INI]
Filename: "MyProg.ini"; Section: "InstallSettings"; Key: "InstallPath"; String: "{app}"

Upvotes: 1

Related Questions