Marthax Posted April 27, 2005 Posted April 27, 2005 Hi Everybody!I haven't used RunOnceEx in a while and when i recently tried to create one and then execute it, it didn't bring anything up after reboot.cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Finishing Installation" /fREG ADD %KEY%\010 /VE /D "Create Account" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\AccountCreator.exe" /fCan't seem to figure out what's wrong. Anyone?
Rambler Posted April 28, 2005 Posted April 28, 2005 Maybe this is a silly question, but do you have cmdow available in set path?Otherwise the syntax seems alright to me.
Yzöwl Posted April 28, 2005 Posted April 28, 2005 (edited) Did you remember to add the RunOnceEx.cmd to your cmdlines.txt, or were you just testing it on an existing system.To test it on your existing system, you could just execute the RunOnceEx.cmd file, and then check the registry key, to make sure that the entries were appliedYou could do this with another simple batch, which will open the reultant keys in your text editor.@ECHO OFFREG EXPORT HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx "%UserProfile%\Desktop\RunOnceEx.txt"START "" /W "%UserProfile%\Desktop\RunOnceEx.txt"GOTO :EOFIf all the entries are there there is nothing wrong with your syntax etc. just the method of calling the cmd file.After you have checked the data, you can simple delete it from the registry withREG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx /va /f Edited April 28, 2005 by Yzöwl
Marthax Posted April 28, 2005 Author Posted April 28, 2005 the cmdow is there and yes, I did add the RunOnceEx to the cmdlines.txt. That's the funny thing because when I check the registry, nothing is there.
Yzöwl Posted April 28, 2005 Posted April 28, 2005 Did any of the REG.EXE commands work at all? Does reg.exe exist in \WINDOWS\system32?As a check to see if it is a reg.exe problem try this inf file instead[Version]Signature = $Windows NT$[DefaultInstall]AddReg = RunOnEx, Accnt[RunOnEx]HKLM,"%RunOnceEx%",Title,,"Installing Applications"HKLM,"%RunOnceEx%",Flags,0x10001,20[Accnt]HKLM,"%RunOnceEx%\install01",,,"Create Account"HKLM,"%RunOnceEx%\install01",1,,"%24%\install\AccountCreator.exe"[Strings]RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"
Marthax Posted April 29, 2005 Author Posted April 29, 2005 ok, thanks. I'm gonna try that one out. I'll let you know later.
Marthax Posted April 29, 2005 Author Posted April 29, 2005 I tried it and no, it doesn't work. Nothing comes up at startup. I checked registry and it's empty. There's no "RunOnceEx" there . Anyone?And @Yzöwl:Yes, i checked System32 and Reg.exe is there.
Yzöwl Posted April 29, 2005 Posted April 29, 2005 You shouldn't be re-starting at this point, simply checking if the keys are added!just run the inf, then the export batch I gave, if there is still no entries in the text file then you likely have a registry /permissions problem
Marthax Posted April 29, 2005 Author Posted April 29, 2005 I did the same thing on my other computer and it worked without any problems. I've been doing this UADVD for a while now and clearly, my computer needs a format It's time to finish it off and refresh everything.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now