cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
3X-Man
Level 6

Default install dir and magic folder

Hi,

I have an installer that have to install to a specific directory.
I find the directory (absolute path) using Custom Code and setting
a variable to it $MY_ROOT_DIR$
In the IA IDE, I want to set the Default Install Folder (see attached picture).

Is there a better way than using a $USER_MAGIC_FOLDER_XX$?
It's not very clean because the magic folder must not be set.

How the magic folders can be set?
Is it possible from the IDE or only through the API in a custom code?

Thanks,

X.
Labels (1)
0 Kudos
3 Replies
pv7721
Level 20

3X-Man wrote:
Hi,

I have an installer that have to install to a specific directory.
I find the directory (absolute path) using Custom Code and setting
a variable to it $MY_ROOT_DIR$
In the IA IDE, I want to set the Default Install Folder (see attached picture).

Is there a better way than using a $USER_MAGIC_FOLDER_XX$?
It's not very clean because the magic folder must not be set.

How the magic folders can be set?
Is it possible from the IDE or only through the API in a custom code?

Thanks,

X.


Usually you choose Programs Folder on Windows platforms (that should correspond to C:\Program Files) Is there a special need for having the default install in another magic folder?
0 Kudos
3X-Man
Level 6

pv7721 wrote:
Usually you choose Programs Folder on Windows platforms (that should correspond to C:\Program Files) Is there a special need for having the default install in another magic folder?


Yes the need is because the previous software can be installed anywhere 😉
Not only in C:\Program Files or D:\Program Files but M:\ as well.

X.
0 Kudos
amarkov
Level 2

On Windows I have to access (and therefore assign values to $USER_MAGIC...)special folders like "common documents" or "common desktop".
These can be retrieved by a "SHGetFolderPath()" API call whith appropriate CSIDL_xxx value.
Is it possible in IA2009?
0 Kudos