@ alphawaves... Sorry to keep bothering you mate but, I am a little bit confused about the run all .reg files from the same location. The text you put does not mention any specific .reg file name. Should it or will it just execute all .reg files. I have not tested it as yet but i have amended the setupcomplete.cmd to this Does this look right ? I am off to test it now..... Cant remember doing so many fresh install in the same day. Might be some sort of new world record....
Hi... Well i just did my final install of the day. Work time is looming. Any how... I set this up The shortcut arrow was gone but windows animations was still active. i checked the registry and there was a "1" next to the MinAnimate. I ran the .reg file to test and the 1 turned to a zero. I am taking this that my .reg file works,it looks like this I must be getting the script wrong somehow. Any ideas....
I have just tested these....Works like a charm. i just had a thought i could make a nice little app with AMS to do both these actions. This would look good and let total novices use it...Says the me "The Expert" LOL...
tnx, better idea create a new folder in scripts, name it Tweaks, put the reg files and blank.ico inside Tweaks folder. Now use this code instead: Code: @echo off IF NOT EXIST "%systemroot%\Blank.ico" ( COPY /Y "%~dp0Tweaks\Blank.ico" "%systemroot%\Blank.ico" ) IF EXIST "%~dp0Tweaks\*.reg" ( FOR /F "tokens=*" %%A IN ('DIR /B "%~dp0Tweaks\*.reg"') DO ( regedit /s "%~dp0Tweaks\%%A" ) ) exit
Good... I also made ppApps out of them, and they create shortcuts to your start menu as well BTW, there are several ways to accomplish the 'no arrow overlay' but not all of them are as good. For example people would get black overlays if an improper .ico was used, etc. The ReadMe file I included explains some of this, so the way I'm doing it *should* be fail-proof.
HKEY_CURRENT_USER reg entries cannot be applied from OOBE.cmd or SetupComplete.cmd during windows installation, as as both cmd's auto run before that particular registry hive is loaded, ... a runonce cmd is alternative to apply reg entries HKEY_CURRENT_USER
Righttttttttt...I see,no wonder it wasn't working. Thanks for that. You say a runonce cmd would be better.... By reading this thread you will have worked out i am a total novice with all this .cmd stuff. So can you elaberate on this runounce.cmd. How would i write one and how would i intergrate one into a w7 DVD and have it run to disable the windows animation.. Would this runonce run after all the windows installing has finished ? i better get googling.. Cheers mate.
yeah, that is correct ... you could set up runonce for your needs like this:- 1. OOBE.cmd ... add this line of code to this .cmd Code: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v Animate /t REG_SZ /d "%windir%\Animate.vbs" /f >nul 2. Animate.vbs ... save the following code as this .vbs Code: CreateObject("Wscript.Shell").Run "Animate.cmd",0,True 3. Animate.cmd ... save the following code as this .cmd Code: @echo off start /w regedit /s %windir%\Animate.reg >nul del /F /Q %windir%\Animate.reg >nul del /F /Q %windir%\Animate.vbs >nul del /F /Q %0% >nul 4. Animate.reg ... save the following code as this .cmd Code: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics] "MinAnimate"="0" now you have created 3xfiles Animate.vbs...Animate.cmd...Animate.reg 5. ...copy those 3xfiles to the $$ folder contained inside your $oem$ folder done. During install those 3xfiles will be auto copied to Windows directory, and the edited OOBE.cmd will add entry to registry for Animate.vbs to run at runonce .... Animate.vbs will make Animate.cmd run without any black pop-up box ... Animate.cmd will apply Animate.reg.... and delete those files, and itself upon completion.
@searchengine..... urrrrrrrrrr...welllllllllllllllllll..urrrrrrrrrrrrrrrrrrr... I did as you said. But it did not work.....Where i am going wrong i dont know....Does the fact i am trying to do this on Windows 7 x64 alter anything ? I have the remove shortcut arrow down to the T now. Thanks Alphawaves ...... I just did a fresh install with all the codes in all the right places, just checked... This is how i made my oobe.cmd look. Maybe i have the code in the wrong place ?? Just thought of summet. I just looked in C:\Windows and the Animate.cmd,Animate.vbs and Animate.reg are not there.Should these files have been copied into C:\Windows . If so no wonder it did not work. I put these files in SOURCES\$OEM$\$$ I am still doing something wrong.... Then again i am looking at the Animate.cmd and it says Do i take it that this deletes the files... ______________________________________ I can not admit to knowing what any of the scripts mean. I do not even know what a .vbs file is. ">nul" exactly why is that there ? If the Was not there would the files still be in C:\Windows ? I am sorry to ask so many questions all the time..... To be honest I want to be ale to understand the scripts so I can learn to write my own. I am very very grateful for every body's help on this matter. But I just don't want to rely on other folks work. It's not enough for me...Know what I mean ? But don't stop though..
yeah, maybe, Cur rentVersion ....I hope no blank space please zip or rar your $oem$ folder with its contents, and upload, as I would like to see the actual folder layout and file contents
I will .rar my $OEM$ folder up and put up for yo...( running a blank machine at hte mo..NO apps in to do owt with...Gimme a bit..OK...) I just coppied that bit of code No gaps....
you're missing commands to copy those necessary files to %SystemRoot%, that's why.... the scripts are trying to run something nonexistent! you need commands such as: Code: if not exist %systemroot%\animate.reg copy %systemroot%\setup\scripts\animate.reg %systemroot% and so forth if you really want to learn how to make simple batch files (this is very basic stuff actually), a good starting point is knowing how to use DOS.... you probably figured out by now, DOS isn't as dead as you think!
If the cmd ran successfully, then those files should not be there (as they would be deleted after job done)... looking at the $oem$ folder you uploaded, I suspect it actually worked and changed the entry reg from 1 to 0 for "MinAnimate"; but needs to reboot to apply.... did you look in the registry to see if setting was "0"? I am gonna test in vmware soon.