/build/static/layout/Breadcrumb_cap_w.png

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.


0 Comments   [ + ] Show comments

Answers (4)

Answer Summary:
Posted by: piyushnasa 11 years ago
Red Belt
3

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
Posted by: rock_star 11 years ago
4th Degree Black Belt
1

I think it can be achieved through vbscript. ( Not sure if we run script from KACe console) .

https://sites.google.com/site/scriptingcenter/Copyfile.vbs.txt?attredirects=0&d=1

Posted by: jagadeish 11 years ago
Red Belt
0

Do you have any advertised shortcut in your application?

Posted by: SMal.tmcc 11 years ago
Red Belt
0

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ