Install files in each user's %APPDATA% - Advanced Installer Community
ogrishmania
Posts: 10
Joined: Tue Feb 10, 2015 3:47 pm

Install files in each user's %APPDATA%

I have to modify my existing msi installer in such way that it installs the files in each users %APPDATA% directory.
Example:
C:\Users\username1\AppData\Roaming\sample_app\files_to_copy_here (if username1 is executing the installer then it behaves like this - it copies the files to this path, like it should)
Now let's say username2 has exactly the same app installed but only for his user - so both username1 and username2 have the same app installed (pseudo)independently.
Now I want for username1 (if system admin) to be able to install the files for both(or all) users - username1 and username2 (path is the same, only the user is different).
I should probably mention that on 'Install Parameters' installation type is set to 'Per-machine only' but this doesn't do what I want.
Is what I mentioned here possible with Advanced Installer(12.3.1)?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Install files in each user's %APPDATA%

Hello,

In order to achieve this, please follow the steps from the Delivering a file to AppDataFolder\myfolder forum thread which debates this subject.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ogrishmania
Posts: 10
Joined: Tue Feb 10, 2015 3:47 pm

Re: Install files in each user's %APPDATA%

Salut Dan,

Short installer scope: the installer copies some plugin files for an app that already is installed. The plugin directory for that app is %APPDATA%/APP_NAME/Plugins

New tricky requirement:
- there are 2 or more users on the same machine
- one(or some) of them have that app installed
- one of the users who DOESN'T have that app installed must be able to install the plugin for all other users that have that app installed on that specific machine.

Note: Before this requirement I had(still have) a Launch Condition that let's the installer to proceed only if the app is found on the machine for that current user. So now I need to be able to find if that app is installed for ANY user on that machine and copy my files there.

Thanks for your support, Dan.
ogrishmania
Posts: 10
Joined: Tue Feb 10, 2015 3:47 pm

Re: Install files in each user's %APPDATA%

Is this only doable by a custom script? (bump)

Return to “Common Problems”