Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Need help creating a RunOnce registry entry

Need help creating a RunOnce registry entry

Scheduled Pinned Locked Moved System Admin
helpwindows-adminlinuxquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phergus
    wrote on last edited by
    #1

    I need to do an install of a VFW codec and because of the particular circumstances I need it to happen via a RunOnce registry entry. The problem is that command line I put in the registry entry doesn't work but the same command line works fine from a shell. "rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 c:\progra~1\path\to\my\inffile.inf" I get a message that it "Cannot find the file "rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 c:\progra~1\path\to\my\inffile.inf" (or one of its components). What am I screwing up?

    R 1 Reply Last reply
    0
    • P Phergus

      I need to do an install of a VFW codec and because of the particular circumstances I need it to happen via a RunOnce registry entry. The problem is that command line I put in the registry entry doesn't work but the same command line works fine from a shell. "rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 c:\progra~1\path\to\my\inffile.inf" I get a message that it "Cannot find the file "rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 c:\progra~1\path\to\my\inffile.inf" (or one of its components). What am I screwing up?

      R Offline
      R Offline
      Roger Wright
      wrote on last edited by
      #2

      Remove the quotes in the registry entry. The message is saying that Windows is treating the entire command line as one filename. "Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom

      P 1 Reply Last reply
      0
      • R Roger Wright

        Remove the quotes in the registry entry. The message is saying that Windows is treating the entire command line as one filename. "Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom

        P Offline
        P Offline
        Phergus
        wrote on last edited by
        #3

        Hmmm. That's curious. I was sure that I read somewhere in the MSDN pages that the entry had to have quotes around it. Oh well. I'll give that a go. Thanks.

        R 1 Reply Last reply
        0
        • P Phergus

          Hmmm. That's curious. I was sure that I read somewhere in the MSDN pages that the entry had to have quotes around it. Oh well. I'll give that a go. Thanks.

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #4

          Actually, I think I read the same thing. But just looking at the message it's giving you gives me the impression that it's interpreting the whole string as a filename. It's worth a try without the quotes; if that doesn't work, I'd even venture a try with just the filename in quotes and the parameters listed after without them. It probably won't work any worse than it does now.:)

          "Ask not for whom the bell tolls;
          It tolls for thee..."

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups