Jump to content

Recommended Posts

Posted

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 off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Finishing Installation" /f

REG ADD %KEY%\010 /VE /D "Create Account" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\AccountCreator.exe" /f

Can't seem to figure out what's wrong. Anyone?


Posted (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 applied

You could do this with another simple batch, which will open the reultant keys in your text editor.

@ECHO OFF
REG EXPORT HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx "%UserProfile%\Desktop\RunOnceEx.txt"
START "" /W "%UserProfile%\Desktop\RunOnceEx.txt"
GOTO :EOF

If 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 with

REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx /va /f

Edited by Yzöwl
Posted

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. :blink:

Posted

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"

Posted

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 :blink:. Anyone?

And @Yzöwl:

Yes, i checked System32 and Reg.exe is there.

Posted

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

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...