/build/static/layout/Breadcrumb_cap_w.png

Copy a file over to the Userprofile within an msi

I am attempting to repackage an app (Peregrine Asset Center). Thie app requires a file with configuration settings located in the users profile.

I have attempted to add this file to the USERSPROFILE folder but it will only copy this over for the installers account. Any existing or new users who logon and trun the app do not get the file. Making the file a key file resolves the problem but requires access to the msi which is not possible.

I am using AdminStudio 6.
Anyone have any tips?

Thanks

0 Comments   [ + ] Show comments

Answers (9)

Posted by: MSIMaker 18 years ago
2nd Degree Black Belt
0
for apps like that I tend to create a custom action to replace the shortcut. The CA looks in the users profile for the file and if not found, copies it over and then runs the app. If it is found it ignores the copy process and then runs the app.

Simple, neat and easy.
Posted by: Ipstenu 18 years ago
Senior Yellow Belt
0
What if you don't have a shortcut? I have an app acting as a plugin that puts down a DLL (easy), modifies an INI file (easy) and then creates it's own INI to go to C:\Documents and Settings\USER\blahblah

My first thought was a shortcut on startup to just handle all that, but I wanted to know if there's a more elegant solution.
Posted by: brenthunter2005 18 years ago
Fifth Degree Brown Belt
0
ActiveSetup
Posted by: Ipstenu 18 years ago
Senior Yellow Belt
0
Hmm. That would work if I had an exe to go with my plugin (stupid Zipmail). The info I found on ActiveSetup is Here
Posted by: brenthunter2005 18 years ago
Fifth Degree Brown Belt
0
Couldn't you just write a small batch file or VBScript to write the neccessary INI file in the users profile using ActiveSetup?
Posted by: Ilikebananas 18 years ago
Purple Belt
0
Hi emuringer,

If you want to repair a file to a userprofile, check out this link:
http://www.altiris.com/support/forum/tm.asp?m=31863&appid=&p=&mpage=1&key=&language=&tmode=0&s=#367539

If you combine the technique with active setup you should get the desired result...
Posted by: Ipstenu 18 years ago
Senior Yellow Belt
0
I ended using a VBS to scan the modified ini for the modification on startup. If it was there, the app did nothing. If it wasn't, the VBS copies the files where they need to be and modifies the INI. What a pain in the arse. All this cause they didn't want to have one shared data folder on a PC. Sheesh.
Posted by: StefanP 18 years ago
Yellow Belt
0
ActiveSetup works like a charm. Create a Registry table entry for the component that contains the PerUser contents, and an identical one for a component that remains PerMachine:

Root = 1 and 2
Key = Software\Microsoft\Active Setup\Installed Components\[ProductCode]
Name = StubPath
Value = msiexec /fup [ProductCode]

Stefan
Posted by: WiseUser 18 years ago
Fourth Degree Brown Belt
0
What do you mean by "...requires access to the msi which is not possible"? I thought you repackaged the app yourself?

For future reference, the correct way to do this is as follows:

1) Set the ALLUSERS public property to 1.

2) Ensure that all userprofile based components have an HKCU registry keypath (not a file).

3) Do not mix user and machine resources within the same component.

4) Ensure that these components are part of the feature that requires those resources (or a parent feature).

5) Ensure that all entry points to the feature are advertised (or at least the shortcuts and file associations).

It's worth remembering that ICE validations can help pick up issues like these (38, 43, 57, etc).
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