Nois3, on Mar 30 2009, 03:03 PM, said:
The batch file needs to go in to %SystemRoot%\System32 if you don't want to specify a path.
Aside from that having nothing to do with it entering data under a reg key from an INF file, you're wrong anyway.
It doesn't, it goes in %systemroot% and that doesn't need any path.
I already know this looking for example at the file in my WINDOWS folder called "RTHDCPL.EXE" that is a program for my sound card - see, pathless and it does run...
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"RTHDCPL"="RTHDCPL.EXE"
Thats all that says plus I know it works because I have done it before, thats why I am doing it this way now.
Please stop confusing things. Or don't reply if you don't know!
But for now I am not even at that point and don't want to jump the gun here when the very initial thing isn't even working.
Just downloaded this from RyanVM:
[Tool] Reg2Inf converter v0.46
http://www.ryanvm.ne...opic.php?t=2169
It gave me this converted to INF (from a reg file I know for certain does work to put the entry in, as a reg file)
[Version]
Signature = "$Windows NT$"
[DefaultInstall]
AddReg = REGEntries.AddReg
[REGEntries.AddReg]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","MyEntry",0x0,"MyFile.bat"
Nice, the 0x00000000 has changed to 0x0, I had my hopes up there for a minute but guess what - does not work.
Nothing anyone can suggest could make it work, I don't even know why I am asking.
Thats not to say people here are daft I am saying there IS no answer.
All I can think is the registry is broken, or locked down in some way even though I am the Administrator logged in as Administrator, why oh why isn't any of this working?
I have tried countless times now right clicking an INF to "install" it into the registry and its not working.
PS yes if I do "REG ADD" in a batch file that works perfectly, but even then the batch file is being deleted from the WINDOWS folder and I don't know why. Its supposed to run on next reboot not just vanish off the face of the earth, but nevermind, I am not even at that point yet, all I want to solve is this INF and to make it put the entry in.
No, the answer isn't anything other than putting a line in HIVESFT.INF it must go there, please don't suggest anything else when this is what I need to do. People always say do this and do that but I tried it hours ago, or can't do it.
This post has been edited by LeveL: 30 March 2009 - 09:21 AM