Jump to content

Easy RunOnceEx.cmd


eagle00789

Do you want it to be easy to create RunOnceEx.cmd  

2,055 members have voted

  1. 1. Do you want it to be easy to create RunOnceEx.cmd

    • Yes
      1676
    • No
      33
    • What whould be the function?
      60
    • Maybe
      61


Recommended Posts


I noticed that I get an error between my 2nd and my 3rd runonceex. The 2nd windows does not disapear and seems stuck on the office installation, but the rest continues correctly, now how does this happen? I don't know, this may have something to do with the disck changer program I used so it asks the user to prompt the office cd in, it's a ok or cancel box, and when I press cancel, the runonceex window does not go

end of my runonceex2

REG ADD %KEY%\045 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\Applications\WMP10\MP10Setup.exe /q:A /c:\"setup_wm.exe /Q /R:N DisallowSystemRestore\"" /f

REG ADD %KEY%\050 /VE /D "OfficeXP Professionnel SP3" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\DskChg.cmd" /f

REG ADD %KEY%\998 /V 01 /D "%SystemDrive%\Install\RunOnceExs\RunOnceEx3.cmd" /f
REG ADD %KEY%\998 /V 02 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /f

EXIT

now dskchg.cmd

cmdow @ /HID
@echo off

start /wait %systemdrive%\Install\DskChg.exe

EXIT

this is the only way I have to run autoit programs during runonceex, in both cases (ok or cancel), when dskchg.exe exits, its supposed to end the runonceex line.

dskchg.exe (autoit script)

;
; AutoIt Version: 3.0
; Language:       Français
; Platform:       Win9x/NT
; Author:         Thauzar
;
; Script Function:
;   Ouvre une fenêtre pour demander a l'utilisateur de changer de cd
;  
;
$var=MsgBox(33, "Changer le disque", "Veuillez inserer le disque 2 Microsoft OfficeXP Professionnel SP3 et attendre que la diode cesse de clignoter...")
Select
Case $var=1
RunWait("Office.cmd")
EXIT
Case $var=2
EXIT
EndSelect

EXIT

The 3rd EXIT I added now to test... but the rest was there at the time of this post. supposed to get a msg box to appear, when i click ok it starts the office.cmd routine from the root (the cmd refers to the cd drive), if cancel is pressed it just exits. When pressiing ok everything is fine but not when pressing cancel

EDIT: and what if it didn't go away when I press ok... I tested so long ago that I don't remember...

Thanks for any help

Link to comment
Share on other sites

I don't see any errors in you .cmd file, the rest also looks fine to me

Glad to hear that, but the problem is still there... and I really can't figure out how come it does that. Could it only be caused by VM Ware not being a real life pc?

EDIT: AHhA! I think I found a trail to follow, I noticed that it does that also between 1st and 2nd runonceex but it does not show cause the window is the same size how do we make the window close then? It should close before runing the next one no? Well the 3rd one does when it finishes his last command. So except from doing another autoit script, how can we make those windows close?

Link to comment
Share on other sites

I don't see any errors in you .cmd file, the rest also looks fine to me

Glad to hear that, but the problem is still there... and I really can't figure out how come it does that. Could it only be caused by VM Ware not being a real life pc?

EDIT: AHhA! I think I found a trail to follow, I noticed that it does that also between 1st and 2nd runonceex but it does not show cause the window is the same size how do we make the window close then? It should close before runing the next one no? Well the 3rd one does when it finishes his last command. So except from doing another autoit script, how can we make those windows close?

Check this thread

http://www.msfn.org/board/index.php?showtopic=26917

If that doesn't fix it, post your runonceex1.cmd also

Link to comment
Share on other sites

I started from that post...

And if I look at Parahtmlwhatever who said to remove the 99 key... well I still wonder how is windows gonna know where to look for the next runoncex. I'll wait for his reply on that mater before trying anything and getting everything messed up

during that time, here is my runonceexs

RunOnceEx.cmd (in $OEM$ with cmdlines.txt)

cmdow @ /HID
@Echo Off

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

REG ADD %KEY% /V TITLE /D "Installation des programmes" /f

REG ADD %KEY%\005 /VE /D "Mises a jour des programmes" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\Applications\SAVSource\remote.cmd" /f
REG ADD %KEY%\005 /V 2 /D "%systemdrive%\Install\theme.cmd" /f

REG ADD %KEY%\010 /VE /D "7zip v3.13" /f
REG ADD %KEY%\010 /V 1 /D "%SystemDrive%\Install\Applications\7zip\7z313.exe -y /q /r:n" /f

REG ADD %KEY%\015 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\015 /V 1 /D "%SystemDrive%\Install\Applications\AdobeReader6\adobe6.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\020 /VE /D "Daemon Tools v3.46" /f
REG ADD %KEY%\020 /V 1 /D "%SystemDrive%\Install\Daemon.cmd" /f

REG ADD %KEY%\025 /VE /D "Macromedia Flash et Shockwave" /f
REG ADD %KEY%\025 /V 1 /D "%SystemDrive%\Install\Applications\FlashSW\Flash7.msi /qb" /f
REG ADD %KEY%\025 /V 2 /D "%SystemDrive%\Install\Applications\FlashSW\sw_pub.msi /qb" /f

REG ADD %KEY%\030 /VE /D "Sun Java VM v1.4.2" /f
REG ADD %KEY%\030 /V 1 /D "%SystemDrive%\Install\Applications\SunJava\Java2re14205.exe /s /v/qn /L1036" /f

REG ADD %KEY%\035 /VE /D ".NET Framework v1.1 SP1" /f
REG ADD %KEY%\035 /V 1 /D "%SystemDrive%\Install\Applications\NetFrameworkSP1\netfx.msi /qb" /f

REG ADD %KEY%\040 /VE /D "Barre de recherche Google" /f
REG ADD %KEY%\040 /V 1 /D "%SystemDrive%\Install\Applications\GoogleToolbar\GoogleToolbar.exe /q /d" /f

REG ADD %KEY%\045 /VE /D "Nero Burning ROM v6.3.1.20" /f
REG ADD %KEY%\045 /V 1 /D "REGEDIT /S %systemdrive%\install\Applications\Nero\register.reg" /f
REG ADD %KEY%\045 /V 2 /D "%SystemDrive%\Install\Applications\Nero\Nero63120.exe /SILENT /NOREBOOT" /f

REG ADD %KEY%\050 /VE /D "mIRC v6.16" /f
REG ADD %KEY%\050 /V 1 /D "REGEDIT /s %systemdrive%\install\Applications\mIRC\register.reg" /f

REG ADD %KEY%\999 /V 01 /D "%SystemDrive%\Install\RunOnceExs\RunOnceEx2.cmd" /f
REG ADD %KEY%\999 /V 02 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /f

EXIT

Then RunOnceEx2.cmd (from $OEM$\$1\Install\RunOnceExs

cmdow @ /HID
@Echo Off

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

REG ADD %KEY% /V TITLE /D "Suite de l'installation des programmes" /f

REG ADD %KEY%\005 /VE /D "MSN 6.2" /f
REG ADD %KEY%\005 /V 1 /D "%SystemDrive%\Install\Applications\MSN\MsnMsgs.msi /qn" /f

REG ADD %KEY%\010 /VE /D "MsgPlus! v3.20.100" /f
REG ADD %KEY%\010 /V 1 /D "%SystemDrive%\Install\Applications\MsgPlus3\MsgPlus-320.exe /SilentInstallNoSponsor" /f
REG ADD %KEY%\010 /V 2 /D "pskill.exe MsgPlus.exe" /f
REG ADD %KEY%\010 /V 3 /D "pskill.exe msnmsgr.exe" /f

REG ADD %KEY%\015 /VE /D "Opera v7.54" /f
REG ADD %KEY%\015 /V 1 /D "%SystemDrive%\Install\Applications\Opera7\Opera754.exe /s /v/qb" /f

REG ADD %KEY%\020 /VE /D "Paint Shop Pro 7" /f
REG ADD %KEY%\020 /V 1 /D "%SystemDrive%\Install\Applications\PaintShopPro7\PSP7.msi /qb" /f

REG ADD %KEY%\025 /VE /D "Winamp v5.1.0.5" /f
REG ADD %KEY%\025 /V 1 /D "%SystemDrive%\Install\Applications\Winamp5\Winamp.msi INI=\"%systemdrive%\install\Applications\Winamp5\winamp.ini\" /qb" /f
REG ADD %KEY%\025 /V 2 /D "%SystemDrive%\Install\Applications\Winamp5\winamp.cmd" /f

REG ADD %KEY%\030 /VE /D "VCMU v1.10b" /f
REG ADD %KEY%\030 /V 1 /D "%SystemDrive%\Install\Applications\VCMU\vcmu110b_fr.msi /qb" /f

REG ADD %KEY%\035 /VE /D "WinISO v5.3" /f
REG ADD %KEY%\035 /V 1 /D "REGEDIT /S %systemdrive%\install\Applications\WinISO\register.reg" /f
REG ADD %KEY%\035 /V 2 /D "%SystemDrive%\Install\Applications\WinISO\winiso53.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\040 /VE /D "WinRAR v3.30" /f
REG ADD %KEY%\040 /V 1 /D "%SystemDrive%\Install\Applications\WinRAR\wrar330corp.exe /s" /f

REG ADD %KEY%\045 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\Applications\WMP10\MP10Setup.exe /q:A /c:\"setup_wm.exe /Q /R:N DisallowSystemRestore\"" /f

REG ADD %KEY%\050 /VE /D "OfficeXP Professionnel SP3" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\DskChg.cmd" /f

REG ADD %KEY%\998 /V 01 /D "%SystemDrive%\Install\RunOnceExs\RunOnceEx3.cmd" /f
REG ADD %KEY%\998 /V 02 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /f

EXIT

And finaly RunOnceEx3.cmd (from the same folder as the 2nd one)

cmdow @ /HID
@Echo Off

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

REG ADD %KEY% /V TITLE /D "Fin de l'installation des programmes" /f

REG ADD %KEY%\905 /VE /D "PowerToys pour Windows XP" /f
REG ADD %KEY%\905 /V 1 /D "%SystemDrive%\Install\Applications\PowerToys\TweakUI.msi /qb" /f
REG ADD %KEY%\905 /V 2 /D "%SystemDrive%\Install\Applications\PowerToys\TaskswitchPowertoySetup.exe /s /v/qn" /f
REG ADD %KEY%\905 /V 3 /D "%SystemDrive%\Install\Applications\PowerToys\CmdHerePowertoySetup.exe /s /v/qn" /f
REG ADD %KEY%\905 /V 4 /D "%SystemDrive%\Install\Applications\PowerToys\PowerCalcPowertoySetup.exe /s /v/qn" /f

REG ADD %KEY%\910 /VE /D "Symantec AntiVirus Corporate Edition v9.0.0.1400" /f
REG ADD %KEY%\910 /V 1 /D "%systemdrive%\Install\SAV9.cmd" /f
REG ADD %KEY%\910 /V 2 /D "REGEDIT /S %systemdrive%\Install\Applications\SAV91400\SAV9.reg" /f


REG ADD %KEY%\915 /VE /D "Nettoyage et redemarrage" /f
REG ADD %KEY%\915 /V 1 /D "%SystemDrive%\Install\cleanup.cmd" /f

EXIT

Link to comment
Share on other sites

Hi eagle00789,

Quick request,

In the numbering scheme you increment in lots of 1. Could you space it out a bit and do it in lots of say 5. That way if you miss something out it is relatively easy to go back and include it without re-numbering everything.

Many thanks

Link to comment
Share on other sites

Hi eagle00789,

Quick request,

In the numbering scheme you increment in lots of 1. Could you space it out a bit and do it in lots of say 5. That way if you miss something out it is relatively easy to go back  and include it without re-numbering everything.

Many thanks

Please excuse me for not posting a while, but my school is much demanding, so that has top-priority.

In the next version i will implement that, but so thatyou can select the space between two items. i like it with nom space, so i increment with 1. you like to have increment with 5 numbers in between, so you can choose 5

Link to comment
Share on other sites

i've picked up the work on RunOnceEx.cmd Creator and am going to do the following for the next version:

  • Add Felix's suggestions from all 3 posts:
    • Arrows to move items (done)
    • When a program is selected, if insert is clicked, the new program will insert below the selected one
    • Tasknumber so you can rearrange yourselve
    • instead of rem PP, change it to set PP (done)
    • if cdrom is selected, add the neccesairy code

    [*]Add the programs suggested by some users to the database

    [*]Finish the plugin-support for loading as wel as saving

    [*]Create a SDK so that you can add any extension for saving and loading

    [*]Temporarily delete the Update Function until i found a better solution for that (done)

    [*]Change the installer, so that it will ask you if you want to overwrite it. this will not be done, it will be changed to: "Create a second table in the database to seperate the user-added entries from the included entries"

    [*]set increment number

Edited by eagle00789
Link to comment
Share on other sites

i've picked up the work on RunOnceEx.cmd Creator and am going to do the following for the next version:
  • Add Felix's suggestions from all 3 posts:
    • Arrows to move items (done)
    • When a program is selected, if insert is clicked, the new program will insert below the selected one
    • Tasknumber so you can rearrange yourselve
    • instead of rem PP, change it to set PP
    • if cdrom is selected, add the neccesairy code

    [*]Add the programs suggested by some users to the database

    [*]Finish the plugin-support for loading

    [*]Create a SDK so that you can add any extension for saving and loading

    [*]Temporarily delete the Update Function until i found a better solution for that

    [*]Change the installer, so that it will ask you if you want to overwrite it. this will not be done, it will be changed to: "Create a second table in the database to seperate the user-added entries from the included entries"

    [*]set increment number

Hi eagle,

just doing some testing on the new version - few little bugs.

1. the down arrow is not working - up arrow works fine.

2. when using the up arrow you can only move one space up because the line is not highlighted after the first move.

3. if you highlight a line, say in the middle of the list and then click on add - the new item is added to the bottom of the list...

4. PP option has not been updated - i am not hassling you just not sure if it is supposed to be working or not.

Other things tested

1. web update of database works well... accept the database i have local is more up todate than the online version so no update was required.

2. on installation - the EULA still states and old version - you may want to change that :)

Hope the information is helpful.

Felix

Link to comment
Share on other sites

`Felix: if rou read beond the line, you will see that only 1 thing is done. that was is done in the list above, doesn't mean yet that it is implemented, because i have not announced the release of this version yet. this version will carry number 2.4.0.0, and is not yet released

Link to comment
Share on other sites

`Felix: if rou read beond the line, you will see that only 1 thing is done. that was is done in the list above, doesn't mean yet that it is implemented, because i have not announced the release of this version yet. this version will carry number 2.4.0.0, and is not yet released

Hi eagle,

Ok very sorry for the confussion. :blushing: so then there is still a bugs with the arrow button implementation. :unsure:

Cheers,

Felix

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