Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
Here is the best I can do for a resulting reg file. I've removed a lot of the usual rubbish from it, but you'll need to remove anything else nor necessary yourself. I'm guessing that most of it can go since I cannot detect any program having been installed. It seems as if the regshot app has been installed on a clean unused installation and most of the changes were default windows configuration stuff as opposed to program installation changes, _res2.rar
-
I cannot believe that this thread hasn't been locked! I know that the Mods aren't always correct, in this case however that is not true, but if you wish to further argue your case, do so like this: either PM or email the appropriate authority or Start a thread for the attention an appropriate party in 'Site and Forum Issues'
-
maxXPsoft, as much as your information is good, and as much as I like robocopy, it's not really warranted on this occasion. The Subject :Xcopy in batch file The question:How should be the /exclude feature used. i can't find right syntax. Can anyone give me an example, how to exclude a dir.I answered the question, hopefully well enough for a little thought and a little understanding. I used xcopy in a batch file with the /exclude feature usingthe questioners directories and a few comments. If I were to ask, what registry setting do I need for… someone will probably say 'use nlite' If I asked, how do I fix … in Internet Explorer? someone is guaranteed to say 'get Firefox' If I asked, how do I do … in a batch file? someone will likely say 'here's a vbscript' There's nothing wrong with offering alternatives, but maybe 'in answer' as opposed to 'as answer' would be better.
-
Try this: @ECHO OFF :: Create an exclude file >XCLUDE.TXT ECHO \cache4\ >>XCLUDE.TXT ECHO \images\ :: Copy the files and directories XCOPY "%APPDATA%\OPERA\OPERA\PROFILE" "D:\$OEM$\$1\Install\Opera\profile" /EIQHKOY/EXCLUDE:XCLUDE.TXT :: Delete the exclude file DEL XCLUDE.TXT GOTO :EOF<Edit> Just as a side note, since you are using the $Docs structure, you will probably not want the /O switch. i.e. /EIQHKY/EXCLUDE:XCLUDE.TXT </Edit>
-
Why go to such extremes, surely this is sufficient: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv] "Start"=dword:0x00000004You only have to break my feet to stop me running away, not chop both my legs off!
-
Just remove the comments from either Line3 or Line4 and any one of the "NoDriveTypeAutoRun" lines REGEDIT4 ;[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] ;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] ;Disables Autoplay on unknown drives only ;"NoDriveTypeAutoRun"=dword:0x00000081 ;Disables Autoplay on removable drives omly ;"NoDriveTypeAutoRun"=dword:0x00000004 ;Disables Autoplay on fixed drives only ;"NoDriveTypeAutoRun"=dword:0x00000008 ;Disables Autoplay on network drives only ;"NoDriveTypeAutoRun"=dword:0x00000010 ;Disables Autoplay on CD-ROM drives only ;"NoDriveTypeAutoRun"=dword:0x00000020 ;Disables Autoplay on RAM disks only ;"NoDriveTypeAutoRun"=dword:0x00000040 ;Disables Autoplay on all drives (Recommended) ;"NoDriveTypeAutoRun"=dword:0x000000FF ;Disables Autoplay on removable drives and fixed drives ;"NoDriveTypeAutoRun"=dword:0x0000000C ;Disables Autoplay on removable drives and network drives ;"NoDriveTypeAutoRun"=dword:0x00000014 ;Disables Autoplay on removable drives and CD-ROM drives ;"NoDriveTypeAutoRun"=dword:0x00000024 ;Disables Autoplay on removable drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000044 ;Disables Autoplay on removable drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x00000085 ;Disables Autoplay on fixed drives and network drives ;"NoDriveTypeAutoRun"=dword:0x00000018 ;Disables Autoplay on fixed drives and CD-ROM drives ;"NoDriveTypeAutoRun"=dword:0x00000028 ;Disables Autoplay on fixed drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000048 ;Disables Autoplay on fixed drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x00000089 ;Disables Autoplay on network drives and CD-ROM drives ;"NoDriveTypeAutoRun"=dword:0x00000030 ;Disables Autoplay on network drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000050 ;Disables Autoplay on network drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x00000091 ;Disables Autoplay on CD-ROM drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000060 ;Disables Autoplay on CD-ROM drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000A1 ;Disables Autoplay on RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000C1 ;Disables Autoplay on removable drives, fixed drives and network drives ;"NoDriveTypeAutoRun"=dword:0x0000001C ;Disables Autoplay on removable drives, fixed drives and CD-ROM drives ;"NoDriveTypeAutoRun"=dword:0x0000002C ;Disables Autoplay on removable drives, fixed drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x0000004C ;Disables Autoplay on removable drives, fixed drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x0000008D ;Disables Autoplay on removable drives, network drives and CD-ROM drives ;"NoDriveTypeAutoRun"=dword:0x00000034 ;Disables Autoplay on removable drives, network drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000054 ;Disables Autoplay on removable drives, network drives and unknown drives (Default) ;"NoDriveTypeAutoRun"=dword:0x00000095 ;Disables Autoplay on removable drives, CD-ROM drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000064 ;Disables Autoplay on removable drives, CD-ROM drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000A4 ;Disables Autoplay on removable drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000C5 ;Disables Autoplay on fixed drives, network drives and CD-ROM drives ;"NoDriveTypeAutoRun"=dword:0x00000038 ;Disables Autoplay on fixed drives, network drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000058 ;Disables Autoplay on fixed drives, network drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x00000099 ;Disables Autoplay on fixed drives and CD-ROM drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000068 ;Disables Autoplay on fixed drives, CD-ROM drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000A9 ;Disables Autoplay on fixed drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000C9 ;Disables Autoplay on network drives, CD-ROM drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000070 ;Disables Autoplay on network drives, CD-ROM drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000B1 ;Disables Autoplay on network drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000D1 ;Disables Autoplay on CD-ROM drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000E1 ;Disables Autoplay on removable drives, fixed drives, network drives and CD-ROM drives ;"NoDriveTypeAutoRun"=dword:0x0000003C ;Disables Autoplay on removable drives, fixed drives, network drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x0000005C ;Disables Autoplay on removable drives, fixed drives, network drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x0000009D ;Disables Autoplay on removable drives, fixed drives, CD-ROM drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x0000006C ;Disables Autoplay on removable drives, fixed drives, CD-ROM drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000AD ;Disables Autoplay on removable drives, fixed drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000CD ;Disables Autoplay on removable drives, network drives, CD-ROM drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000074 ;Disables Autoplay on removable drives, network drives, CD-ROM drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000B5 ;Disables Autoplay on removable drives, network drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000D5 ;Disables Autoplay on removable drives, CD-ROM drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000E5 ;Disables Autoplay on fixed drives, network drives, CD-ROM drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x00000078 ;Disables Autoplay on fixed drives, network drives, CD-ROM drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000B9 ;Disables Autoplay on fixed drives, network drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000D9 ;Disables Autoplay on fixed drives, CD-ROM drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000E9 ;Disables Autoplay on network drives, CD-ROM drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000F1 ;Disables Autoplay on removable drives, fixed drives, network drives, CD-ROM drives and RAM disks ;"NoDriveTypeAutoRun"=dword:0x0000007C ;Disables Autoplay on removable drives, fixed drives, network drives, CD-ROM drives and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000BD ;Disables Autoplay on removable drives, fixed drives, network drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000DD ;Disables Autoplay on removable drives, fixed drives, CD-ROM drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000ED ;Disables Autoplay on removable drives, network drives, CD-ROM drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000F5 ;Disables Autoplay on fixed drives, network drives, CD-ROM drives, RAM disks and unknown drives ;"NoDriveTypeAutoRun"=dword:0x000000F9 Hope this helps!
-
Winkey + Pause /Break
-
If you would like a quick list of the ones you have on your machine, run the following batch file, open the reg file it produces in the same location, remove the commenting symbol from the pertinent lines and double click the reg file to merge and remove them. @ECHO OFF &SETLOCAL ENABLEEXTENSIONS >NewFiles.reg ECHO REGEDIT4 >>NewFiles.reg ECHO/ FOR /F "DELIMS=" %%? IN ( 'REG QUERY HKLM\SOFTWARE\Classes /S ^|FINDSTR/I "\\\..*\\ShellNew$" 2^>NUL' ) DO ( IF ERRORLEVEL 0 (>>NewFiles.reg ECHO ;[-%%?]) ) >>NewFiles.reg ECHO/ ENDLOCAL &GOTO :EOF
-
All you need is this Windows Registry Editor Version 5.00 ;This setting lets you specify if automatic updates are enabled on this computer. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU] "NoAutoUpdate"=dword:00000001Nothing else matters since the policy setting will always take priority
-
You are still wrong, and here is some proof! I used the following batch file to represent the runonceex.cmd @ECHO OFF REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx /V TITLE /D "Doing a Test" /F >NUL REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\000 /VE /D "Test App" /F >NUL REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\000 /V 1 /D "D:\Program Files\Standalone\1by1\1by1.exe" /F >NUL PING -n 11 LOCALHOST>NUL RUNDLL32 iernonce.dll,RunOnceExProcess GOTO :EOFThis is what happened when it ran Now all I was running was a switchless exe with a space in the file path. Now try it yourself and report back!
-
Thanks smashly. It is important to learning that we make mistakes, we actually learn more from making mistakes than from never doing so. We probably get more than half a dozen problems per week relating to double quotes or the lack of, and it is good that a thread like this can be used to help others understand. As a rule, your filepaths and the vast majority of your filenames are under your own control. I would therefore suggest that they never contain spaces. On some occasions however, it is beyond our control, which is why we have to use the escape characters.
-
The inf file, will uninstall without a cmd file. What you should be doing is, adding the inf to its repository within %systemroot%, adding an entry to add/remove programs, and performing the uninstall from there as you would any other program. You just have to learn how to do it properly, so continue to persue it. The only way to learn is by continuous trial and error, if you keep giving up every time you hit a hurdle, and going to another method, inno, you will never really have a good understanding.
-
NO IT SHOULDN'T!That code is correct, because it is exactly how I gave it. X-Centric, there are spaces in the file path!, unless you want the questioner to receive error messages saying cannot find F:\Software\AVG, then please try to restrain yourself from answering questions without the assurance of knowing the answers. The escaped double quotes are a requirement due to the spaces in AVG Anti Virus Program. If you read the original code snippet and my previous responses you will also not that there are similar spaces in all bar two three of the paths given, all of which have been taken into account by myself. Go to the unattended guide RunOnceEx page and read » Applications that use Quotations. <Edit> see strike-through </Edit>
-
DOUBLE POST, PLEASE REMOVE!
-
Double click this SFX. You should find the new entry after either a reboot or ending /restarting explorer.exe. <Edit> Attachment removed due to successful retrieval and use by the intended recipient! </Edit>
-
I'm sure it wasn't intended, but what you should have said was: Yzöwl's right. NicodemusAtNIMH, I would edge away from extra quote marks if I can.i.e. Don't use spaces in nearly all of your pathsPutting right, though suggests that Yzöwl may have perhaps been only partly right, which would of course be incorrect!
-
I've no intention of doing anything complex, and other than the little piece of information I have requested from the questioner, neither will they. I will do everything other than download and double click using just this information.
-
RunPreSetupCommands and RunPostSetupCommands are not standard commands recognized in an inf file, they are commands from Advanced INF. DefaultInstall uses setupapi.dll whereas Advanced INF requires advpack.dll. You therefore need to change your method of install and uninstall so that they are using the correct dll in a command line.
-
Something more like this may prove more fruitful! @CMDOW @ /HID SETLOCAL ENABLEEXTENSIONS SET "CDROM=%~d0" SET "PP=%CDROM%\Software" SET "KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" REG ADD %KEY% /V TITLE /D "Installing Programs" /F REG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /F REG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /F REG ADD %KEY%\001 /VE /D "EvilLyrics" /F REG ADD %KEY%\001 /V 1 /D "%PP%\EvilLyrics\EvilLyrics.exe /s" /F REG ADD %KEY%\001 /V 2 /D "taskkill EvilLyrics.exe" /F REG ADD %KEY%\002 /VE /D "Microsoft DirectX 9.0c" /F REG ADD %KEY%\002 /V 1 /D "\"%PP%\Microsoft DirectX 9.0c\dxsetup.exe\" /silent" /F REG ADD %KEY%\003 /VE /D "Mozillia Firefox" /F REG ADD %KEY%\003 /V 1 /D "\"%PP%\Mozillia Firefox\Firefox.exe\" -ms -ira" /F REG ADD %KEY%\004 /VE /D "MSN" /F REG ADD %KEY%\004 /V 1 /D "%PP%\MSN\MsnMsgs.msi /QB" /F REG ADD %KEY%\005 /VE /D "MusicMatch Jukebox" /F REG ADD %KEY%\005 /V 1 /D "\"%PP%\MusicMatch Jukebox\MusicMatch.exe\" /s" /F REG ADD %KEY%\006 /VE /D "NetFramework" /F REG ADD %KEY%\006 /V 1 /D "%PP%\NetFramework\netfx.msi /qb" /F REG ADD %KEY%\007 /VE /D "Mozilla Suite" /F REG ADD %KEY%\007 /V 1 /D "\"%PP%\Mozilla Suitemozilla-win32-1.7.13-installer.exe\" -ma -ira" /F REG ADD %KEY%\008 /VE /D "Microsoft Office 2003 Professional" /F REG ADD %KEY%\008 /V 1 /D "\"%PP%\Microsoft Office 2003 Professional\setup.exe\" TRANSFORMS=office11.MST /qb-" /F REG ADD %KEY%\009 /VE /D "Frontpage 2003 Pro" /F REG ADD %KEY%\009 /V 1 /D "\"%PP%\Frontpage 2003 Pro\setup.exe\" TRANSFORMS=office11.MST /qb-" /F REG ADD %KEY%\010 /VE /D "Sun Java VM 1.4.2.05" /F REG ADD %KEY%\010 /V 1 /D "\"%PP%\Sun Java VM 1.4.2.05\jre-1_5_0_06-windows-i586-p.exe\" /s /v\"/qb IEXPLORER=1 REBOOT=ReallySuppress\"" /F REG ADD %KEY%\011 /VE /D "Windows MediaPlayer 10" /F REG ADD %KEY%\011 /V 1 /D "\"%PP%\Windows MediaPlayer 10\MP10Setup.EXE\" /Q:A /R:N /C:\"setup_wm.exe /DisallowSystemRestore /Q:A /R:N\"" /F REG ADD %KEY%\012 /VE /D "Yahoo Messenger" /F REG ADD %KEY%\012 /V 1 /D "\"%PP%\Yahoo Messenger\yahoomessenger.exe\" /s" /F REG ADD %KEY%\012 /V 2 /D "taskkill /F /t /im ypager.exe" /F REG ADD %KEY%\013 /VE /D "O_O Defrag" /F REG ADD %KEY%\013 /V 1 /D "\"%PP%\OO_DeFrag Pro\O&O Defrag Professional Edition.msi\" /qn" /F REG ADD %KEY%\014 /VE /D "O&O CleverCache Professional" /F REG ADD %KEY%\014 /V 1 /D "\"%PP%\OO_CleverCache Pro\O&O CleverCache.msi\" /qn" /F ENDLOCAL EXIT
-
Custom Shortcuts in INF Files
Yzöwl replied to glitterglue's topic in Unattended Windows 2000/XP/2003
Try [Version] Signature = $Windows NT$ [DefaultInstall] ProfileItems = SMGroup.Add, Shortcut.guide, Shortcut.rebuild [DefaultUninstall] ProfileItems = SMGroup.Del [SMGroup.Add] Name = mysubfolder, 0x4 [Shortcut.guide] Name = Guide SubDir = mysubfolder WorkingDir = 16422 CmdLine = 16422,mysubfolder,Guide.pdf [Shortcut.rebuild] Name = rebuild SubDir = mysubfolder WorkingDir = 16422 CmdLine = 16422,mysubfolder, Rebuild.exe InfoTip = "blahblah" [SMGroup.Del] Name = mysubfolder, 0x6Updated due to stupid, 'lack of sleep', error. -
I can help you if you do the following: Copy & Paste the following line into your Run box %comspec% /c >"%userprofile%\desktop\php_reg.txt" reg query HKCR\.php /s open the php_reg.txt file on your desktop and copy & paste its contents here.
-
[Help] Can someone send me a TXTSETUP.SIF for xphomesp2
Yzöwl replied to bledd's topic in Windows XP
Will this do! <Edit> attachment removed, due to receipt by intended recipient. </Edit> -
Problem with RunOnceEx.cmd on Windows 2000 Pro
Yzöwl replied to beatbox99's topic in Unattended Windows 2000/XP/2003
The second command only has an error because the previous one failed! If the cab file hasn't extracted, then the setup cannot be run from the extracted files. Try changing the first command to this single line "%COMSPEC% /C C:\MASTERS\EXTRACT /YEL C:\MASTERS C:\MASTERS\D620.CAB" /Fextract exe needs running from the cmd console. <Edit> You may also prefer to try this "%COMSPEC% /C CD /D C:\MASTERS &&EXTRACT /YE D620.CAB" /F </Edit> -
In simple terms, when a script is invoked, it is read in its entirety prior to execution; (all environment variables are expanded at this time). Delayed expansion means that the environment variable is read when it is reached during execution. A delayed environment variable uses an exclamation mark, as opposed to a percent symbol, hence the problem. The script has uses delayed expansion, because changes are made to variables within FOR loops. The HFSLP variable is incremented by one for example, meaning that its value is almost dynamic instead of static. When the script is read initially, this 'dynamic' value has not yet been created; therefore in order for it to be used it must be read at execution time. In order to fix the problem mentioned above, every FOR loop using delayed expansion, would need to make a CALL expand the variable return back.
-
You would really need to turn off the delayed expansion. It may be possible to toggle off, then back on again, where required. I would suggest you don't, not due to any difficulty, more to do with the principal. It's a similar thing to the expand and %xpand% thing we went through recently. The script is already at a stage where it needs constant update in order to remain current. It cannot be expected to cater for people using !obscure! (non-standard), naming conventions. Whenever you work with files using command scripts and delayed expansion you expect this to happen. The script writer due to the unexpected expansion of the project, didn't forsee the introduction of 3rd party files and therefore the problem occurs. It will take considerably more work to fix at the script end than it will for the complainant to rename their own files.