markr002
Posts: 21
Joined: Mon Dec 20, 2010 5:38 pm

Per-machine appdata location

Hi,

I'm a little confused about how Advanced Installer resolves the application data folder when the installation type is set to "per-machine when admin, per-user otherwise".

Specifically, files written to the "application data" folder (in the Files and Folders configuration area) are always written as per-user, even if the install type is per-machine. Why doesn't the installation automatically resolve the application data folder to "common application data" in per-machine installation cases?

Right now, I'm installing configuration files into the "application data" folder. When the installation type is per-user, I want these config files to also be user-specific. However, if the install type is "per-machine", then I want these config files to apply to all instances of my software on the machine. How do I best accomplish this goal using Advanced Installer?

BTW, I'm running AI 11.1 (Enterprise Edition).
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Per-machine appdata location

Hello,

In order to allow the user to choose the installation type at run-time, please follow our How do I make the package install per-user or per-machine? How To's with related information for hints and guidance.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
markr002
Posts: 21
Joined: Mon Dec 20, 2010 5:38 pm

Re: Per-machine appdata location

Sorry, but I don't see how that FAQ addresses my question. It deals with the application and shortcut folders, but doesn't address the application data folder. Which is the entire point of my question.

Am I missing something?

- Mark R.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Per-machine appdata location

Hello Mark,

As you can see in the Paths of the folders in the "Files and Folders" Page article, the AppDataFolder property is always a per-user location, while the CommonAppDataFolder is a per-machine location. These folders are predefined for Windows Installer. When the installation package runs, Windows Installer will automatically resolve their paths according to the target machine's configuration.

You can take also take a look on the Installation Context article which may be useful to you.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”