reg作为vb资源文件的有关问题

reg作为vb资源文件的问题
已经将.reg作为资源文件,能不能不写入硬盘,直接导入注册表?

  或者应该如何保存到d:\ ,求高手指点,不胜感激

------解决方案--------------------
探讨
已经将.reg作为资源文件,能不能不写入硬盘,直接导入注册表?

或者应该如何保存到d:\ ,求高手指点,不胜感激

------解决方案--------------------
VB code

Private Sub Form_Load()
    Dim byREG() As Byte
    byREG = LoadResData(101, "CUSTOM")
    Open "c:\11.reg" For Binary As #1
    Put #1, 1, byREG
    Close #1
    Shell "reg import c:\11.reg"
    Timer1.Interval = 1000
    Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
    Timer1.Enabled = False
    Kill "c:\11.reg"
End Sub