/build/static/layout/Breadcrumb_cap_w.png

Installing Files into the User's Profile

I have an app (oracle's jinitiator) that includes a setting file that needs to be placed in each user's profile. How do a make this file install to each user's profile?

I'm sure this is basic stuff none the less I don't know how to do this. Thanks in advance.

0 Comments   [ + ] Show comments

Answers (4)

Posted by: usachrisk 18 years ago
Purple Belt
0
What I've done in the past is just script something that would find the subfolders of the profiles folder (variable), remove the ones we know are "garbage" (SMS Service Account, Altiris Account, etc), and then copy into the other folders.

However, I read this recently which will probably change my ways in the future:
http://itninja.com/question/save-files-in-current-profile

Read it, and check out the link in Madswami's post.

Hope this helps!
Posted by: sikkert 18 years ago
Orange Senior Belt
0
If you can't get the application to self-heal when the user starts it, then Active Setup is a good option.
Posted by: desktop 18 years ago
Senior Yellow Belt
0
I'm going to try Active Setup. Sounds like a good piece of knowledge for the ol' toolkit.
Posted by: sidverma 18 years ago
Senior Yellow Belt
0
Hi,
To solve the issue, get the package repaired for every user who logs in for the first time.
for this you need to add active setup registry in your application package.
First you need to copy the file in current users porfile and then active setup will copy it for all users porfile.

Files getting installed to My Documents actually go to personal folder in the ISM\MSI.

here is the process to configure active setup:-

It basically compares these two registry entries:-
HKLM\Software\Microsoft\Active Setup\Installed Components\{ProductCode}
and
HKCU\Software\Microsoft\Active Setup\Installed Components\{ProductCode}

If HKCU registry is not present it the application will execute the command written in the value of "StubPath". In StubPath we can make the MSI to run in repair mode for that user.

for this you need to add two registries in your package as following:-

HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components\{ProductCode}

At this key you need to add two values "Version" and "StubPath"
Value for the "Version" should be less than version of your product version and
Value for "StubPath" should be "msiexec /fomus {ProductCode} /qn

So whenever the new user logs in it will check for the registry in HKCU and if the value is not present or the version is less than what is mentioned in HKLM it will run the MSI in repair mode to make the settings which are user specific. MSI in repair mode is being executed by the command in "StubPath".


Hope this works in your case......
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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