Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

Alternative RunOnceEx


Recommended Posts


I just tested the new version and I am still having a second window pop up, something deffinetly changed though, before it would get to about my 6th or 7th app and get stuck for a long time. I tested the regular RunOnceEX earlier and it worked fine, only one window poped up.

Thanks for your hard efforts

Link to post
Share on other sites

That secound window should NOT install your applications again, it should only add this RunOnceEx to the RunOnce registry key. If that's all what happens, I can't fix it.

Edited by RubySoftware
Link to post
Share on other sites

No the second window is installing as well, reason I can tell, some of my silent installers try to uninstall or say already installed. I have been testing with the Windows original RunOnceEX and do not have a second Window or the same installers trying to install again.

Maybe lets wait and see if anyone else has issues like this.

Link to post
Share on other sites

I've just uploaded a new version (1.6). Does this fix your problem?

If you're NOT using this for an unattended installation: Remove the registry value for Alternative RunOnceEx in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run first!

Link to post
Share on other sites

I will test it out.

Does this command work with your RunOnceEX = start /wait rundll32.exe iernonce.dll,RunOnceExProcess

EXAMPLE: This is what I have working perfect for Windows original RunOnceEX

@echo off
cmdow @ /HID

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

REG ADD %KEY% /V TITLE /D "( TITLE HERE ) /f

REG ADD %KEY%\035 /VE /D "Chipset Software Installation Utility" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\chipsetupdate.exe /s" /f
REG ADD %KEY%\035 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\040 /VE /D "Visual Communication Camera VGP-VCC3 Driver" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\CAMERADRIVER.EXE" /f
REG ADD %KEY%\040 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\045 /VE /D "Alps StickPointer Driver" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\alpspointer.exe" /f
REG ADD %KEY%\045 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\050 /VE /D "Sony Image FilterDriver" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\imagefilter\SonyImageFilter.exe /s" /f
REG ADD %KEY%\050 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\055 /VE /D "Programmable I/O Driver" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\programmableio.exe" /f
REG ADD %KEY%\055 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\060 /VE /D "Gunze Touch panel Driver" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\touchpanel.exe" /f
REG ADD %KEY%\060 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\065 /VE /D "Sony USB Mouse Driver" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\mousedri.exe" /f
REG ADD %KEY%\065 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\070 /VE /D "LAN-Express Software" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\LANExpress.exe" /f
REG ADD %KEY%\070 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\075 /VE /D "Sony Batt Check" /f
REG ADD %KEY%\075 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\batcheck.exe" /f
REG ADD %KEY%\075 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\080 /VE /D "Setting Utility Series" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\SUS.exe" /f
REG ADD %KEY%\080 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\085 /VE /D "Sony Shared Library" /f
REG ADD %KEY%\085 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\sharedlibrary.exe" /f
REG ADD %KEY%\085 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\090 /VE /D "Sony Utilities DLL" /f
REG ADD %KEY%\090 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\utildll.exe" /f
REG ADD %KEY%\090 /V 2 /D "%systemdrive%\install\PAUSE.CMD

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D " ( SECOND WINDOW TITLE HERE )" /f

REG ADD %KEY%\005 /VE /D "Vaio Control Center" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\controlcenter.exe" /f
REG ADD %KEY%\005 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\010 /VE /D "Vaio Event Service" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\VES.exe" /f
REG ADD %KEY%\010 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\015 /VE /D "Vaio Powermanagment" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\powermgr.exe" /f
REG ADD %KEY%\015 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\020 /VE /D "Special Button Utility" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\SBU.exe" /f
REG ADD %KEY%\020 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\025 /VE /D "Vaio Touch Launcher" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\VTL.exe" /f
REG ADD %KEY%\025 /V 2 /D "%systemdrive%\install\PAUSE.CMD

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

This I run from GuiRunonce and everything executes before logon, I found this way here on the forum.

This could solve my problem with your RunOnceEX ?

EDIT:

Yes my install is unattended

Edited by Sull
Link to post
Share on other sites

You forgot the quotes in REG ADD %KEY% /V TITLE /D "( TITLE HERE ) /f.

And this SHOULD work with mine too, if you do NOT use start /wait rundll32.exe iernonce.dll,RunOnceExProcess, but run the Alternative RunOnceEx installer ONLY ONCE AT THE END. After inserting the first window entry's in the registry, you must set the %KEY% to (...)\Ruby Software\RunOnceEx2, to define the secound window. That should work.

Example:

@echo off
cmdow @ /HID

SET KEY="HKLM\SOFTWARE\Ruby Software\RunOnceEx"

REG ADD %KEY% /V TITLE /D "( TITLE HERE )" /f

REG ADD %KEY%\035 /VE /D "Chipset Software Installation Utility" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\chipsetupdate.exe /s" /f
REG ADD %KEY%\035 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\040 /VE /D "Visual Communication Camera VGP-VCC3 Driver" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\CAMERADRIVER.EXE" /f
REG ADD %KEY%\040 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\045 /VE /D "Alps StickPointer Driver" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\alpspointer.exe" /f
REG ADD %KEY%\045 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\050 /VE /D "Sony Image FilterDriver" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\imagefilter\SonyImageFilter.exe /s" /f
REG ADD %KEY%\050 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\055 /VE /D "Programmable I/O Driver" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\programmableio.exe" /f
REG ADD %KEY%\055 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\060 /VE /D "Gunze Touch panel Driver" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\touchpanel.exe" /f
REG ADD %KEY%\060 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\065 /VE /D "Sony USB Mouse Driver" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\mousedri.exe" /f
REG ADD %KEY%\065 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\070 /VE /D "LAN-Express Software" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\LANExpress.exe" /f
REG ADD %KEY%\070 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\075 /VE /D "Sony Batt Check" /f
REG ADD %KEY%\075 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\batcheck.exe" /f
REG ADD %KEY%\075 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\080 /VE /D "Setting Utility Series" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\SUS.exe" /f
REG ADD %KEY%\080 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\085 /VE /D "Sony Shared Library" /f
REG ADD %KEY%\085 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\sharedlibrary.exe" /f
REG ADD %KEY%\085 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\090 /VE /D "Sony Utilities DLL" /f
REG ADD %KEY%\090 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\utildll.exe" /f
REG ADD %KEY%\090 /V 2 /D "%systemdrive%\install\PAUSE.CMD

SET KEY="HKLM\SOFTWARE\Ruby Software\RunOnceEx2"

REG ADD %KEY% /V TITLE /D " ( SECOND WINDOW TITLE HERE )" /f

REG ADD %KEY%\005 /VE /D "Vaio Control Center" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\controlcenter.exe" /f
REG ADD %KEY%\005 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\010 /VE /D "Vaio Event Service" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\VES.exe" /f
REG ADD %KEY%\010 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\015 /VE /D "Vaio Powermanagment" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\powermgr.exe" /f
REG ADD %KEY%\015 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\020 /VE /D "Special Button Utility" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\SBU.exe" /f
REG ADD %KEY%\020 /V 2 /D "%systemdrive%\install\PAUSE.CMD

REG ADD %KEY%\025 /VE /D "Vaio Touch Launcher" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\APPS\FIRSTBOOT\VTL.exe" /f
REG ADD %KEY%\025 /V 2 /D "%systemdrive%\install\PAUSE.CMD

RunOnceEx

EXIT

Edited by RubySoftware
Link to post
Share on other sites

RubySoftware,

I have not had a chance to try your alternative RunOnceEX again, I am very busy right now, maybe tonight I can run a VMWARE test.

I do have a question, at the end of your example in the previous post, you put RunOnceEX right at the end before EXIT, is this needed and why ?

Thanks again

Sull

Link to post
Share on other sites
  • 2 weeks later...

Subject: Alternative RunOnceEx

I have been looking at all this Programming to inject everything into RunOnceEx, 'tis a pain I think, but there is more than one way to "skin a cat".

All that is required is one command/routine (whichever!) to originate from RunOnceEx e.g...

@ECHO OFF

IF EXIST %SYSTEMROOT%\SYSTEM32\CMDOW.EXE CMDOW @ /HID

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY% /V Flags /T REG_DWORD /D 128 /F

REG ADD %KEY%\010 /VE /D "Applications Installation Batch File" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Software\install.cmd" /f

@ECHO OFF
// Filename: install.cmd"

IF EXIST %SYSTEMROOT%\SYSTEM32\CMDOW.EXE CMDOW @ /HID

// If you don't know where %temp% will take you, enter it as a command.
MKDIR %temp%\myprogram1
MKDIR %temp%\myprogram2

COPY /V /Y /B %SYSTEMDRIVE%\Software\myprogram1.exe %temp%\myprogram1
COPY /V /Y /B %SYSTEMDRIVE%\Software\myprogram2.exe %temp%\myprogram2

START/WAIT %TEMP%\myprogram1\myprogram1.exe
START/WAIT %TEMP%\myprogram2\myprogram2.exe

RD /S /Q %SYSTEMDRIVE%\Software

EXIT

I know the above looks very abbreviated, but that's all you need. Of course one (anyone) would have more than two pieces of Software to install, but still very simple, and it works a treat.

I used to install my Programs from "%SYSTEMDRIVE%\Software", and delete on finish, but some Programs require access to it's source to uninstall, or repair or re-install.

Which just causes a hassle. I also tried installing direct from the CD-DVD, some Software was okay with it, and others were not. (Trial and error). It is no big deal or loss of time to copy them over to "%temp%\Folder", and makes everything very neat and orderly.

I know which way I will be doing it... :thumbup

Edited by jda-au
Link to post
Share on other sites
I know which way I will be doing it... :thumbup

Different needs for different folks and glad you see something good for yours.

When you mention installing direct from CD/DVD (silent install has conditions with this read only media concept)

Usually InstallShield installers make a log file within the setup directory when using silent installation so you can may need to use the /f2"PathToFile.log" switch if supported by that version/type of InstallShield installer. If the InstallShield installer cannot make a log on the read only medium, then it may abort with a error without using the /F2 switch mentioned.

:)

Link to post
Share on other sites
Ok, call me a noob, but I don't get it:

'Something' must be added to the registry first.

So... what is something then? :unsure:

Nifty little tool by the way, can't wait to fool around with it :)

Well, the something are the application entries needed to let Alternative RunOnceEx work, which will be added to the registry when running the BAT or CMD file which Alternative RunOnceEx Script Creator creates.

Link to post
Share on other sites
RubySoftware,

I have not had a chance to try your alternative RunOnceEX again, I am very busy right now, maybe tonight I can run a VMWARE test.

I do have a question, at the end of your example in the previous post, you put RunOnceEX right at the end before EXIT, is this needed and why ?

Thanks again

Sull

This is to run my alternative RunOnceEx, so it starts installing. If it is not installed at the time of script execution, run the installer instead of the RunOnceEx.exe application.

Link to post
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...