How can run RunOnce / active setup in windows more than once?

Avinash Mundhe 21 Reputation points
2021-03-24T13:03:01.063+00:00

In Actual Implementation sometimes client give us the package with same version number, they don’t change the package version, even if it is upgrade, they don’t the package to be upgraded with the version number. The same version exist on the client machine. We do uninstall and install. Even if we uninstall, active setup doesn’t uninstall, we have to do something for it. So at that we need this that what we have to do so that it runs once again?(run, runonce)

Under which condition Run works and under which condition it doesn’t work? Just like RunOnce runs only once why not 2nd time?what does it check? If I want to manually the run the RunOnce 2nd times So what changes we will do registry so that it will run again one time manually?for that which value we have to change in registry.

How can we run active setup second time manually?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,668 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Teemo Tang 11,346 Reputation points
    2021-03-25T06:35:53.097+00:00

    Run: command runs every time
    Runonce: command runs one time and the registry is then removed
    Active setup: runs one time per user logging in, can be configured to run once again by increasing the version value
    Run and RunOnce Registry Keys
    https://learn.microsoft.com/en-us/windows/win32/setupapi/run-and-runonce-registry-keys
    We cannot run RunOnce / active setup in windows two times.
    Check this case for more information
    Need Active Setup to run on every logon
    https://www.itninja.com/question/need-active-setup-to-run-on-every-logon

    -------------------------------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Teemo Tang 11,346 Reputation points
    2021-03-26T07:20:20.097+00:00

    No, we can’t do anything to make RunOnce run again.

    The Run key is processed after every logon, either by the Explorer shell, if it is present, or by First Boot Agent (FBA), if a custom shell, Command shell, or Task Manager shell is used. If FBA processes this key, it does so after every logon, not during first boot as it normally would. Typically, this flag is used to load Systray applications, launch services in executables, hide autostart applications, or hide background processes.

    The RunOnce key is processed only once, by FBA, after Plug and Play device enumeration and DLL registration processing have completed. The values of this registry key are deleted from the registry after it is processed, so that it will not run again. Typically, this flag is used when a reboot is required, such as for a DLL or OCX registration, or for cleaning up a setup or an uninstall.

    0 comments No comments