Jump to content

Run once post RunOnceEx?


Recommended Posts

Hi,

I have this app that I've automated to run using AutoIT. I tested in within Windows, and its runs perfectly. However, when I add it to RunOnceEx, it fails for some unknown reason. It seems to need to be in windows proper, not pre-"windows startup", to run.

So I was thinking I'll use the Startup folder in Windows, which runs everything in it everytime Windows starts up. Set it to be copied there during RunOnceEx, and the delete itself after the first run. Easy, right? Wrong. It didnt work, and I think its because the Startup folder hadnt been created yet at the First RunOnceEx stage.

So Im stumped. Any ideas on how I can get this app to run the first time I enter Windows proper(the desktop)?

I tried searching the forum, but couldnt come up with anything useful. More than likely bcos I dont know what to search for. What I tried wasnt working too well.

Thanks in advance...

Link to comment
Share on other sites


HKLM Runonce & RunonceEX run just after the login but before you are fully into windows. you need to run the install in the HKCU Runonce for it to run in windows itself.

HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce

instead of

HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce or RunonceEX

Edited by chiners_68
Link to comment
Share on other sites

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