Reputation: 57
I am making an inno setup script. My setup really needs the user to choose to two customized install locations.
But there is only one {app} variable in inno.
Our software is an audio plugin software, the common way in this field is to choose one location for the program and the other location for audio sample/data (which is very large so users usually want to install at a dedicated place for storage and also performance purpose).
Is there any way to get around this condition?
Thanks a lot!
Upvotes: 1
Views: 2946
Reputation: 24253
Take a look at the included CodeDlg.iss
example that shows how to add an extra page for a data directory and hwo to use that value in [Code]
.
Upvotes: 2
Reputation: 5472
There are many other variables (Directory Constants) which you can use, most common ones:
{app} - The application directory (user chooses this derectory in Wizard dialog) You can create subdirectories like {app}\Data
{win} The system's Windows directory.
{sys} The system's System32 directory.
{pf} Program Files.
{cf} Common Files.
And many, many others.
The modern installers store application in one directory - {app} and user's files in every user's custom directory - e.g. {localappdata}.
And if this is still not enough you can create your own dialog (wizard page) that contains edit boxes and Browse buttons for selecting directories.
Use function CreateInputDirPage()
for this purpose.
See manual - Pascal Scripting: CreateInputDirPage for more info.
Upvotes: 3