/build/static/layout/Breadcrumb_cap_w.png

Copying a file from one %userprofile% to another %userprofile%

Hello Everyone

I am packaging an application which installs a file to %userprofile%\AppData\Roaming\%appname%\config.xml.

All this works fine for the user it's being installed for but if a new user logs in, the config.xml is missing. 

I have been told to copy the file to the new %userprofile% using active setup and NOT to use self heal at all.

I have never used active setup before and used the following guide to the T but it's not working in my scenario.

http://blogs.flexerasoftware.com/installtalk/2011/11/using-active-setup-to-repair-user-settings.html

I marked the config.xml as key file in my MSI to ensure it was copied over during the repair but it didn't.

Since, I have never done this before, a step by step guide for this particular scenario would be greatly appreciated.

I have only ONE file that I am trying to copy. The application does not have any registry entries at all.

Thanks.

 

SOLUTION: I was able to resolve the issue using the following command under StubPath:

msiexec.exe /fp [ProductCode] /qn


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: BHC-Austin 10 years ago
4th Degree Black Belt
0

If the config.xml file is the only thing being copied into the user's profile, then there may not be any need to trigger an msi repair from Active Setup. Instead, you could create a simple batch file that copies it to the desired location and then trigger that batch file using Active Setup.

Posted by: vjaneczko 10 years ago
9th Degree Black Belt
0

Your solution is exactly what should be in the ActiveSetup key for this situation.  My default ActiveSetup entry uses the "/fpu" switches, which includes reg keys.

 
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