MSFN Forum: Easy RunOnceEx.cmd - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
  • 20 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Easy RunOnceEx.cmd Rate Topic: -----

Poll: Do you want it to be easy to create RunOnceEx.cmd (2046 member(s) have cast votes)

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

  1. Yes (1670 votes [91.61%])

    Percentage of vote: 91.61%

  2. No (33 votes [1.81%])

    Percentage of vote: 1.81%

  3. What whould be the function? (60 votes [3.29%])

    Percentage of vote: 3.29%

  4. Maybe (60 votes [3.29%])

    Percentage of vote: 3.29%

Vote Guests cannot vote

#11 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 09 August 2004 - 08:13 AM

Looks simple. Go ahead. I'm lazy enough, so I need a proggy to create it for me. :)


#12 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 09 August 2004 - 11:17 AM

gresh, on Aug 9 2004, 08:01 AM, said:

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?

#13 User is offline   kobayashi 

  • Group: Members
  • Posts: 9
  • Joined: 11-August 04

Posted 11 August 2004 - 01:51 AM

Hi all,

Where can i find this pretty tool ??

#14 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 11 August 2004 - 01:54 AM

kobayashi, on Aug 11 2004, 10:51 AM, said:

Hi all,

Where can i find this pretty tool ??

Under construction. I hope it's coming soon. Keep visiting, like me. :)

#15 User is offline   eagle00789 

  • MSFN NutCase
  • PipPip
  • Group: Members
  • Posts: 281
  • Joined: 06-August 04

Posted 11 August 2004 - 01: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

#16 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 11 August 2004 - 01:56 AM

eagle00789, on Aug 11 2004, 10:54 AM, said:

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?

#17 User is offline   eagle00789 

  • MSFN NutCase
  • PipPip
  • Group: Members
  • Posts: 281
  • Joined: 06-August 04

Posted 11 August 2004 - 02:17 AM

mazin, on Aug 11 2004, 01:56 AM, said:

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.

#18 User is offline   kobayashi 

  • Group: Members
  • Posts: 9
  • Joined: 11-August 04

Posted 11 August 2004 - 02:37 AM

good news !
take us inform so we test this app' and thanx for u reply :)

#19 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 11 August 2004 - 04:18 PM

In response to gresh
@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 User is offline   eagle00789 

  • MSFN NutCase
  • PipPip
  • Group: Members
  • Posts: 281
  • Joined: 06-August 04

Posted 13 August 2004 - 07:54 AM

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

#21 User is offline   bonedaddy 

  • Bonafide Member
  • PipPipPip
  • Group: Members
  • Posts: 454
  • Joined: 20-October 03

Posted 13 August 2004 - 09:03 AM

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

#22 User is offline   eagle00789 

  • MSFN NutCase
  • PipPip
  • Group: Members
  • Posts: 281
  • Joined: 06-August 04

Posted 13 August 2004 - 09:59 AM

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.

#23 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 13 August 2004 - 01:52 PM

Just two notes:

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

Nice utility. :yes:

#24 User is offline   eagle00789 

  • MSFN NutCase
  • PipPip
  • Group: Members
  • Posts: 281
  • Joined: 06-August 04

Posted 13 August 2004 - 02:28 PM

i'm going to change that. thx for those tips
just still no luck on the reinstall of my pc yet

#25 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 13 August 2004 - 02:52 PM

eagle00789, on Aug 13 2004, 11:28 PM, said:

just still no luck on the reinstall of my pc yet

Take your time. :thumbup

#26 User is offline   eagle00789 

  • MSFN NutCase
  • PipPip
  • Group: Members
  • Posts: 281
  • Joined: 06-August 04

Posted 15 August 2004 - 01:08 PM

i'm now in the process of reinstalling my development tools. (i haven't found any silent switches for it yet)

#27 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 15 August 2004 - 01:33 PM

Oh! I forgot to say: the main window isn't centered on screen by default.

Thanks.

#28 User is offline   eagle00789 

  • MSFN NutCase
  • PipPip
  • Group: Members
  • Posts: 281
  • Joined: 06-August 04

Posted 15 August 2004 - 02: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 (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.

#29 User is offline   Bâshrat the Sneaky 

  • aka Wim Leers
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,214
  • Joined: 29-October 03
  • OS:none specified
  • Country: Country Flag

Posted 15 August 2004 - 03:12 PM

eagle00789, on Aug 15 2004, 10:18 PM, said:

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! ;) :D

#30 User is offline   Pauly 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 27-July 04

Posted 15 August 2004 - 03:12 PM

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:

Share this topic:


  • 20 Pages +
  • 1
  • 2
  • 3
  • Last »
  • 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