What's the best way to deploy files to user profiles?
I have to create an MSI of an application that must be assigned to computers in an Active Directory environment using group policy. The software in question requires absolutely that its configuration files are present in the user's application data folder. Of course when doing this, files in the MSI for the application data path go to C:\windows\system32\config\systemprofile\application data rather than any or all user's profiles.
I've experimented with the Active Setup, to run the MSI setting the StubPath key to msiexec /f {GUID}. Whilst this works, the app is quite large and a reinstall of the whole app to copy a couple of files seems inefficient. I've thought of running a batch file or second MSI from the StubPath -- but are these approaches to be recommended?
I've seen with certain MSIs such as Office, where the first time any particular user runs the software, Windows Installer pops up and completes the "user" part of the installation. This seems to be a different mechanism to Active Setup.
I would be grateful for any advice on the best way to achieve this.
I've experimented with the Active Setup, to run the MSI setting the StubPath key to msiexec /f {GUID}. Whilst this works, the app is quite large and a reinstall of the whole app to copy a couple of files seems inefficient. I've thought of running a batch file or second MSI from the StubPath -- but are these approaches to be recommended?
I've seen with certain MSIs such as Office, where the first time any particular user runs the software, Windows Installer pops up and completes the "user" part of the installation. This seems to be a different mechanism to Active Setup.
I would be grateful for any advice on the best way to achieve this.
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
AngelD
18 years ago
To only repare userprofile & HKCU use: msiexec /fu {GUID}
Adding a top feature with userprofile & HKCU component resources will minimze the time when the self-healing mechanism checks for broken components.
Auther your userprofile component with a keypath to a HKCU regkey instead of a file. Also make sure not to have mixed User & Machine resources in components.
Adding a top feature with userprofile & HKCU component resources will minimze the time when the self-healing mechanism checks for broken components.
Auther your userprofile component with a keypath to a HKCU regkey instead of a file. Also make sure not to have mixed User & Machine resources in components.
Posted by:
nheim
18 years ago
Hi inselaffe,
One possibilty would be, to install the config files to the program location and copy them with 'duplicate files' to each profile when they login for the first time after the installation. Either with self healing or active setup. With this you would not have to have the source allways available (But with GPO install this wouldn't be a problem here, except that the users need read permission to the source), because the needed files would not have to be copied from the source location.
Please read this post: http://itninja.com/question/distribution-message21
With active setup, the command line would have to be msiexec /fup {GUID}
(msiexec /fu {GUID} only writes missing registry keys, but no files)
Regards, Nick
One possibilty would be, to install the config files to the program location and copy them with 'duplicate files' to each profile when they login for the first time after the installation. Either with self healing or active setup. With this you would not have to have the source allways available (But with GPO install this wouldn't be a problem here, except that the users need read permission to the source), because the needed files would not have to be copied from the source location.
Please read this post: http://itninja.com/question/distribution-message21
With active setup, the command line would have to be msiexec /fup {GUID}
(msiexec /fu {GUID} only writes missing registry keys, but no files)
Regards, Nick
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.