How to add a folder\file to 'all users' Application Data
I need to add a file to all users on pc's to appear in the path C:\Documents and Settings\%username%\Application Data\etc
This is (still) an XP fleet and we're using SCCM2007.
I thought I'd make an msi captured from making the folder in C:\Documents and Settings\Default User\Application data and deploy that, then when a user logs on, it'll self heal\active install and build in the folder\file in their profile (using the command msiexec /fauvs do deploy).
My theory was wrong, this doesn't work.
Where should I make this folder so it goes to all users Application Data?
Is my theory wrong? Should I be using a batch file and do something like:
??? Thanks for any advice here.
Q: What is the exact location of the file?
there are a couple of predefined folders you can use in a MSI:
[LocalAppDataFolder] = property is the full path to the file system directory that serves as the data repository for local (non-roaming) applications.
[AppDataFolder] = property to the full path of the Roaming folder for the current user
[CommonAppDataFolder] = the full path to the file directory containing application data for all users
So step 1 :
Place the file in the correct folder (see above) in your MSI
because you want to be sure that the file will be installed for every user that logs on to the machine, you will need to use Active Setup. http://www.itninja.com/blog/view/appdeploy-articles-activesetup