post installation task to import .reg file

i would like to have a post installation task that imports a .reg file i made. 

i attached the file to my post-install task.

but i do not know the command to run it silently.

any help would be great! thanks!

0 Comments   [ + ] Show comments

Answers (3)

Posted by: SMal.tmcc 5 years ago
Red Belt
for a k2000 reg merge

upload the reg file to the app task and call

reg import file.reg
Posted by: jagadeish 5 years ago
Red Belt
Create a VBScript, place it in the same folder where .reg file is there and just execute the .vbs

Option Explicit
Dim objShell
Dim objFSO
Dim sCurPath
Dim sRegFile

Set objShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
sCurPath = objFSO.GetParentFolderName(WScript.ScriptFullName)
sRegFile = sCurPath & "\<MyRegFile>.reg"
objShell.Run "Cmd.exe /C REG.EXE IMPORT " & Chr(34) & sRegFile & Chr(34),0,True
Set objShell = Nothing
Set objFSO = Nothing

  • or directly you can import your .reg file using following command

    cmd /c reg import "<Path>\<MyRegFile.reg>" - jagadeish 5 years ago
Posted by: anonymous_9363 5 years ago
Red Belt
Complicated! What's wrong with 'regedit /S [.reg]'? :-)

BTW, if your .REG is directed at the currently logged-in user, you'll need the task to run in that context.
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