Hi
I am trying to create a script, which imports A LOT of registry-keys - is it possible to import them from a .reg-file instead of creating a [Registry_Install]-section?
(The problem is that it should be for all users in HKCU)
Best Regards,
Soren
Importing .reg-files
- SisterOfMercy
- Beiträge: 1523
- Registriert: 22 Jun 2012, 19:18
Re: Importing .reg-files
If you need to install registry keys to all users, call the [registry_install] section with /AllNTUserDats, like this:
And of course you can also import a .reg file, just call regedit silently with the .reg file to import. Look here: http://ss64.com/nt/regedit.html
Personally I prefer to keep changes in one place, and that is in the OPSI script.
Code: Alles auswählen
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
Message "Installing " + $ProductId$ + " 64 Bit..."
comment "Start setup program"
Winbatch_install_64
Sub_check_exitcode
comment "Copy files"
Files_install /AllNTUserProfiles
Files_install_64
comment "Patch Registry"
Registry_install /AllNTUserDats
endif
Personally I prefer to keep changes in one place, and that is in the OPSI script.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Re: Importing .reg-files
Hi,
you may also use the opsi-winst to import .reg files.
http://download.uib.de/opsi_stable/doc/ ... ry-regedit
regards
d.oertel
you may also use the opsi-winst to import .reg files.
http://download.uib.de/opsi_stable/doc/ ... ry-regedit
regards
d.oertel
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
Re: Importing .reg-files
Thanks
Regards,
Soren
Regards,
Soren
-
- Beiträge: 49
- Registriert: 13 Mär 2018, 11:36
Re: Importing .reg-files
I had the same problem the following was the solution:
[Actions]
registry "%scriptpath%\Data\reg\my.reg" /regedit /AllNTUserDats
[Actions]
registry "%scriptpath%\Data\reg\my.reg" /regedit /AllNTUserDats