Help - Search - Members - Calendar
Full Version: Easy RunOnceEx.cmd
MSFN Forums > Unattended Windows Discussion & Support > Application Installs
Pages: 1, 2, 3, 4, 5, 6, 7, 8

   


Google Internet Forums Unattended CD/DVD Guide
eagle00789
I'm creating a program to make it much easyer to write "RunOnceEx.cmd".
Vote on the poll and give me your opinion

Upcoming Version: v2.6.1.0 RC4
Changes in this upcoming version:
* The database updates will be back in the next version.
* Set a preference on when to update the program (Choises will be: Manual, on program exit)
* More programs already added to the database
* Updated helpfile to include more difficult programs
* [possibly] Support for XMLInst by PryGuy ( Votes: Yes 0 | No 0 to vote, please send me a PM)

Current Version: v2.6.1.0 RC3
To download, right here
* To install it complety silent, run it with "/verysilent /accept". The accept portion indicates that you agree with both the licenses. If you want a copy of these licenses, please send me a PM.
* Update is now partially working again. Only the program is updatable for now.

Programs Currently in database
7Zip
ABC - Another Bit Torrent Client 2.6.5
Acdsee 6.03
Acrobat Reader 6.0
Ad Muncher
Ad-Aware Pro
Alcohol 120%
AM-DeadLink v2.00
AOL Instant Messenger
AVG Anti Virus Program
BitTornado 0.3.7
Boot XP
Cisco VPN Client
Command Prompt Explorer Bar 1.1
Connectix Virtual PC
Connectix Virtual PC IS Script
ConTEXT 0.97
Corel Photo Album
Crap Cleaner v110
Creative Audigy/Live Driver
Customizer XP 1.8.5
Daemon Tools
DeepBurner 1.1.1.128
DreamweaverMX
DUMeter 3
DVD Region Free 5.01
Easy CD Creater 5.0
Easy CD Creater 6.0
Emule 0.42
FastFolders v3.0.0
FileZilla v2.2.7b
Fireburner 2.2.1
FireFox 9.3 Browser
F-Prot AntiVirus
FreshUI 6.80
GetDiz 3.0
GetRight
Google Toolbar
Google Toolbar (without advanced features)
Gunbound 3.06
ieSpell - A Spell Checker for Internet Explorer
iISystem Wiper v2.3
Incredimail XE
Index.dat Suite v2.6.0
IsoBuster V1.6
Jasc Paint Shop Pro 8
Journal Viewer 1.5
Kazaa Codec Pack
Kazaa Lite K++ 2.43
Kazaa Lite Resurrection
Lavasoft Ad-Aware 6 Build 181
Logon Loader
MagicTweak
Media Encoder 9
Messenger Plus 2.54
Messenger Plus 2.54 (Without Sponsor)
Microsoft .Net 1.1
Microsoft Money 2004
Microsoft Office 2003 Professional
Microsoft Visual Basic 6 Runtimes
Mozilla 1.6
MRU-Blaster v1.5
MSFN Toolbar Icon
MusicMatch Jukebox
Nero Burning ROM 6.0.0.23+
Netscape 7.02
Norton Ghost
Norton Systemworks 2003
O&O Professional Defrag 6
Paint Shop Pro X
Partition Magic 8.0
PC Cillin
PC Wizard 2004 v1.632
Pdf Creator
Perfect Disk 6
Pop Up Cop
PowerDesk 5 Pro
PowerDesk 5.0
Preparing Installation...
QCD Player
Quick Par
QuickTime Alternative
Real Alternative
RealPlayer One v2
RealVNC 3.3.7
Registry Tweaks
Resplendent Registrar 3.21
SiSoft Sandra Pro MAX3
skype .95 beta
Slim Browser v4.00.2
SpyBot Search & Destroy
SpywareBlaster
Sun Java VM 1.4.2
Sun Java VM 1.4.2.05
Sygate Personal Firewall
Symantec Antivirus Corporate 8.1
Symantec Antivirus Corporate 9
Text Pad
TightVNC
TuneUp Utilities
TuneUp Utilities (Extracted)
Tweaknow PowerPack
TweakUI 2.10 Powertoy
TweakXP Pro 2.0
VideoLAN 0.7.2
Visual CD v 1.8
WinAmp 5.1
Windows MediaPlayer 9
Windows XP Support Tools
WinISO 5.3
WinRAR 3.20
Winscp 2.3
WinXP Image Resizer Power Toy
WMP 9 Bonus Pack
Works7
XoftSpy 3.4.4
Yahoo Messenger 5.6
mazin
I'm the second voice (1st after yours). Come on!
MCT
i voted yes too!

i dont use runoce.. but it would be good for other ppl biggrin.gif
i use xplode.. which is kinda similar but not really tongue.gif
eagle00789
Well, i don't understand anything of XPLode, so that's why i had the idea to create this small (about 200kb in size as for now, but loading still not functional) program
mazin
QUOTE (MCT @ Aug 9 2004, 01:35 AM)
i voted yes too!

i dont use runoce..~~~ biggrin.gif
i use xplode.. ~~~ tongue.gif

hmm...so you left RunOnceEX...you're moving fast tongue.gif
MCT
lol .. indeed tongue.gif xplode has a nicer/more customizable GUI tongue.gif lol
sleepnmojo
You don't really need a gui to do it at all. I have a cmd script that just parses the directories looking for a file, which has the title, and commands. Which ends up building my script. This keeps all my commands localized to a folder, so if I want to remove the program, I just move the folder, or the cmd file I parse. it's pretty simple.
eagle00789
here it is, the first official screenshot (more info to come)
visaversa
Looks nice indeed
gresh
sleppnmojo: care to share that cmd file of yours?
mazin
Looks simple. Go ahead. I'm lazy enough, so I need a proggy to create it for me. tongue.gif
sleepnmojo
QUOTE (gresh @ Aug 9 2004, 08:01 AM)
sleppnmojo: care to share that cmd file of yours?

i'll post it when I get back from work. Should I just create a new topic, or reply to this?
kobayashi
Hi all,

Where can i find this pretty tool ??
mazin
QUOTE (kobayashi @ Aug 11 2004, 10:51 AM)
Hi all,

Where can i find this pretty tool ??

Under construction. I hope it's coming soon. Keep visiting, like me. tongue.gif
eagle00789
you can't at the moment, i'm stil developing it, but i'm wrapping it up right now. i'm working on the loading of existing RunOnceEx.cmd files. it's almost finished
mazin
QUOTE (eagle00789 @ Aug 11 2004, 10:54 AM)
you can't at the moment, i'm stil developing it, but i'm wrapping it up right now. i'm working on the loading of existing RunOnceEx.cmd files. it's almost finished

Good news. Is it a matter of few days?
eagle00789
QUOTE (mazin @ Aug 11 2004, 01:56 AM)
Good news. Is it a matter of few days?

yes, it is. i'm having some small troubles with the recognition of a few special lines.
Also, i'm already planning a new version. The new version wil contain a database of known programs, and is self-extendable (you can add your own programs), it also is updateable via the net.
kobayashi
good news !
take us inform so we test this app' and thanx for u reply thumbup.gif
sleepnmojo
In response to gresh
CODE
@ECHO OFF
   (
       ECHO @ECHO OFF
       ECHO CMDOW @ /HID
       ECHO.
       ECHO SET INSTALLDIR=%%SYSTEMDRIVE%%\install
       ECHO SET RUNONCE=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
       ECHO SET /A COUNTER=1
       ECHO.
       ECHO REG ADD %%RUNONCE%% /V TITLE /D "Installing Applications" /f
       ECHO REG ADD %%RUNONCE%% /V FLAGS /T REG_DWORD /D 0x00000030 /f
   ) > $OEM$\RunOnceEx.cmd

   CALL :RUNONCE_PARSE >> $OEM$\RunOnceEx.cmd

   (
       ECHO GOTO :EOF
       ECHO.
       ECHO :SET_INSTALL
       ECHO     SET COUNTER2=%%COUNTER%%
       ECHO     IF %%COUNTER%% LSS 10 SET COUNTER2=0%%COUNTER%%
       ECHO     IF NOT "%%~1"=="" REG ADD %%RUNONCE%%\%%COUNTER2%% /VE /D %%1 /f
       ECHO.
       ECHO     SET /A J=1
       ECHO     :LOOP
       ECHO         SHIFT /1
       ECHO         IF "%%~1"=="" GOTO :END_INSTALL
       ECHO         SET A=%%1
       ECHO         SET A=%%A:'="%%
       ECHO.
       ECHO         REG ADD %%RUNONCE%%\%%COUNTER2%% /V %%J%% /D %%A%% /f
       ECHO         SET /A J+=1
       ECHO     GOTO :LOOP
       ECHO     :END_INSTALL
       ECHO     SET /A COUNTER+=1
       ECHO GOTO :EOF
   ) >> $OEM$\RunOnceEx.cmd
GOTO :EOF

:RUNONCE_PARSE
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION & PUSHD $OEM$\$1\INSTALL
   FOR /D %%D IN (*) DO (
       SET LINE=CALL :SET_INSTALL

       PUSHD %%D
       IF EXIST CMD.INSTALL (
           FOR /F "EOL=; DELIMS=" %%I IN (CMD.INSTALL) DO (
               SET TEMP_I=%%I
               SET TEMP_I=!TEMP_I:\=\\!
               IF "!TEMP_I!"==" " (
                   SET LINE=!LINE! ""
               ) ELSE (
                   SET LINE=!LINE! "!TEMP_I:"=\'!"
               )
           )
           ECHO !LINE!
       )
       POPD
   )
POPD & ENDLOCAL
GOTO :EOF

I pulled this from my script that makes my cd image. I didn't test it. It should be run on the same level as $OEM$. It will parse through $OEM$\$1\INSTALL, going 1 directory deep, looking for cmd.install.

A sample cmd.install in $OEM$\$1\INSTALL\winamp\cmd.install
CODE
Winamp 5.04
%INSTALLDIR%\Winamp\winamp504_full.exe /S /install=SFQR
TASKKILL /F /IM WINAMP.EXE
CMD.EXE /Q /C XCOPY %INSTALLDIR%\Winamp\Skins\*.* "%PROGRAMFILES%\winamp\skins"
;copy over config stuff
CMD.EXE /Q /C COPY %INSTALLDIR%\Winamp\winamp.ini "%PROGRAMFILES%\winamp"
CMD.EXE /Q /C COPY %SYSTEMDRIVE%\install\Winamp\winamp2.ini %SYSTEMROOT%\winamp.ini

First line is title, a space represents an empty line, which won't show anything in the menu on runonceex, all following lines are commands, except those starting with ;

And before anyone asks why do I have a SET_INSTALL procedure in my runonceex.cmd; Its because thats how I originally had it, till I decided to parse the directories. If I had to rewrite this, I would probably integrate it all together.

::added ECHO OFF for people who can't get it to work properly
eagle00789
I'm releasing a first beta version of this program.

To download. follow this link: Click this link

To add multiple commands under 1 program name, just leave the field Program Name blank.
Deleteing or editing of commands is not jet supported
Loading is only supported by 2 lines (no commands yet)
Saving is fully supported
A website is being created for this
bonedaddy
very nice and when it gets the edit function it will be dynamite, thanks

for the nice tool. I am looking forward to its dev.

bonedaddy
eagle00789
in about an hour, i'm going to unattend install my pc, then i have to reinstall my development-apps and then i can continue with the work i'm doing on Easy RunOnceEx.cmd v1.0b. In that hour, i'm also continuing that work.
mazin
Just two notes:

- the main window isn't resizable.
- "Add Command" dialog box doesn't have a "Cancel" button.

Nice utility. yes.gif
eagle00789
i'm going to change that. thx for those tips
just still no luck on the reinstall of my pc yet
mazin
QUOTE (eagle00789 @ Aug 13 2004, 11:28 PM)
just still no luck on the reinstall of my pc yet

Take your time. thumbup.gif
eagle00789
i'm now in the process of reinstalling my development tools. (i haven't found any silent switches for it yet)
mazin
Oh! I forgot to say: the main window isn't centered on screen by default.

Thanks.
eagle00789
I just resumed the work on it, and am taking the following points:
Todo:
  • the main window isn't resizable (done)
  • "Add Command" dialog box doesn't have a "Cancel" button (done)
  • the main window isn't centered on screen by default (done)
  • Finish the saving (done)
  • Add the ability to edit a command (done)
  • Ask to overwrite an existing RunOnceEx.cmd file (done)
  • Create an installer (done)
Thanks for some of those tips mazin

I will be editing this post to see the progress.
Bâshrat the Sneaky
QUOTE (eagle00789 @ Aug 15 2004, 10:18 PM)
I just resumed the work on it, and am taking the following points:
Todo:
  • the main window isn't resizable (done)
  • "Add Command" dialog box doesn't have a "Cancel" button (done)
  • the main window isn't centered on screen by default (done)
  • Finish the saving (done)
  • Add the ability to edit a command
  • Ask to overwrite an existing RunOnceEx.cmd file (done)
Thanks for some of those tips mazin

I will be editing this post to see the progress.

Good work!

This would save some time (again!)!!!

I would really really really like it! newwink.gif biggrin.gif
Pauly
wow gj for the tool im looking forward to the final release because i'm pretty sure it will greatly help a newb like me wacko.gif
mazin
Are these dones available now if I download it again?
Bâshrat the Sneaky
@ eagle00789: If you need someone to host it for you, I can! Just send me a PM or contact me through MSN or email!
eagle00789
QUOTE
@ eagle00789: If you need someone to host it for you, I can! Just send me a PM or contact me through MSN or email!
I Have a webserver, that came with my Internet Service Provider. i can put 25 mb up that webserver, so space is not a problem. the speed is perfect, so that is not a problem either.
The dones dont mean that if you downoad now, that the are available.
mazin
Well!

Assuming that Program File = Path to the executable, can you create a field for this path on the main window so that it's entered only once?

Thanks.
eagle00789
QUOTE (mazin @ Aug 15 2004, 03:39 PM)
Well!

Assuming that Program File = Path to the executable, can you create a field for this path on the main window so that it's entered only once?

Thanks.

Will do that, but not yet included.
In the mean time, you can do fine with this one. it includes an installer/uninstaller for easy use for a beginner. A descent help-file is being created.
Click this linkNote: The other file is no longer available at my server. i deleted it.
I also included a nice aboutbox. I wonder who is able to find it
Shoshoni
It won't save.
eagle00789
QUOTE (Shoshoni @ Aug 15 2004, 04:24 PM)
It won't save.

what did you do, so i can recreate the problem
eagle00789
I just uploaded a new version. the downloadlocation is still here
This version includes a small help-file
mailox
QUOTE (eagle00789 @ Aug 15 2004, 05:30 PM)
I just uploaded a new version. the downloadlocation is still here
This version includes a small help-file

thanks cant get it to save either added in boxes save no save
mazin
I've just downloaded the new release. It's much better than the previous one. It includes more enhancements. The "About" button? It can be accessed by a left-click on the icon at the upper left corner of the main window.

As shown in the attached image, every time I want to add a new application to my RunOnceEX.cmd, I should type the path to the app.

What I suggest is place a field on the main window to type the main path in. So, when I type %CDROM%\Install\ in that field, it's copied automatically to "Program File" field in the "Add Command" dialog box.

You've already created a similar field for the "Title" on the main window.

I should say that this is merely a suggestion. It only makes work easier.

Future enhancements:

- Entries in the main table can be edited by a double-click.
- When we click "Add" on the main window, the tabstop goes directly to the "Description" field in the "Add Command" dialog box.
- In the "Add Command" dialog box, pressing "Enter" on the keyboard should move the tabstop to the next field.

Oh! And where does it save the CMD?

Thanks. Keep up the good work.
prathapml
Nice utility you have here....
Keep up the good work.
Shoshoni
I just click save and then the dialog comes up. then i click save again and that doesn't work.
--=ddSHADOW=--
Great utility thumbup.gif
eagle00789
I just descovered that it was indeed impossible to save. I will change this later today
eagle00789
The problem with saving is solved in the new version. you can download it from Click this link
eagle00789
QUOTE
What I suggest is place a field on the main window to type the main path in. So, when I type %CDROM%\Install\ in that field, it's copied automatically to "Program File" field in the "Add Command" dialog box.

<snip>

Future enhancements:

<snip>

That extra field will be done in the next version. I suggest everyone to post there installpath (something like: "%systemdrive%\install\", or "%cdrom%\apps\") here, so i can add those as predefined. this will make it a lot easy-er.

The Next version enhancements: (done is not yet available in the version that you download now)
  • Extra field where you type your path (done)
  • Entries in the main table can be edited by a double-click (done)
  • When we click "Add" on the main window, the tabstop goes directly to the "Description" field in the "Add Command" dialog box (done)
  • In the "Add Command" dialog box, pressing "Enter" on the keyboard should move the tabstop to the next field (done)
Things for the far future:
  • Database containing a lot of apps with switches
mazin
Thank you very much for your time.

Oh! Would you please put a permanent link for download on your first post?
oioldman
Appears to be a very useful tool.
Will try when home, though I do have one comment,
You say early on it will only check 1 folder down, will this change incase it is nested further than this?

Not sure I have any apps that need it, but you never can tell.
eagle00789
QUOTE
You say early on it will only check 1 folder down, will this change incase it is nested further than this?

That was not meant for me, but it was for that .cmd file Sleepnmojo posted in this thread
eagle00789
No problem. im happy to do it.

The latest version is downloadable from Click this link

Greetings Eagle00789. Enjoy this fine program and Happy Unattending




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.