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 working on version 2.0 right now.
Pauly
awesome job

this database could really become the "official" program switches database and if it could be regularly updated with everyone posting new apps switches im pretty sure this could help ALOT of people.

sticky ?
Bâshrat the Sneaky
Well done! thumbup.gif:

And... woot.gif you're using an EXTREMELY FAST server!!!! 855 kilobyte/sec here! ohmy.gif

P.S.: I'll add it to my translation of MSFN's tutorial too, if you don't mind!
mazin
QUOTE (eagle00789 @ Aug 18 2004, 05:45 PM)
I'm working on version 2.0 right now.

Take care of this switch: /Reboot=Suppress. It's not correct if used with the slash.
eagle00789
@Bâshrat the Sneaky: I don't mind. go ahead. By the way, that server is from my internet service provider

@mazin: For wich program, or is it in the default switches part
mazin
QUOTE (eagle00789 @ Aug 18 2004, 06:39 PM)
@mazin: For wich program, or is it in the default switches part

25;'Norton Systemworks 2003';'Setup.exe';'/qn /Reboot=Suppress';0
Alanoll
QUOTE (eagle00789 @ Aug 18 2004, 10:39 AM)
@Bâshrat the Sneaky: I don't mind. go ahead. By the way, that server is from my internet service provider

@mazin: For wich program, or is it in the default switches part

really and truly, is any Windows Installer installs if you it showed more then once whistling.gif


As for teh "official" database, perhaps (I haven't opened the program yet) but not everyone uses RunOnceEX, though this will probally convert a good chunk of those batch peopel seeing as it could be easier.
prathapml
QUOTE (eagle00789 @ Aug 18 2004, 09:09 PM)
@mazin: For wich program, or is it in the default switches part

Basically, the reboot is a Windows Installer property, not a switch. So, wherever you have an MSI setup, the correct way to reject a reboot is
CODE
REBOOT=Suppress
(note that there was no "/" preceding it).


Moreover, some installers want the property to be all capitals, which is why I have it that way above ("REBOOT" and not "Reboot"). Also, some I've seen some setups needing
CODE
REBOOT=ReallySuppress
(that switch to reject a reboot, instead of the one to simply "suppress" above)
mazin
Well, prathapml!

No problem giving a quick shot /off topic/. This is what I say:

Reboot is a property. (Nobody said it's a switch)
Either Suppress or ReallySuppress is a value.
Either Reboot=Suppress or Reboot=ReallySuppress is a switch, as I said above. Why? Because any command put on the command line for the purpose of changing the behaviour of installation MUST be called a switch.
Or I should say: What does a property do if put on the command line? Nothing, of course!

Moreover, those switches aren't picked arbitrarily. Each switch has its own purpose.
Plus, Reboot=S and Reboot=R are also correct! No slash in either case, as I said above.

ChEeRs!
eagle00789
QUOTE (eagle00789 @ Aug 18 2004, 05:20 AM)
@war59312: The autoupdate feature is on it's way in the next version. (Possibly 2.0) (done)
There will be a dropdown list, in wich you can type the name of the program. (done)
It will be sorted alfabeticly (done)
I Left the X out on purpose, so that you realy have to push the cancel button, because i know that many people like the X, but it's not a correct way of closing a program. (Will have a descent menu in the next version (done))

@Mazin: The user adding part will be incorporated in the next version. (done)

The new version with the above suggestions worked into it.
There is only 1 small thing. The Helpfile is NOT updated yes.
Also, the promised 250 programs that will be added to the database is not yet done. there is 1 program extra wich is not yet on the list. (Skype .95 beta is added)

If you want to add your own program to the Main database of the program, wich will be added in the updatefile, the submit your program to me thru a Private Message. Only submit the following:
QUOTE
ProgramName:
InstallerExecutable:
Parameters:
Extract:

The Extraction is only a yes or no. If extraction is needed in a special way, (like run the main installer and look in a special folder to find another file there) then include that in the pm.
`Felix`
QUOTE (eagle00789 @ Aug 18 2004, 06:47 PM)
QUOTE (eagle00789 @ Aug 18 2004, 05:20 AM)
@war59312: The autoupdate feature is on it's way in the next version. (Possibly 2.0) (done)
There will be a dropdown list, in wich you can type the name of the program. (done)
It will be sorted alfabeticly (done)
I Left the X out on purpose, so that you realy have to push the cancel button, because i know that many people like the X, but it's not a correct way of closing a program. (Will have a descent menu in the next version (done))

eagle, firstly thank you for all hard work and speedy dev time.

Couple of problems with v2.0

first is an error when i attempt to access the database see image below. second is the about box information still says v1.32 whistling.gif

Cheers,
Felix
eagle00789
That problem doesn't come from my program, but 1 (or more) of your installed programs my have replaced that dll with an older version. The 2nd problem will be solved tomorrow (it's 3:40 am here)
eagle00789
I've looked up the version of my msdart.dll file, and it's version 2.71.9042.0 If you post your version of that file (its in %systemroot%\system32), then we can compare what and where might be wrong

SmallUpdate of the program: Corrected VersionNumber in the aboutbox, showed a hand in the aboutbox on the pictures, so that you know that they are clickable
eagle00789
Update: The Helpfile now reflects the changes made in the program itself
darthyoda6
As long as you kepp the database in Access format it's easy enough to add in our own stuff.

Just out of curiosity, are you using VB or C++?
eagle00789
I used delphi 7 to create the program
Pauly
maybe you could add some predefined custom commands taht are not a program but would still be usefull to run in RunOnceEx

for example:
-applying registry tweaks from a file name RegTweaks.reg
-deleting Install folder
-deleting driver folder
- <put ideas here>
`Felix`
QUOTE (eagle00789 @ Aug 18 2004, 08:15 PM)
I've looked up the version of my msdart.dll file, and it's version 2.71.9042.0  If you post your version of that file (its in %systemroot%\system32), then we can compare what and where might be wrong

The version number must be the problem as now i have installed on another system and all is well thumbup.gif

Thanks for your help mate!

Felix
eagle00789
No problem. i'm just glad that it is working for you now (though it is on another machine)
mazin
I've got no problems with your new release. It works well.

Thanks.
war59312
Nice work. smile.gif

Might want to add /S some dont like /s. And maybe /Q.

Whoops. Two entries for everyone.



lol now three



Um getting the picture. newwink.gif

Every time you do add from database it adds another entry for every single one untill you close the app and reopen and its back to one and all over again.

See:



Also the add from database window is not saving its window after you close the app. It forgets.

Also the first time it does not open on the center of the screen.

Same with add to database.

Also for update you should add a cancel button.

May you should make the add button that same as the Add on the edit menu. You know same names and entries. newwink.gif

Can you make all the Program Paths have the same formatting.

Meaning this:

%cdrom%\Install\
%SystemDrive%\Install\
%SystemDrive%\Apps\
%SystemDrive%\
%cdrom%

Yea I'm picky. hehe

Also can you make it remember sizes of the sort by. You know the sizes of Description, Program File, And Parameters.

Also if you maximize the main window and then close it and reopen it. It just frogot the non maximized window size and postion. It just contintues to take up the screen as if maximized still.

Very anorying.

Thanks a ton,
Will

PS: Got any more bugs you need reproduced or just need help with let me know.
`Felix`
QUOTE (eagle00789 @ Aug 19 2004, 11:38 AM)
No problem. i'm just glad that it is working for you now (though it is on another machine)

Thats ok - the other system is in a state of decay and will be replaced soon smile.gif so i am pleased it runs on my other brand new machine thumbup.gif
eagle00789
QUOTE (war59312 @ Aug 19 2004, 09:40 PM)
Nice work. smile.gif

Might want to add /S some dont like /s. And maybe /Q.

Whoops. Two entries for everyone.



lol now three



Um getting the picture. newwink.gif

Every time you do add from database it adds another entry for every single one untill you close the app and reopen and its back to one and all over again.

See:



Also the add from database window is not saving its window after you close the app. It forgets.

Also the first time it does not open on the center of the screen.

Same with add to database.

Also for update you should add a cancel button.

May you should make the add button that same as the Add on the edit menu. You know same names and entries. newwink.gif

Can you make all the Program Paths have the same formatting.

Meaning this:

%cdrom%\Install\
%SystemDrive%\Install\
%SystemDrive%\Apps\
%SystemDrive%\
%cdrom%

Yea I'm picky. hehe

Also can you make it remember sizes of the sort by. You know the sizes of Description, Program File, And Parameters.

Also if you maximize the main window and then close it and reopen it. It just frogot the non maximized window size and postion. It just contintues to take up the screen as if maximized still.

Very anorying.

Thanks a ton,
  Will

PS: You can call me the bug man. hehe Got any more bugs you need reproduced or just need help with let me know.

The most of those problems will be solved in the next version. just hang on for it. i will post a new message to this thread as soon as it's released. I'm going to change the update feature also, so that you can update the program itself via the update feature
bonedaddy
@ eagle00789

hey, same problems as BUGMAN, but also won't let me

add to database, says something like"tlb can't write to

read only file".

also could you make it so we can make changes to program

path permanent.

thanks

bonedaddy
eagle00789
It will be done bonedady. also the not being able to add problem will be solved
dorguy
Somebody can tell me what is the use of the /f command in the RunOnceEx.cmd make with RunOnceEx.cmd Creator
eagle00789
I don't know what it is for, but if you look here: at this location, then you will see that they are also there. so i just guess that it is needed. that's the reason why i build that in
eagle00789
I just found out, that is it part of the Reg Add command, and means: "The existing registry-entry will be overwritten without notice". To see this for your self, go to start, run and type "cmd" (without the qoutes)
the press enter. at the commandline type "reg add /?" (without the qoutes). then look it up for yourself to verify
eagle00789
There is a large update to the program.
It now has an external update-program to let it allow program updates.
Also, the small bugs and suggestions from the above posts have been put in.
The download as usual can be found in my signature below.
eagle00789
Version 2.1.1.1 released. This version containes some bugfixes in the update-program and a few bugfixes with importing exisiting runonceex.cmd files where there was a leading 0 in some lines (Thanks for reporting this bonedaddy). do NOT use the update feature untill you are updated to this version. if you do, there is a big change that the database will be corrupted
runonce
eagle,

Just started playing with this prog, very cool.

I have a few questions: Is it possible to add other Program Paths to the drop down menu?

Also, when I use Edit/Add to Database I get an error message tblPrograms:Cannot modigy a read only dataset. Is there a way for the user to add additional program info to this program.

Lastly, is there a way to add registry commands for the app being installed to the RunOnceEx though this Program

Great Prog. Thanks
runonce
Eagle,

Just installed 2111. When I use the Database Update feature it sticks on the update sceen where it says Determinig the Update Possibilities. It notes my version but not the online version and the cancel button is not accessible.
eagle00789
when running 2111, there is no update available jet. As for the "Is it possible to add other Program Paths to the drop down menu?", you mean, add your own paths??
"Also, when I use Edit/Add to Database I get an error message tblPrograms:Cannot modigy a read only dataset. Is there a way for the user to add additional program info to this program." this should be solved in 2111.
"Lastly, is there a way to add registry commands for the app being installed to the RunOnceEx though this Program" Waht do you mean with that??
bonedaddy
@eagle00789

Hi getting better and better, but still can't add to data base, same error.

also when I have "sleep 30" at the beginning of RunOnce and load and

edit it is saved as "sleep 3", big diff from 30sec to 3sec. I am amazed

by you program authors, you put in a great deal of work and time. Just

a thanks again. I think new users to unattended will greatly benefit from

works like Easy RunOnce, nLite and the winamp installs.

bonedaddy

oh yes I lose the last line of winamp as well.
runonce
Eagle,

"Is it possible to add other Program Paths to the drop down menu?", you mean, add your own paths??
(Yes!)

when I use Edit/Add to Database I get an error message tblPrograms:Cannot modigy a read only dataset. Is there a way for the user to add additional program info to this program." this should be solved in 2111.
(I am still getting this error with 2111.)

is there a way to add registry commands for the app being installed to the RunOnceEx though this Program" Waht do you mean with that??
(What I was taking about is the command in line 3 below. Will the program enter the REGEDIT/S parameter or is that line for the reg tweak something we will have to add to the RunOnceEx bat file after your programs makes the application program entrys only.)

REG ADD %KEY%\010 /VE /D "Alcohol 120" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f
REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f

Thanks for all your hard work. This is an excellent app. thumbup.gif
eagle00789
QUOTE (runonce @ Aug 21 2004, 07:10 PM)
is there a way to add registry commands for the app being installed to the RunOnceEx though this Program" Waht do you mean with that??
(What I was taking about is the command in line 3 below.  Will the program enter the REGEDIT/S parameter or is that line for the reg tweak something we will have to add to the RunOnceEx bat file after your programs makes the application program entrys only.)

REG ADD %KEY%\010 /VE /D "Alcohol 120" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f
REG ADD %KEY%\010 /V 2 /D "REGEDIT  /S %systemdrive%\install\alcohol\register.reg" /f

When adding a command to the list, for a program that already has a command, just leave the field description blank. this will create a line in the list where the description is only a *. this is ok, because you can see this way, that the line with the star, belongs to the program above.
eagle00789
QUOTE
"Is it possible to add other Program Paths to the drop down menu?", you mean, add your own paths??
(Yes!)
Not yet. maybe in the next version.
QUOTE
when I use Edit/Add to Database I get an error message tblPrograms:Cannot modigy a read only dataset. Is there a way for the user to add additional program info to this program." this should be solved in 2111.
(I am still getting this error with 2111.)
is already (and again) a work in progress
eagle00789
QUOTE (eagle00789 @ Aug 22 2004, 05:24 AM)
QUOTE
when I use Edit/Add to Database I get an error message tblPrograms:Cannot modigy a read only dataset. Is there a way for the user to add additional program info to this program." this should be solved in 2111.
(I am still getting this error with 2111.)
is already (and again) a work in progress

This should be solved now, so Update is available. (version 2.1.2.1)
runonce
QUOTE
QUOTE (runonce @ Aug 21 2004, 07:10 PM)
is there a way to add registry commands for the app being installed to the RunOnceEx though this Program" Waht do you mean with that??
(What I was taking about is the command in line 3 below. Will the program enter the REGEDIT/S parameter or is that line for the reg tweak something we will have to add to the RunOnceEx bat file after your programs makes the application program entrys only.)

REG ADD %KEY%\010 /VE /D "Alcohol 120" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f
REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f 


When adding a command to the list, for a program that already has a command, just leave the field description blank. this will create a line in the list where the description is only a *. this is ok, because you can see this way, that the line with the star, belongs to the program above.


Eagle, I don't understand. Sorry.

Adding to the DB works great now. Thanks.
eagle00789
Just look at the below screenshot.
runonce
Eagle00789,

I get it it now thanks so much.
war59312
Still opening maximized.

And yea the update freezes.



So must crtl+alt+delete it.

Also when updating it puts a RunOnceExUpdate.ini file on the desktop every time.

With this of course:

CODE
[Version]
Database=2002
Program=2121


Well s*** windows still not opening centered. I understand since these are not top prority. newwink.gif Guess I'll give you a few more days before I post about it again. Oh and sorting too. newwink.gif
eagle00789
QUOTE (war59312 @ Aug 22 2004, 06:21 PM)
Still opening maximized.

And yea the update freezes.

So must crtl+alt+delete it.

Also when updating it puts a RunOnceExUpdate.ini file on the desktop every time.

With this of course:

CODE
[Version]
Database=2002
Program=2121


Well s*** windows still not opening centered. I understand since these are not top prority. newwink.gif Guess I'll give you a few more days before I post about it again. Oh and sorting too. newwink.gif

All these items are a work in progress, except for the sorting, becaus of the fact that you can have second and 3d commands for 1 program, you create another line in the list, that has to be in that precice program place, or else all will go wrong
Besides, try ALT + F4 when using the update
bonedaddy
by sorting, you are talking about "move up" and move down" buttons?

EDIT

which would be nice
eagle00789
QUOTE (war59312 @ Aug 22 2004, 06:21 PM)
Still opening maximized.

Well s*** windows still not opening centered. I understand since these are not top prority. newwink.gif

Would you be so kind to post your RunOnceEx.ini file, wich can be found in the directory you installed RunOnceEx.cmd Creator to?
bonedaddy
just curious if in the future we are going to be able

to save the following in database?

QUOTE
REG ADD %KEY%\050 /VE /D "Installing Winamp 5.04" /f
REG ADD %KEY%\050 /V 01 /D "%CDROM%\software\Winamp\Winamp.js" /f
REG ADD %KEY%\050 /V 02 /D "cmd.exe /c copy /Q %CDROM%\software\Winamp\Winamp.ini \"%systemdrive%\Program Files\Winamp\"" /f
REG ADD HKLM\SOFTWARE\Nullsoft\Install /v EXE /d %CDROM%\software\Winamp\Winamp.exe" /f


I tried to put it in the database using the method for normal

but no luck, using editor I see the additonal lines are there but are not

being added when asked.

thanks again
bonedaddy
eagle00789
QUOTE (bonedaddy @ Aug 23 2004, 05:57 AM)
just curious if in the future we are going to be able

to save the following in database?

QUOTE
REG ADD %KEY%\050 /VE /D "Installing Winamp 5.04" /f
REG ADD %KEY%\050 /V 01 /D "%CDROM%\software\Winamp\Winamp.js" /f
REG ADD %KEY%\050 /V 02 /D "cmd.exe /c copy /Q %CDROM%\software\Winamp\Winamp.ini \"%systemdrive%\Program Files\Winamp\"" /f
REG ADD HKLM\SOFTWARE\Nullsoft\Install /v EXE /d %CDROM%\software\Winamp\Winamp.exe" /f


I tried to put it in the database using the method for normal

but no luck, using editor I see the additonal lines are there but are not

being added when asked.

thanks again
bonedaddy

In the future that will be possible
eagle00789
QUOTE (bonedaddy @ Aug 23 2004, 05:57 AM)
QUOTE

REG ADD HKLM\SOFTWARE\Nullsoft\Install /v EXE /d %CDROM%\software\Winamp\Winamp.exe" /f


Hey BoneDaddy, what does the above line do. i can't seem to find it anywhere
bonedaddy
best ask Mazin, it was just an example, I don't even think it's used as such

any more. Mazin has cut it down to a single line now.

EDIT

I saw you there, it was on pg 15 about half way down.
eagle00789
I indeed was looking there, but in that post you mention, that key gets deleted. not added




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.