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. @ Oleg_IIFirst things first, I was under the impression that PoloDude was using the inf to install the apps too, if this is not the case, you do not need to add additional directives /sections. All you should need is: [Version] Signature = $Windows NT$ [DefaultInstall] ProfileItems = 1by1.AddShortcut [1by1.AddShortcut] Name = 1by1 Player CmdLine = 16422,1by1,1by1.exe SubDir = 1by1 WorkingDir = 16397 InfoTip = Directory mp3 playerThe above will add the shortcut automatically to the %AllUsersProfile%\Start Menu\Programs, with a Start in entry of %UserProfile%\My Documents\My Music Hope this helps for the related question, however it would be unfair of me to answer the other question(s) in this thread.
  2. @ PoloDude HKLM,SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command,,0x20000,"%windir%\system32\mmc.exe /s %windir%\system32\devmgmt.msc"or HKLM,SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command,,,"%11%\mmc.exe /s %11%\devmgmt.msc"The main problems being that the mmc executable is not in SystemRoot, there is a \ missing and if you are using environment variables, you will need to make your inf data type REG_EXPAND_SZ (0x00020000) This of course would mean that the REG code should also be in that format too i.e. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command] @=hex(2):25,77,69,6e,64,69,72,25,5c,73,79,73,74,65,6d,33,32,5c,6d,6d,63,2e,65,\ 78,65,20,2f,73,20,25,77,69,6e,64,69,72,25,5c,73,79,73,74,65,6d,33,32,5c,64,\ 65,76,6d,67,6d,74,2e,6d,73,63,00
  3. Just an update for onlookers, or a check for PoloDude, I have created a little update here of the sort of thing that should be added in order to install the exe files attributed to the shortsuts. [SourceDisksNames] 55 = %DISKNAME% [SourceDisksFiles] filemon.exe = 55 procexp.exe = 55 regmon.exe = 55 ;WillyPad.exe = 55 [DestinationDirs] DefaultDestDir = 10 [DefaultInstall] CopyFiles = Filemon, Procexp, Regmon [Filemon] filemon.exe,,16 [Procexp] procexp.exe,,16 [Regmon] regmon.exe,,16 [Willypad] ;WillyPad.exe,,16 [Strings] DISKNAME = "Setup Files"I have commented out the WillyPad stuff and missed it off the CopyFiles listing because I noticed that it was not included in the authors original ProfileItems listing.
  4. The main errors were several hex strings using 0x00010001, which is for REG_DWORD. Other than that, I think just one or two minor errors. Do a compare of the two files in an appropriate program, to see the changes. It may however take a while since I prettied the file up to my usual format too, i.e. removing pointless quotes, excess 0s, adding spaces between commas in hex strings, replacing tabs with spaces and replacing HKCR, with HKLM,SOFTWARE\Classes\. The only thing I replaced which may or may not suit you was a couple of NOCLOBBER entries REG_SZ_NOCLOBBER (0x00000002) was replaced with REG_SZ (,,) REG_BINARY_NOCLOBBER (0x00000003) was replaced with REG_BINARY (1). <Edit> Please also note that I have re-upped the file, due to a few quotation marks, I failed to remove, hopefully now it is correct. Re-download it if you feel like using it! </Edit>
  5. @ PoloDude I have made a few corrections to your inf, (attached below), but for your ProfileItems Directive to work, you need a DestinationDirs section within your inf. I have not included that in my attachment, I'll leave that to you. Hope it helps! @ Oleg_II The ProfileItems Directive is for items or groups to be added to, or removed from, the Start menu, only. Your method works for any location, although the InfoTip option is not available. <Edit> This inf has been re-upped, due to my own errors </Edit> regTweaks.inf
  6. Its a lot better and accurate than something like this in cmd language findstr /i "^svcpack$" "UWXPCD\I386\dosnet.inf" if '%errorlevel%' neq '0' ( echo.>> "UWXPCD\I386\dosnet.inf" echo [OptionalSourceDirs]>> "UWXPCD\I386\dosnet.inf" echo svcpack>> "UWXPCD\I386\dosnet.inf" )
  7. @ staples Whilst this is a very good idea, and one which would suffice in most cases, I still think it must be deleting and recreating the %Temp% directory. The reason I say this is that RD does not delete files, therefore the only way for those files to be deleted with that command is for the Temp directory to be removed and then remade for the log file to go inside. You would also of course now not have an empty Temp folder, meaning that in order to achieve the required result you would now have to issue a DEL command on the log file Another method you could also use within your batch is pushd %Temp%, that'll put you inside the Temp folder, leaving it safe, then issue both the RD and DEL commands, (since as you can see from above, RD doesn't delete files), finally popd. Incidentally, jehuu_za, why have you not commented on the method I originally gave as a working solution, or the vbs from gunsmokingman? Here is a tidied version of my original response! @echo off for /d %%g in (%temp%\*) do rd /s/q "%%g" del /f/q/a %temp%\*.* goto :eof
  8. Try this instead! HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Inf",1,,"%11%\rundll32 setupapi,InstallHinfSection AddTasks 128 %17%\RunOnceX.inf"
  9. Where is your WMP setup file located? %1% is not a valid DIRID, %01% however is the directory from which the INF file was installed.
  10. The code I gave was more a step by step, learning thing, especially with the @echo additions to prevent accidental deletions. I do not know when the questioner actually Edited their post either, otherwise I would have added this also for /f "tokens=*" %A in ('dir /b/s/a:d "%Temp%"') do @echo rd /s/q "%~A"That will also remove all the directories within your temp folder, without removing the Temp itself <Edit> Yes you are correct jehuu_za that does delete the %Temp% directory too! </Edit>
  11. That as the questioner has already stated removes the Temp directory, which was a non requirement. It seems like it's longer than it needs to be, for example del "%systemdrive%\Documents and Settings\Administrator\Local Settings\Temp" /qwould remove only the files which aren't read only /hidden etc. and none of the subdirectories or their contents rd "%systemdrive%\Documents and Settings\Administrator\Local Settings\Temp" /s /qwould remove the temp directory plus all its files subdirectories and contents. Surely just the second command would have done it all! Don't get me wrong I am not criticizing your coding, it's just a little overcoded.
  12. That would be correct in a method to condense the code, but as in the previous case, it should also work as start awxDTools.exe /S start /wait KillAwx.cmd exitThe batch should as a matter of course, be checking in it's own directory, if no path is given. Like I said, most of the time it is fairly pointless, it's more of a habit of mine due to my generally poor organisational skills.
  13. Yes! The ~dp0 will reference the drive and path of the 'batch called', not the 'calling batch'.
  14. After a short PM exchange with sixpack, I thought I had better explain something. The single line commands I gave are not for use in a batch file. They are to be entered into a command prompt window. If you haven't set your command prompt options for, right click paste and /or tab completion, you can also enter them into the Start » Run box after first typing 'cmd /c ' Now if you wish to test the file for what will be deleted, instead of possibly removing directories you didn't mean to using the Start » Run box as above, you will want to keep the window open, to see your results. To do this type 'cmd /k ' first, instead of 'cmd /c '. All I have added to the commands below is '@echo ', when your through with testing remove that and revert to the 'cmd /c ' prefix. cmd /k for /d %g in (%temp%\*) do @echo rd /s /q "%g" cmd /k for /d %g in ("%windir%\Downloaded Installations\*") do @echo rd /s /q "%g"I hope this helps! Additional note I have also added something which I had omitted in my earlier examples, the quotes around the %g at the end, this will be necessary for any directories with spaces anywhere in their path names
  15. You shouldn't be re-starting at this point, simply checking if the keys are added! just run the inf, then the export batch I gave, if there is still no entries in the text file then you likely have a registry /permissions problem
  16. You should be able to do something like this [SourceDisksNames] 21 = %diskname%,%disktag%,,\Extras\WMP10 [Strings] diskname = "Unattended Windows XP CD-ROM" disktag = "\win51ip"You would then put your exe into a subfolder of Extras on the root of the CD named WMP10. This is generally used for a copy files directive, where you would need to copy the files named in a source files section. Your only other option using a similar idea would be to lookat 'Advanced Inf', since that allows for cmd type commands, I just don't know at what stage in the install it would work.
  17. not necessarily, as long as regedit is working that early in the install you could add this to the cmd file and put tweaks.reg in the root of the floppy too :: Adding Tweaks REGEDIT /S %~dp0tweaks.regOnce again the %~dp0 shouldn't be necessary, but it does make it look more complicated
  18. I'll PM you with an idea to try if you like, if it works continue it in the thread..., but for the one liner regarding the privacy statement, you can add HKCU,"Software\Microsoft\MediaPlayer\Preferences","AcceptedPrivacyStatement",0x00010003,1directly under [AddReg] in HIVEDEF.INF Also if you ware to use the above and just slipstream the wmp10 files in using BTs method, you could avoid the inf completely I think what you want is what most of us would love, directly from CD with no $OEM$, the problem is I cannot at the moment think of any method of doing this without either knowing /using hard coded drive letters or at least one batch file to get them. Let me know the minimum requirements, and we'll try and work from there!
  19. There is an easier way to do this without having to edit the files in I386. Just create your extras.inf file like this, [Version] Signature = "$Windows NT$" [DefaultInstall] AddReg = Extras.Install, Extras.Registry [Extras.Install] HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx,Title,0,"Installing components" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx,Flags,0x10001,20 HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1,,,"Windows Media Player 10" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1,1,,"%24%\install\WMP10\MP10Setup.exe /q:A /c:""setup_wm.exe /Q /R:N /DisallowSystemRestore""" [Extras.Registry] ; Do not show Privacy Statement when running Media Player 10 the first time HKCU,SOFTWARE\Microsoft\MediaPlayer\Preferences,AcceptedPrivacyStatement,0x10003,1and add the following to cmdlines.txt in $OEM$. Then place your extras.inf in $OEM$ too. Your media player setup should then go into a folder called WMP10, which should be placed in $OEM$\$1\install [Commands] "rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 .\extras.inf" You'll just need to remember to redo your source or re-edit the files you have edited
  20. This line will remove any of the directories in %temp% for /d %g in (%temp%\*) do rd /s /q %gThis line will remove the files in %temp% del /s /q /f %temp%\*.*Together in a batch @echo off for /d %%g in (%temp%\*) do rd /s /q %%g del /s /q /f %temp%\*.* goto :eof
  21. You could always try Start » Run and type regsvr32 /u shimgvw.dll » OK
  22. I don't know about the security center, because I don't use it, but the TAB completion has always worked for me from cmdlines
  23. Did any of the REG.EXE commands work at all? Does reg.exe exist in \WINDOWS\system32? As a check to see if it is a reg.exe problem try this inf file instead [Version] Signature = $Windows NT$ [DefaultInstall] AddReg = RunOnEx, Accnt [RunOnEx] HKLM,"%RunOnceEx%",Title,,"Installing Applications" HKLM,"%RunOnceEx%",Flags,0x10001,20 [Accnt] HKLM,"%RunOnceEx%\install01",,,"Create Account" HKLM,"%RunOnceEx%\install01",1,,"%24%\install\AccountCreator.exe" [Strings] RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"
  24. no use whatsoever in this case! It basically references the drive:\path of the running batch file i.e :: Renaming Admin account A:\renuser.exe Administrator "IT Manager" of course this should work exactly the same as :: Renaming Admin account renuser.exe Administrator "IT Manager" It is something I have a habit of adding, it helps me just in case I stray into another location in my batch.
  25. Are you sure, those two are both in Ryans pack too, although only installed in registry tweak format. I'm guessing that Asta does the same, thereby run Iceman's script on the contents of Astas pack and adding the registry entries manually. The only thing I have not understood is the conflicting information as to whether KB885835 should be integrated or KB885936 instead. Ryan says it has been superseded but Asta hasn't included instead and the first page neither.
×
×
  • Create New...