MSFN Forum: runonce-random order - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

runonce-random order Rate Topic: -----

#1 User is offline   ripken204 

  • The Hardware Guy
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6,311
  • Joined: 23-December 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 September 2005 - 03:44 PM

my programs install in a random order for some reason.

cmdow @ /HID
@echo off
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\win51ip.SP2 SET CDROM=%%i:

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Acrobat Reader 7" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\installs\acrobatreader\acrobatreader.exe" /f

REG ADD %KEY%\002 /VE /D "AdAware Professional 1.06" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\installs\adaware\adaware.exe" /f

REG ADD %KEY%\003 /VE /D "ATI Control Panel" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\installs\aticp\aticp.exe" /f

REG ADD %KEY%\004 /VE /D "BitComet 0.59" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\installs\bitcomet\bitcomet.exe" /f

REG ADD %KEY%\005 /VE /D "CCleaner 1.22.142" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\installs\ccleaner\ccleaner.exe" /f

REG ADD %KEY%\006 /VE /D "Firefox 1.06" /f
REG ADD %KEY%\006 /V 1 /D "%CDROM%\installs\firefox\firefox.exe" /f

REG ADD %KEY%\007 /VE /D "J2SE Runtime Environment 1.5.0.40" /f
REG ADD %KEY%\007 /V 1 /D "%CDROM%\installs\java\java.exe" /f

REG ADD %KEY%\008 /VE /D "Limewire PRO 4.9.23.1" /f
REG ADD %KEY%\008 /V 1 /D "%CDROM%\installs\limewire\limewire.exe" /f

REG ADD %KEY%\009 /VE /D "Microsoft Antispyware" /f
REG ADD %KEY%\009 /V 1 /D "%CDROM%\installs\msantispyware\msantispyware.exe" /f

REG ADD %KEY%\0010 /VE /D "NOD32" /f
REG ADD %KEY%\0010 /V 1 /D "%CDROM%\installs\nod32\nod32.exe" /f

REG ADD %KEY%\0011 /VE /D "PerfectDisk 7.0" /f
REG ADD %KEY%\0011 /V 1 /D "%CDROM%\installs\perfectdisk\perfectdisk.exe" /f

REG ADD %KEY%\0012 /VE /D "Spybot 1.4 " /f
REG ADD %KEY%\0012 /V 1 /D "%CDROM%\installs\spybot\spybot.exe" /f

REG ADD %KEY%\0013 /VE /D "Textpad 4.7.3" /f
REG ADD %KEY%\0013 /V 1 /D "%CDROM%\installs\textpad\textpad.exe" /f

REG ADD %KEY%\0014 /VE /D "Thunderbird 1.06" /f
REG ADD %KEY%\0014 /V 1 /D "%CDROM%\installs\thunderbird\thunderbird.exe" /f

REG ADD %KEY%\0015 /VE /D "VLC Media Player" /f
REG ADD %KEY%\0015 /V 1 /D "%CDROM%\installs\vlc\vlc.exe" /f

REG ADD %KEY%\0016 /VE /D "Winamp Pro 5.094" /f
REG ADD %KEY%\0016 /V 1 /D "%CDROM%\installs\winamp\winamp.exe" /f

REG ADD %KEY%\0017 /VE /D "WinRAR 3.50" /f
REG ADD %KEY%\0017 /V 1 /D "%CDROM%\installs\winrar\winrar.exe" /f

REG ADD %KEY%\0018 /VE /D "Daemon Tools 3.47" /f
REG ADD %KEY%\0018 /V 1 /D "%CDROM%\installs\daemontools\daemontools.exe" /f

REG ADD %KEY%\0019 /VE /D "Daemon Tools 3.47" /f
REG ADD %KEY%\0019 /V 1 /D "%CDROM%\installs\trillian\trillianinstall.exe" /f

REG ADD %KEY%\0050 /VE /D "Miscellaneous" /f
REG ADD %KEY%\0050 /V 1 /D "%CDROM%\installs\reg\desktop.exe" /f
REG ADD %KEY%\0050 /V 2 /D "%CDROM%\installs\reg\regtweaks.exe" /f
REG ADD %KEY%\0050 /V 3 /D "%CDROM%\installs\reg\startmenu.exe" /f

EXIT



#2 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 September 2005 - 09:20 PM

too much zero!

isn't 0010 executed before 001 ?

#3 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 08 September 2005 - 09:34 PM

Nah, not random. I agree with Incroyable HULK

The order will be
001
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
002
003
004
005
0050
006
007
008
009


The preceding 0s does affect the order. Use the same amount of digits for each entry. If you have less then 100 entries, then 3 digits will be fine. More then 100 but less then 1000, then 4 would be good.

#4 User is offline   ripken204 

  • The Hardware Guy
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6,311
  • Joined: 23-December 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 September 2005 - 05:50 AM

okay, i was just following the guide(gues i rly screwd it up), so i should do like 10,11,12,13,etc?

This post has been edited by ripken204: 09 September 2005 - 05:59 AM


#5 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 09 September 2005 - 07:07 AM

You could do that. That is 2 digits for each entry that you show.
i.e. 01,02,03,04,05....14,15,16,17.....

#6 User is offline   benners 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 692
  • Joined: 29-December 03

Posted 09 September 2005 - 03:30 PM

ripken204, on Sep 9 2005, 12:50 PM, said:

okay, i was just following the guide(gues i rly screwd it up), so i should do like 10,11,12,13,etc?
When I used to use RunOnce I always incremented in 5s, i.e. 005, 010, 015 that way if I added new programs I didn't need to keep altering the numbers of the ones already there

#7 User is offline   ripken204 

  • The Hardware Guy
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6,311
  • Joined: 23-December 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 September 2005 - 03:34 PM

thats wut the gued said, i just added some extra 0's b/c i wasnt paying attention or something like that

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy