Easy RunOnceEx.cmd
#11
Posted 09 August 2004 - 08:13 AM
#12
Posted 09 August 2004 - 11:17 AM
gresh, on Aug 9 2004, 08:01 AM, said:
i'll post it when I get back from work. Should I just create a new topic, or reply to this?
#14
Posted 11 August 2004 - 01:54 AM
kobayashi, on Aug 11 2004, 10:51 AM, said:
Where can i find this pretty tool ??
Under construction. I hope it's coming soon. Keep visiting, like me.
#15
Posted 11 August 2004 - 01:54 AM
#16
Posted 11 August 2004 - 01:56 AM
eagle00789, on Aug 11 2004, 10:54 AM, said:
Good news. Is it a matter of few days?
#17
Posted 11 August 2004 - 02:17 AM
mazin, on Aug 11 2004, 01:56 AM, said:
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.
#18
Posted 11 August 2004 - 02:37 AM
take us inform so we test this app' and thanx for u reply
#19
Posted 11 August 2004 - 04:18 PM
@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
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
#20
Posted 13 August 2004 - 07:54 AM
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
#21
Posted 13 August 2004 - 09:03 AM
for the nice tool. I am looking forward to its dev.
bonedaddy
#22
Posted 13 August 2004 - 09:59 AM
#23
Posted 13 August 2004 - 01:52 PM
- the main window isn't resizable.
- "Add Command" dialog box doesn't have a "Cancel" button.
Nice utility.
#24
Posted 13 August 2004 - 02:28 PM
just still no luck on the reinstall of my pc yet
#25
Posted 13 August 2004 - 02:52 PM
eagle00789, on Aug 13 2004, 11:28 PM, said:
Take your time.
#26
Posted 15 August 2004 - 01:08 PM
#27
Posted 15 August 2004 - 01:33 PM
Thanks.
#28
Posted 15 August 2004 - 02:18 PM
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)
I will be editing this post to see the progress.
#29
Posted 15 August 2004 - 03:12 PM
eagle00789, on Aug 15 2004, 10:18 PM, said:
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)
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!
#30
Posted 15 August 2004 - 03:12 PM
- ← A GUI for selecting which program you'd like to install?
- Application Installs
- ConvertXtoDVD 3.x/4.x silent install - How to →



Help

Back to top









