Jump to content

Problem with RunOnceEx


Sereby

Recommended Posts

hi guys..

i have a big problem with the RunOnceEx option of Windows XP.

i add the following code (to test it) into registry

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]
"TITLE"="Installing Applications"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\001]
@="Preparing Installation..."
"1"="C:\\WINXP\\Software\\prepare.cmd"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\015]
@="Alcohol 120 Percent"
"1"="C:\\WINXP\\Software\\alcohol\\setup.exe /qn Reboot=Suppress"
"2"="REGEDIT /S C:\\WINXP\\Software\\alcohol\\register.reg"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\025]
@="Diskeeper 8.0.478"
"1"="C:\\WINXP\\Software\\Diskeeper\\DiskeeperPro_8.0.478.exe /s /v/qn"

but when i want to start it with "rundll32.exe iernonce.dll,RunOnceExProcess" or by restarting the computer nothing happens!

it just removes the "TITLE" from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx.

but if i add the code and remove the "@="Diskeeper 8.0.478"" ans so on it executes the programs but dont show the runonceex window -.- so i could use runonce instead of because it do absolute the same.

please tell me why it doesnt show the gui and how i can solve this problem

Link to comment
Share on other sites


Is your registry file created correctly?

To correctly create a registry file, your header must be followed by a blank line and the file should end with two blank lines

If you use the Windows Registry Editor Version 5.00 header, the file should be encoded in Unicode format,(UCS-2 Little Endian).

Using the REGEDIT4 header, the file should be encoded in ANSI format.

Take a look at the attached example files:

  • runex.reg is an incorrectly formed registry file, (what you've posted).
    a_runex.reg is a correctly formed registry file in ANSI format
    u_runex.reg is a correctly formed registry file in Unicode format

Note the difference in size between the a_runex.reg and u_runex.reg files.

runex.zip

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