
evilvoice
MemberContent Type
Profiles
Forums
Events
Everything posted by evilvoice
-
Help with IF statement in CMD file.
evilvoice replied to Denney's topic in Unattended Windows 2000/XP/2003
cls CMDOW.EXE @ /VIS set log=c:\temp1.log set /p floppy="Do you have any MSA update floppies (y/n)? " CMDOW.EXE @ /HID :UPDATEFLOPPY if %floppy%==y ( echo. echo "COMPSETUP.CMD (20): Setting up MSA floppies:" if NOT exist a:\msaxp.fpy ( echo "COMPSETUP.CMD [23]: No MSA update floppy detected." cls %systemdrive%\MSA\UTILITIES\CMDOW.EXE @ /VIS echo Please place an MSA update floppy into your A: drive. pause %systemdrive%\MSA\UTILITIES\CMDOW.EXE @ /HID ) ) > %log% that works... this is what temp1.log contains. "COMPSETUP.CMD (20): Setting up MSA floppies:" "COMPSETUP.CMD [23]: No MSA update floppy detected." Please place an MSA update floppy into your A: drive. Press any key to continue . . . -
Help with IF statement in CMD file.
evilvoice replied to Denney's topic in Unattended Windows 2000/XP/2003
what do you mean by nested...gimme example...btw, you dont even need the () or [] or anything...if you do not answer y it basically quits -
Help with IF statement in CMD file.
evilvoice replied to Denney's topic in Unattended Windows 2000/XP/2003
disregard post...tested it and it works, good job GM -
can someone check batch file?
evilvoice replied to evilvoice's topic in Unattended Windows 2000/XP/2003
Ah HA! thats actually really cool...i may have to put that in my global "things to do with cd before creating cd" file...which lists everything I need to do before I burn the finished product. -
Help with IF statement in CMD file.
evilvoice replied to Denney's topic in Unattended Windows 2000/XP/2003
raverod, check this topic out...one i need your help on the question for you...but 2, because maybe the thing at the end will help you... here if you could answer my question, great, but here is the way I think you should change your if statement if %floppy%==y ( echo. echo COMPSETUP.CMD (20): Setting up MSA floppies: ) >> %log% and now for the reason why it works this way, i think in theory...lets say everything for if is if this then this...well the () is the first part of the last this, but you never tell it what to do with the ()...ie, you never finish "then this" of the if statement. -
can someone check batch file?
evilvoice replied to evilvoice's topic in Unattended Windows 2000/XP/2003
gunsmokingman, the problem is that using echo to store the line in another file is what causes an error...I forget how to pull up what is allowed for using ">"'s, but you are not able to just simply >nul >close.cmd, now I havent tried your method, but it seems you are running that at commandline and not actually ECHO'ing it to another file to run, so I may be wrong. I would like to say thank you to everyone...finally got what seems to be a working version...used both sleepnmojo and jdoe combined...for some reason the %n% of sleepnmojo's wouldnt store in the file, and using jdoes idea of cleaning stuff which I dont need, like set n, set and endlocal. So here it is finished...still cannot get it to delete without error, always comes back with cannot find...But what this batch file does is to use multiple runonceex.cmd's and allow for a 2cd install, where 2cd.cmd contains the runonceex.cmd settings for the 2nd cd, and if youve looked at the multiple runonce thread, you should know the other part of the cmd file... TITLE WindowToClose ( ECHO ping -n 120 127.0.0.1 ^>nul ECHO CMDOW.EXE WindowToClose /CLS ECHO EXIT ) > %WINDIR%\CLOSE.CMD call common.cmd If /I %computername%==Computer GOTO Comp1 ELSE GOTO Comp2 :Comp1 call Comp1.cmd GOTO END :Comp2 call Comp2.cmd GOTO END :END START %WINDIR%\CLOSE.CMD set /p Install="For a 2cd setup, Press Y" If %Install%==Y CALL 2cd.cmd ECHO Done EXIT Attached is the cmd window with the error... -
Advanced Options check box in search menu
evilvoice replied to jammupatu's topic in Unattended Windows 2000/XP/2003
after checking with inctrl5 and regshot, it does not seem to be a reg setting to auto check advanced. -
can someone check batch file?
evilvoice replied to evilvoice's topic in Unattended Windows 2000/XP/2003
now without sleep.exe TITLE WindowToClose ECHO setlocal ENABLEEXTENSIONS & set n=120 > %WINDIR%\CLOSE.CMD ECHO ping -n %n% 127.0.0.1 >nul >> %WINDIR%\CLOSE.CMD ECHO CMDOW.EXE WindowToClose /CLS >> %WINDIR%\CLOSE.CMD ECHO endlocal >> %WINDIR%\CLOSE.CMD ECHO DEL /F /Q %WINDIR%\CLOSE.CMD >> %WINDIR%\CLOSE.CMD ECHO EXIT >> %WINDIR%\CLOSE.CMD call common.cmd If /I %computername%==Computer GOTO Comp1 ELSE GOTO Comp2 :Comp1 call Comp1.cmd GOTO END :Comp2 call Comp2.cmd GOTO END :END START %WINDIR%\CLOSE.CMD set /p Install="For a 2cd setup, Press Y" If %Install%==Y CALL 2cd.cmd ECHO Done I noticed another post talking about ping, but I found this on the webpage for the creator of cmdow...I just used the pertinent info from it. I would like to know how to get this into the cmd file correctly ECHO ping -n %n% 127.0.0.1 >nul >> %WINDIR%\CLOSE.CMD Another thing, everytime I run the cmd file, it says it cannot find close.cmd when deleting...any idea why? It does delete the file, but I just wanna know how to get rid of that message. -
Advanced Options check box in search menu
evilvoice replied to jammupatu's topic in Unattended Windows 2000/XP/2003
When searching, advanced options does need to be checked...I added reg tweaks to allow the searching of hidden and whatnot, and when I click on advanced they are all selected, but if I dont click on advanced, it WILL NOT search through the windows folder...has been tested by me...was looking for close.cmd, which existed in windows dir, searched without advanced, didnt find anything, clicked advanced and it found it in windows...it would be nice to find this reg tweak to allow that to be checked...I may use inctrl5 to find it...depends on how i feel. -
can someone check batch file?
evilvoice replied to evilvoice's topic in Unattended Windows 2000/XP/2003
very good find, thank you -
can someone check batch file?
evilvoice replied to evilvoice's topic in Unattended Windows 2000/XP/2003
I musta not explained about the echo.... echo. > %systemdrive%\MSA\%NewAdmin% Why does this command exist...this would be better for raverod since its his command...if someone does know why it exists in usersetup.cmd/bat then by all means comment, but I do know how to use echo and how to store text in a file from dos/command window, so please, lets not reply with telling me how to do it...I wanna know why it exists. PS. thank you for the reply jdoe...will test in a sec Ok update...cmdow does close the window, very cool...but it doesnt close the "close.cmd" window at the end...will test by adding EXIT to the end of the creation of close.cmd -
to mods and crahak....I notice crahak is making a database of regtweaks posted here, and Im sure it will only contain each tweak once...when this happens, could somebody maybe delete this thread, and just post a new topic with the first post being the "collected" regtweaks? Im not sure how easy it is to delete an entire thread as Ive never run a forum before...all these postings and whatnot seem a little mindnumbing.
-
http://unattended.msfn.org
-
can someone check batch file?
evilvoice replied to evilvoice's topic in Unattended Windows 2000/XP/2003
process can be found here... thank you for the comment on else...I was thinking about that, but was not 100% sure if it would work that way Actually I know what echo does...but where does it put an empty line, and why? -
Ok, now normally I would post this in the topic it sorta belongs in, but my question doesnt pertain to the part of the batch file that the topic talks about... This is the scenario... I would like to be able to add a variable for 2cd install within the multiple runonceex.cmd batch...this is what I have so far call common.cmd If /I %computername%==Computer GOTO Comp1 If /I NOT %computername%==Computer GOTO Comp2 :Comp1 call Comp1.cmd GOTO END :Comp2 call Comp2.cmd GOTO END :END start process.exe -q cmd.exe 120 set /p Install="For a 2cd setup, Press Y" If %Install%==Y CALL 2cd.cmd ECHO Done Ok now for whats going wrong...process, which is supposed to wait 120 seconds to kill the cmd window, does not wait. I would like to be able to plug something in that if I do not hit "Y" at that time, that it will exit the batch and continue with installation at some point...or can I add runonceex variables at t-39? since I am using detachedprogram to set up users...which, btw, I have a question for raverod, if he reads this... what is this? echo. > %systemdrive%\MSA\%NewAdmin% I mean why do you have that line in there? I am wondering because I need to know if I need to change something with my OEM folder for your usersetup.bat to work...I changed the MSA\Utilities locations to correspond with my own, and Im thinking about deleting the remoteadmin part
-
well, it sets the level of compression, 21 being best and I think 15 being lowest...kinda like winrar. If I remember correctly, its been a loooong time since I played with makecab, back when Barts Disks were still being updated...since he has moved to BartPE
-
I will almost guarantee its because of your winnt.sif, the classic start menu is a usual command in winnt.sif
-
<item display='Creating Start Menu shortcuts'> <shortcut display='WinRAR' program='%ProgramFiles%\WinRAR\WinRAR.exe' description='WinRAR' workdir='%ProgramFiles%\WinRAR' arguments='%1' link='%ALLUSERSPROFILE%\Start Menu\Programs\Music\Winrar.lnk'/> try that...i think thats how its supposed to work...I dont like spaces...especially when im not 100% sure that it will see the directory correctly...but people who use xplode should know...I just havent upgraded to it yet, am still trying to perfect everything else before moving over...
-
CMDLINES question about Hkey_Classes_Root
evilvoice replied to j4ever's topic in Unattended Windows 2000/XP/2003
HKCR should be with HKLM...HKCU only needs to be in cmdlines.txt because after that it breaks into multiple HKCU's in theory...youve got one fro administrator (this is who you login as first) and one for default user...if you apply HKCU later than cmdlines.txt the tweaks will all revert to your login (Administrator) and therefore anyone else logging in will not receive the tweaks (since a new user will take on the reg settings of default user)...technically your reg tweaks should be applied at runocneex (or somewhere around there)...hope this sheds some light. -
Problems installing drivers with F-6 Unattend CD
evilvoice replied to Aland's topic in Device Drivers
hmmm, I dont want you to think im being mean....in fact for the longest time I thought mine was different from everyone else's too...then I found out differently. I hope you dont think i was being mean. -
Problems installing drivers with F-6 Unattend CD
evilvoice replied to Aland's topic in Device Drivers
BAM, if you use winnt.sif, then you dont...txtmode will still display the option of pressing f6, but when you do, you will have the same problem as aland...I believe microsoft even talks about winnt.sif breaking F6 in their manual on unattended installs. -
Problems installing drivers with F-6 Unattend CD
evilvoice replied to Aland's topic in Device Drivers
you cant...in the course of making an unattended cd, it breaks the F6 (I think its by simply using winnt.sif) if you remove winnt.sif, f6 will work...the reason noone touches it is ITS BEEN SAID, COVERED, BEATEN TO DEATH WITH A STICK...if you dont use winnt.sif, then your iso is broken -
its inno setup installer...same switches should work
-
Driverpack Sound - V5.03.1 & V5.03
evilvoice replied to Bâshrat the Sneaky's topic in The General Stuff
hmm, i downloaded it, ran the setup, waited until after it displays the readme and then went to my temp dir...if you look in data1.cab theres tons of files, and one inf...im not sure but that inf looks like it is the driver installer, or looks like all the other driver inf's ive looked at. but as far as i can tell, its only for one driver...a 24mb download should have at least more than one driver...dunno if its any help or not...I dont think the inf's are in the msi's FWIW. But thats all i got...you could try a installshield decomplier and see what it comes up with. though you are missing the hdr file, but who knows.