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)
Please log in to answer
Posted by:
chucksteel
8 years ago
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:
W i n d o w s R e g i s t r y E d i t o r V e r s i o n 5 . 0 0