Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. Registry Data Type = notation REG_SZ = 0x00000000 or 0x00000 or 0x00 or 0 REG_BINARY = 0x00000001 or 0x00001 or 0x01 or 1 REG_SZ_NOCLOBBER = 0x00000002 or 0x00002 or 0x02 or 2 REG_BINARY_NOCLOBBER = 0x00000003 or 0x00003 or 0x03 or 3 REG_MULTI_SZ = 0x00010000 or 0x10000 REG_MULTI_SZ_APPEND = 0x0001000A or 0x1000A REG_DWORD = 0x00010001 or 0x10001 REG_MULTI_SZ_NOCLOBBER = 0x00010002 or 0x10002 REG_DWORD_NOCLOBBER = 0x00010003 or 0x10003 REG_MULTI_SZ_DELVAL = 0x00010006 or 0x10006 REG_ADDREG_APPEND = 0x00010008 or 0x10008 REG_EXPAND_SZ = 0x00020000 or 0x20000 REG_NONE = 0x00020001 or 0x20001 REG_EXPAND_SZ_NOCLOBBER = 0x00020002 or 0x20002 * types with NOCLOBBER don't overwrite existing valuesBasically it is putting data of 0 in REG_DWORD type to the value TaskbarSizeMove in the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, only if a that value data doesn't already exist. Hope this helps a little!
  2. Did you remember to add the RunOnceEx.cmd to your cmdlines.txt, or were you just testing it on an existing system. To test it on your existing system, you could just execute the RunOnceEx.cmd file, and then check the registry key, to make sure that the entries were applied You could do this with another simple batch, which will open the reultant keys in your text editor. @ECHO OFF REG EXPORT HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx "%UserProfile%\Desktop\RunOnceEx.txt" START "" /W "%UserProfile%\Desktop\RunOnceEx.txt" GOTO :EOFIf all the entries are there there is nothing wrong with your syntax etc. just the method of calling the cmd file. After you have checked the data, you can simple delete it from the registry with REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx /va /f
  3. The main reason behind that tool was due to the failure to integrate both 885250 and 885835, but as I asked, without answer, RyanVM's pack doesn't use 885835, saying it has been superseded. Do we therefore need it. I know RyanVM's pack contains non-critical hotfixes too but surely a non-critical hotfix hasn't superseded a critical one! Both RyanVM and Incroyable HULK have since posted, but still no word on whether we need it! <Edit> Asta I see your pack is different from the first post, does this mean that the first post is definitely wrong or just not as up to date. It still contains the 885835 update too, are the two you've missed out because they dont get integrated, or are they no longer needed? Astas Pack only KB835935.exe KB867282.exe KB884020.exe KB885222.exe KB886677.exe KB887797.exe KB888240.exe KB890047.exe First Page only KB873374.exe - Registry Key method preferred KB890830.exe - q switch required (no integrate)</Edit>
  4. Here is an example using my first test file @ECHO OFF %~dp0cmdow @ /HID :: Renaming Admin account %~dp0renuser.exe Administrator "IT Manager" :: Internet Explorer Settings REG ADD "HKCU\......taken out for space reasons GOTO :EOFI just stuck both renuser.exe and cmdow.exe on the floppy The only thing which didn't seem to work for the IE settings was the override cookie settings, although I may have put the wrong code in for that! The other surprising thing was that the Administrator name change even worked this early on in the install. You can then have your renamed Admin account using a folder with his own name instead of having a system created Administrator one and at logon the new name shows, if no others have been created, using the password from your winnt.sif
  5. And here is a slight modification, I just think it's better to change the key names to something more obvious and make the tweak a user only one. If however you want it to be a global setting just replace HKCU with HKLM in both lines. The real change is that it's in REG.EXE format for use in batch files REG ADD HKCU\Software\Classes\*\shell\ViewIt /ve /d "View in Word&Pad" /f REG ADD HKCU\Software\Classes\*\shell\ViewIt\command /ve /t REG_EXPAND_SZ /d "\"%%ProgramFiles%%\Windows NT\Accessories\wordpad.exe\" \"%%1\"" /f
  6. I know what does work, because I just did it! Where we were going wrong is thinking we needed a cmdlines.txt file, or even an $OEM$, well we don't. It's so simple, I dont know why I didn't think of it sooner in winnt.sif [GuiUnattended] DetachedProgram = cmd.exe Arguments = "/C START A:\Xtras.cmd"and obviously put Xtras.cmd in the root of the floppy with your winnt.sif. The beauty of this is I can add all my HKCU entries immediately for all users using REG.EXE directly in the cmd file and when you think about it, the cmd can then run anything you need. For instance it could copy a RunOnceEx.cmd file to your %systemdrive% which could also be run from [GuiRunOnce] in your winnt.sif. This could also be set to give the CDROM a variable and run stuff from CD. You could add reg files other batches and even without a CD copy a small compressed file for extraction etc. You could have a single SP2 integrated CD and just carry a frequently updated collection of hotfixes ran from a batch file, no more new install cd for every hotfix! This could also be great if you dont have a DVD facility, because your apps will fit a lot easier onto a CD without Windows taking up space! ....This is massive, the options are almost endless, an unattended install using the customers CD but your Xtras! All we need now are various members trying different things to see exactly what is possible armed with this discovery. <Edit> This now has little bearing on the 'original question' unless we could somehow change the 'thread title'. FeTT!, Mod's, what do you think? </Edit>
  7. @ atomizer Two reasons why! I don't agree with using signatures It's not my file! In my opinion the file is too bloated, it is full of unnecessary stuff, and like the thread will take too long to comment in /out. For the the less experienced of us it can become dangerous, for the more experienced of us pointless.
  8. Just put your reg file in $OEM$ with the cmlines.txt file and the command you've used should work fine.
  9. You could probably just get away with a reg file Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] "ProxyEnable"=dword:00000001 "ProxyServer"="0.0.0.0:80" [HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel] "Connection Settings"=dword:00000001 "Connwiz Admin Lock"=dword:00000001Please bear in mind that this will also prevent Opera and things like MS Office too!
  10. just wondering if anyone knows what's happening with Security Update for Windows XP (KB885835), I've been trying to download it for the lasy day, but the MS site will not load it. link I guess, I'm just hoping they've took it down, to fix the problem with integrating it with KB885250 <Edit> Reading RyanVM page, it says that this update is obsolete, so is the first post wrong or not up to date? It was apparently superseded by KB885936 I was led to believe we needed both 885250 and 885835, but with an RyanVM Pack installed system, Windows Update says it's got everything. </Edit>
  11. do a site search, there is, at the very least an inf by myself, and a reg by DigeratiPrime
  12. "F:\multi windows\HOTFIXES\KB867282.exe" /integrate:f:\xp\i386\svcpack
  13. Just a small correction, in "%11%\cmd.exe /k cd "%1"" the quotes on %1 will not show up in your registry. Try "%11%\cmd.exe /k cd ""%1"""
  14. Not that it makes a difference, but 7za.exe is still at version 4, 16, 0, 0
  15. I would use an inf to do this! Here is an example for Maxthon, it uses %16410% for %UserProfile%\Application Data, although there is no reason why you cannot put it in %16419% for %AllUsersProfile%\Application Data. I do not however think that the AllUsers will work, since I have one in there from Ad-aware that doesn't show up in mine. If you install the inf at cmdlines, (T12), using the code given, it should work for everyone though! [Version] Signature = $Windows NT$ [DefaultInstall] UpdateInis = QLink [QLink] setup.ini, progman.groups,, "group0=""%16410%\%QLauncher%\""" setup.ini, group0,,"""Maxthon"",""""""%16422%\Maxthon\Maxthon.exe"""""",,,,""%16422%\Maxthon""" [Strings] QLauncher = "Microsoft\Internet Explorer\Quick Launch"
  16. If you want to have the 'connected' notification in the system tray for your LAN(s), attached is a batch file, that should do just that. It uses REG.EXE, therefore generally not suited to Win2000 unless you have also added it to your CD source. Also note that it is looking for a connection named 'Local Area Connection' if like me you have two, 'Local Area Connection' and 'Local Area Connection 2', it will find them both. If you have another connection type that you know the name of, you could probably edit the batchto suit the new name instead. NetIcon.zip
  17. It's been done before
  18. There shouldn't be a problem, with the ini, I have many of them already using variables. I will try it out with a basic install shortly and edit this message with the result. <Edit> The %Userprofile% or any other variable doesn't appear to work, at the moment. I don't know if it is the variable itself or whether there is a conflicting record somewhere in Firefox. However, if you start for the first time with the Profile Manager, you can create a new profile using whichever name and location you wish, pointing it to a newly created or existing installation, containing your cookies signons bookmarks etc. And yes, I think I've wasted my time... </Edit>
  19. What I was suggesting was that if you copied that file to the %appdata%\Mozilla folder in your unattended, you could tell Mozilla where to look for your profile. This could then either be an existing one on another partition, although not probably not recommended if different version; or one you have created during your ua setup. You could then put your relevant bookmarks, prefs etc in during the ua install and your good to go. I have no idea if this works as yet, although it does seem entirely feasible.
  20. If you copy over from %appdata%\Mozilla or create profile.ini can you not simply prevent the random directory name and use the one defined in there? example [General] StartWithLastProfile=1 [Profile0] Name=Default IsRelative=0 Path=E:\%username%\Firefox\Profiles
  21. Is it not a different flash executable for Netscape /Mozilla than for IE?
  22. You can try, either HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon",SFCDisable,0x10001,4294967197or HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon",SFCDisable,0x10001,0xFFFFFF9DIs there a reason why you think that this would belong in HIVESYS.INF as opposed to HIVESFT.INF? Hence HKLM,"SOFTWARE not HKLM,"SYSTEM That said, I thought you needed a hacked SFC_OS.DLL, to do this, but since I haven't, I cannot be sure!
  23. I've tidied it a little bit, but the only problem I could see was the /r switch, I've never heard of it! @ECHO OFF :START IF EXIST C:\WINNT\Installer\kb887978.exe GOTO :EOF COPY G:\XXXXXXX\New\kb887978.exe "C:\WINNT\Installer\" START "" /w C:\WINNT\Installer\kb887978.exe GOTO :EOFYou could also add switches to the start line, maybe something like: /q /r:i or /q:a /r:s The former would install without prompts and restart if required, whereas the latter would install in silent mode and force a restart.
  24. Yzöwl

    Batch File!

    Okay then, here is some complete code. (they are in the zip attached too!) This will get every file containing all three of your search strings and open the results in your default text editor! All you need to do is keep the two files together in the same directory, open the cmd prompt in that directory and type get3 Drive:\Path Don't forget to use quotes if Drive:\Path contains spaces! get3.cmd @ECHO OFF IF %1 EQU "" ECHO You must provide a directory to check! e.g. %~0 C:\MyFiles && PAUSE && GOTO :EOF IF NOT EXIST "%~1" ECHO The specified directory does not exist! && PAUSE && GOTO :EOF SETLOCAL SET STRS="%~dp0_3words.dat" FOR /F "TOKENS=*" %%A IN ('FINDSTR /SIMP /G:%STRS% "%~1\*.*"') DO ( CALL :chk "%%A" >NUL IF ERRORLEVEL 1 ECHO %%A >>"%~dp0all3.txt" ) IF EXIST "%~dp0all3.txt" START "" /W "%~dp0all3.txt" ENDLOCAL && GOTO :EOF :chk FOR /F "TOKENS=*" %%B IN ('TYPE %STRS%') DO ( FINDSTR /SIMP "%%B" %1 || EXIT /B 0 ) EXIT /B 1_3words.dat \<FBI\> \<Iowa\> \<CIA\> get3.zip
  25. Yzöwl

    Batch File!

    Yes soulin, the tidiest way to do it, (for a match all strings), would be to take the search strings, write them to a temp file and use that file with the /G switch in a FOR statement. Then you would CALL another FOR statement with that as the input. It does become more tricky in a any two from three permutation, but that would be the way forward. I have a fully working solution, using a single FOR statement utilising similar code as originally suggested by purewaveform. The code although not polished was actually posted in this thread for the entire weekend, but I decided to remove it, as the idea was to allow Sh4dow and other interested parties here to learn something. Although I do feel a little mean about doing it! A problem with writing the script is not that it's hard, it is just that the poster hasn't really told us what it is for? Noone needs to search for those three words in a text file, he's not even checking txt files in his code. If we were to know the layout of the files he's searching and their contents, and what was really being searched, it would possibly make the effort worthwhile. They will most probably be logs of some sort, and possibly be comma, tab or line delimited, tokens and delimiters in the code will very probably save a lot of time and speed up the search process in too. To write what is required would really be better suited to a dedicated scripting forum as opposed to a general Windows XP group, and to be honest with you after yesterdays statement to 'just write one for me!' I'm kind of glad I took down, the solution I had posted.
×
×
  • Create New...