Copy files for each user - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

JeeCay
Posts: 7
Joined: Wed Jun 08, 2011 3:37 pm
Location: Germany

Copy files for each user

Hello everybody,

This is my first post in the AI forum, besides that these are my first steps with the Advanced Installer, so I hope my questions are not too dumb :wink:
I'm working at Java Runtime Environment 6 Update 26 (imported the MSI to AI). I try to copy a file to user specific location and tried to do it like done in this sample:
http://www.advancedinstaller.com/forums ... =2&t=10074
But that did not worked for me, so I used this method:
http://www.advancedinstaller.com/user-g ... -file.html
Now I copy a file named "deployment.properties" to "C:\users\<username>\Appdata\\LocalLow\Sun\Java\Deployment". This works fine with the user who runs the MSI, but I want this file to be copied for every user who will log on. How can I do that?
We have a software distribution via network, the software will be installed with an "installtion user" (with administrative rights) during the "normal" user (without administrative rights) is logged on - is it possible to copy this user specific file into the user profile folder from the user who is logged on (and not the one who installs the software)?

Thanks for your help!

PS: Please don't bother about my english - I'm from Germany :)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Copy files for each user

Hi,

Unfortunately this is not supported by Windows Installer. If you need to make a file accessible to all users, you must install it in a per-machine location. For example, you can install it in:

Code: Select all

C:\ProgramData\Sun\Java\Deployment
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JeeCay
Posts: 7
Joined: Wed Jun 08, 2011 3:37 pm
Location: Germany

Re: Copy files for each user

Many thanks for your fast reply. :)
I will try that and hope that Java will work with that. Otherwise we have to use our software distrinution for the user part...

Return to “Common Problems”