Ephilei Posted March 8, 2010 Posted March 8, 2010 I wrote a RunOnceEx.cmd, tested it, and copied it to an image. When I installed Windows it doesn't run. I can't run it manually either - the command window flashes up for a split second, presumably with an error message. But if I open the same file and copy and paste its contents into a new file, the new file runs perfectly. What is it about the image file that could be different than the copy-paste file?
Ephilei Posted March 8, 2010 Author Posted March 8, 2010 Did you add it to the nLite RunOnce section?No, I'm using cmdlines.txt. Why would that matter? Even if the file is executed, it will crash.
Sp0iLedBrAt Posted March 8, 2010 Posted March 8, 2010 (edited) Well, you could post some of the lines that seem suspicious to you, or attach the whole file. I've done it and have received a great amount of help. Also check (this has happened to me) if the extension is correct; is it <b>.cmd</b> in the file name and in cmdlines.txt? I once added a.cmd file, but the command was for a .bat file.Cheers Edited March 8, 2010 by Sp0iLedBrAt
Ephilei Posted March 9, 2010 Author Posted March 9, 2010 Here are the contents. SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Symantec Endpoint" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\Symantec.exe /s REBOOT=REALLYSUPPRESS" /fPAUSEEXITI double checked the file extensions: cmdlines.txt and RunOnceEx.cmd
Ephilei Posted March 9, 2010 Author Posted March 9, 2010 Nevermind. I'll just Nlite's RunOnce instead as it's working well.
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