/build/static/layout/Breadcrumb_cap_w.png

installing reg files as a post install task in k2000

hey people.

I have a reg file I would like to add to my post

install tasks.

I have a reg file I exported from my user profile

and I would like to deploy it to all pc and make

it the default registry settings for all users.

What would be the easiest way to go about this?

Thanks all.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: chucksteel 8 years ago
Red Belt
1
I use a batch file to load the default user registry hive and then import the settings. You need to modify the exported registry keys to point to the path that will be there when the hive is loaded. Here is an example that turns on the Excel Analysis toolpak.
Batch File:
reg load HKU\Def c:\users\default\ntuser.dat
:CheckOS
IF "%PROCESSOR_ARCHITECTURE%"=="x86" (GOTO 32BIT) else (GOTO 64BIT)
:32BIT
reg import "excel-analysistoolpak-x86.reg"
GOTO END
:64BIT
reg import "excel-analysistoolpak-x64.reg"
GOTO END
:END
reg unload HKU\Def
Registry file for x86:
Windows Registry Editor Version 5.00

[HKEY_USERS\Def\Software\Microsoft\Office\15.0\Excel\Options]

"OPEN"="/R \"C:\\Program Files\\Microsoft Office\\Office15\\Library\\Analysis\\ANALYS32.XLL\""

"OPEN1"="/R \"C:\\Program Files\\Microsoft Office\\Office15\\Library\\Analysis\\ATPVBAEN.XLAM\""
Place the files in a zip archive and upload them as an application post install task. The parameters for the task is the name of the batch file that loads the keys, I normally call mine loadkeys.cmd.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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