Need to copy file to all Users appdata.
I am installing an application that has a configuration file that it stores in each users appdata\Roaming folder on Windows 7. I want to copy a file over after the installation that already has the configuration settings. I can do this for one user at a time, but I need to be able to get it copied to all users.
I can put it in the Default User profile and that will copy it to any new profiles on each machine, but not existing profiles. The Public profile which works for desktop shortcuts and documents and that sort of thing has no appdata folder.
Any help would be greatly appreciated.
Answers (4)
use Active Setup and it is the best way to do it. have been sugesting it for years now.
~Piyush Nasa
~My Blog: http://msiworld.blogspot.com/
Comments:
-
I tried this this morning and it creates the entry under HKCU but does not bring over the StubPath or run the batch script that I pointed it to. I am new to this, not sure if I am doing something wrong. - WGM_Jeff 11 years ago
The "all users" profile is technically C:\ProgramData
the system profile is C:\Windows\System32\config\systemprofile
I would recommend what piyushnasa says or add an xcopy command to login script in domain for those users.
Comments:
-
I looked in the system profile in the path you provided and the file I need all users to have is there, but it is not loading in the profile for users in their appdata folder. - WGM_Jeff 11 years ago
-
sorry crossed my thoughts eariler, reread answer - SMal.tmcc 11 years ago
-
Yeah, the ProgramData folder will work for new users who log into the machine but does not do anything for existing users. My boss would rather I take care of all of this using KACE rather than use a login script, so I am trying to find a good way to get it done. - WGM_Jeff 11 years ago
-
if the file is not needed till they run the program, you can run a k1000 script to push out the file to the current users profile after login.
The best thing would be to get piyushnasa to work with you to get the bugs out of active setup.
We use kix scripting here for things like this. - SMal.tmcc 11 years ago -
Post a new question about active setup help and include your HK commands you are trying to use. There are a few experts on ActSetup on this site. - SMal.tmcc 11 years ago
-
Have a look at this blog post http://www.itninja.com/blog/view/appdeploy-articles-activesetup
It covers most of what you need to know. - andemats 11 years ago -
I got Active Setup working. I think there was a comma instead of a dot in the stub path. Thanks for all the help. - WGM_Jeff 11 years ago