Need help creating a RunOnce registry entry
-
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?
-
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?
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
-
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
-
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.
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..."