registration file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jammer2
    Forum Member
    • Apr 2005
    • 20

    registration file

    I need help on this one. I've got a bpftp.reg file that i'm trying to get it to register. Normally all you do on this file is double click it and it registers the progarm. I can get the program to install ok, but when I try to find something to simulate a double click on this file I'm lost.

    Any help would be greatly appreciated.
  • longedge
    Indigo Rose Customer
    • Aug 2003
    • 2498

    #2
    Hello,

    If you put your .reg file in the docs folder, then the File.Open action will work I think -

    File.Open("AutoPlay\\Docs\\bpftp.reg", "", SW_SHOWNORMAL);

    Comment

    • jammer2
      Forum Member
      • Apr 2005
      • 20

      #3
      Originally posted by longedge
      Hello,

      If you put your .reg file in the docs folder, then the File.Open action will work I think -

      File.Open("AutoPlay\\Docs\\bpftp.reg", "", SW_SHOWNORMAL);
      Thanks longedge that worked. I thought I had tried that but I guess I missed it. Thanks again

      Comment

      • bule
        Indigo Rose Customer
        • May 2005
        • 1116

        #4
        you could also apply it silently this way:

        File.Open(_WindowsFolder.."\\regedit.exe", "/s AutoPlay\\Docs\\bpftp.reg", SW_SHOWNORMAL);
        Never know what life is gonna throw at you. ZubTech

        Comment

        Working...
        X