Jump to content

Martin H

Member
  • Posts

    791
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Denmark

Everything posted by Martin H

  1. Some tweaks/file-edits only works after explorer.exe has been fully loaded, since e.g. some imported reg-entries gets overwritten later on, etc... If this is the problem you're having, then i have done alot of tests of this, and found that it can be fixed by defining one or more entries in 'HKLM\[...]\RunOnceEx', in addition to adding the batch/reg-file with the problematic entries to be run from 'HKCU\[...]\RunOnce'. This will then make 'HKLM\[...]\RunOnceEx' run first and then afterwards explorer.exe and 'HKCU\[...]\RunOnce' loads up. Sometimes however, then it still dosen't work(as it still is a couple of seconds to fast), and in that case, then i have found that it can be fixed by also adding a pause in the beginning of the batchfile, like e.g. something like this : ping -n 1 -w 4000 1.1.1.1 (this is a pause of 4 secs, so adjust the '4000' as you please...).
  2. I would recommend 'Regshot 2.0 unicode'. I made a thread about it in the 'Software' sub-section alittle time ago : http://www.msfn.org/board/New-Regshot-alik...ca-t114603.html
  3. nLite dosen't support slipstreaming reg-files, so you need to manually add them to your install source and use nLite's 'Runonce' section to get the reg-entries imported at 1st logon. Also, i would suggest reading the MSFN Unattended guide. For feature reference, then please use the nLite subforum for nLite related posts...
  4. Instead of copying cmdow.exe in place with a SFX at T-12(cmdlines.txt), then i would personally just instead place the 2KB tool hidcon.exe into your $OEM$ folder and then add 'hidcon.exe ' infront of your RunOnceEx batchfile's name in cmdlines.txt. Unlike cmdow.exe, then hidcon.exe will not shortly show the cmd prompt before it's hidden... It can be downloaded from this russian page : http://unattended.solta.ru/unattended.ru.htm
  5. Add the following as the last line in your runonceex.cmd and then run it(prefferably in a VM) : rundll32.exe iernonce.dll,RunOnceExProcess However, you need to have the paths correct, which means that if you e.g. install your apps from '$OEM$\$1\install\', then you'll need to make the folder '%systemdrive%\install\' and place your apps into there... If you still have path problems, then you need to read and reread the MSFN unattended guide's RunOnceEx and $OEM$ folders sections... If you still cannot get it to work, then post your folderstructure and your runonceex.cmd in codebox tags please...
  6. Please read the MSFN unattended guide, as this is explained there in detail.
  7. Some regtweaks will only work after explorer.exe has been fully loaded. To workaround this, then you can make your RunOnceEx.cmd to import the tweak from 'HKCU\...\RunOnce' which will start after explorer.exe has been fully loaded, if however, another key has been used before that, like e.g. 'HKLM\...\RunOnceEx'(= the key used in the RunOnceEx install method), since if only using 'HKCU\...\RunOnce' without any preceding keys run, then 'HKCU\...\RunOnce' is run before explorer.exe has been fully loaded(dispite popular belief...). Do something like this at the bottom of your RunOnceEx.cmd : reg add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v command0 /d regedit /s %systemdrive%\install\regtweaks2.reg /f Change regfile name and path accordingly, like e.g. if you use %cdrom% instead of $OEM$ folders etc. Also, if you use the $OEM$ folders, then you probably also need another 'HKCU\...\RunOnce' command(command1) which deletes the '%systemdrive%\install\' folder(or whatever it's called), like something like : reg add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v command1 /d cmd /c rd /s /q %systemdrive%\install\ /f
  8. Tomcat76 for sure deserves our praise, but please don't forget about TommyP(founder and co-maintainer), Fred Vorck("projectmember" - 'Win2K IE removal fileset' author) and tain(hosting/testing)
  9. Search MSFN/google for : <programname> silent install If there isn't a silent switch provided in the used installer, then either write an AutoIT script, or simply capture all the added files, folders and reg-entries(with e.g. Regshot unicode) and then make a batch/reg-file.
  10. I remember that nuhi once stated in a forum post here, that there where performance differences between simply disabling services vs. removing them and all their related reg-entries... As it is always the case with nLite, then please remember to only select components for removal for which you know for sure that you aren't going to be needing later on, and this is especially important with this specific field of component removals(services, that is)... However, if one is prepared to remake and reinstall whenever a new app dosen't work because of a missing component, instead of coming to the forums and whining about needing a post-install fix, then it's of course perfectly fine to experiment with getting lowest possible commit usage/install source size
  11. If you wan't to change away from the deafults i.e. ISO9660 + Joliet and with hidden files included, then edit the parameters under 'CDIMGSW' and/or 'MKISSW' in 'HFTOOLS\HFANSWER.ini'. 'CDIMGSW' is for configuring the command-line used when making an ISO with CDIMAGE.EXE(MS's internal ISO creation tool) and 'MKISSW' is for mkisofs(part of Jörg Schilling's cdrtools GPL suite). I personally use CDIMAGE.EXE and just leave the command-line as the default one, as that will support everything needed in a Windows install ISO.
  12. Well, for starters because 7-Zip is free, much more advanced(with the moded module) and features better compression... Personally, then i never change the icons away from the defaults, as the icons for me is totally irellavant, but to each there own, of course
  13. You're most welcome, mate However, i'm affraid i cannot really be of any help with your next problem, unfortunetly - except if the error message you saw where about not being able to find the inf file altogether, which then would be because you haven't entered the path to the inf in the 7z-sfx, as opposed to the RAR-sfx... About your other question, then 7z.exe is 7-Zip's command-line version and it's dynamically linked(externally) to the libs in the 7-Zip distribution, whereas 7za.exe is the stand-alone version, which has the libs statically linked(internally), and is restricted to only support 7z, zip, gzip, bzip2, Z and tar. Lastly, then just a little tip... When working with the 7z installer sfx module, then the archive is always unpacked into %temp%, except if defined otherwise, so you would actually then only need the two 'RunProgram' parameters and could ditch the 'InstallPath' one...
  14. First, i would just like to say that ricktendo64's advice about switching to Oleg Sch's modded 7z SFX module is very, very good advice indeed Second, then to answer your actual question, then you need to add the full path and a '*' to get 7-Zip to exclude the folder and only compress the files. 7-Zip's command-line interface is alittle different than standard Win32 CMD syntax, so '*.*' for 7-Zip, only reffers to files with an extension, whereas '*' is any file with and without an extension. Lastly, then the parameter '-t7z' is redundant, as it is the default used format. So, to recap, the complete command-line would be : 7z a -mx=9 av8.7z <path>\av8\*
  15. As i said, then it dosen't really matter what you place first, but i would personally incorporate both the user-accounts batchfile + the RunOnceEx batchfile into one single batchfile. I would then just add something like this to the beginning of my RunOnceEx.cmd file : net user "Martin Hertz" xxxxx /add net localgroup Administrators "Martin Hertz" /add net accounts /maxpwage:unlimited set key="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" reg add %key% /v DefaultUserName /d "Martin Hertz" /f reg add %key% /v DefaultPassword /d xxxxx /f reg add %key% /v AutoAdminLogon /d 1 /f
  16. It dosen't matter, so just place it wherever you wan't. It only matters if the batchfiles depends upon eachother, like e.g. if one sets up a user and the other edits something about that user account(ok, a little bad example, but just to show a scenario), then of course the one which sets up the user needs to come first, but in this case it's irrelavant... Edit: Beaten by ricktendo64
  17. For the feuture, then please don't crosspost, as this was one of the question in your previous post... I also allready told you the dependencies of the lite framework in your other post... You just extract the nLite archive into a folder and then install the lite framework into that same folder also. Then open regedit.exe and export a regfile with the key which states that the .Net framework is installed(look for it, as i can't remember what it's named/located, or use a registry tracer doing the install like e.g. regshot, to propperly locate it). Then finally you need the file '%windir%\system32\mscoree.dll'. Now you just write a batchfile which functions as a loader for nLite and which merges the regfile with the needed key(or better, uses reg.exe to add it ) and copies mscoree.dll into '%windir%\system32\' and then runs nLite with the 'start /wait' switches, and then afterwards deletes mscoree.dll from '%windir%\system32\' and deletes the reg-key. Personally, then i would then first try to see if nLite will work if you place mscoree.dll into the nLite subfolder where the lite framework is installed(without having it in '%windir%\system32\'), and if it does, then keep it in there, as then you don't need to have your loader(batchfile) copy/delete it everytime, and then just needs to create/delete that single reg-entry.
  18. nLlite by itself is portable, but the lite .NET framework depends upon two things besides just the files in the nLite subdirectory; mscoree.dll in %windir%\system32\' and a reg-entry which i cannot remember the name off(as i don't personally use nLite anymore, so i cannot check it and this is just from my memory...), but it relates to the .NET framework being installed...
  19. Sorry, i'm not Ponch, but what he said was that there's a difference between the NT local administrator account and any other admin rights enabled user accounts and the NT local administrator account becomes hidden by default whenever an admin rights enabled user account is made in addition to the NT local administrator account...
  20. Of course you can just repack it into a WinRAR SFX if wanted... For SFX making, then 7-Zip is free(like tk421 also said) and features better compression with it's LZMA format and features alot of advanced functionality when using Oleg Sch's moded 7z module. For general use, then i personally like 7-Zip's GUI and command-line interface better than WinRAR's, and allthough i'm not sure about if WinRAR supports that too, then i'm very fond of 7-Zip's ability to unpack installers like e.g. NSIS and MSI's etc. However, if none of the above relates specifically to you, then just go ahead and repack it into a WinRAR SFX installer And btw, when working with making 7z SFX installers frequently, then it's usually done with batchfiles and not with typing all those commands in every time
  21. Please be a little more verbose, as i haven't got a clue about what you mean by installing "Win2K Auto Update" ??? Anyway, if you're talking about installing Windows, then i would recommend using HFSLIP for slipstreaming all the updates into your install source. Second, then since you'd also like to ditch IE from Win2K, then i would recommend Fred Vorck's excellent IE removal fileset, which also works together with HFSLIP(you just dump the fileset into a specific folder), and it will in addition to removing IE also get rid of alot of other useless stuff and add some nice tweaks and security settings(you'll also save about 15mb commit and get a much less bloated install with e.g. a gutted registry etc.). Then for installing Opera, then either make a silent switchless installer by yourself(prefferably IMHO, but it's of course up to yourself), or get a pre-made one from either MSFN's nLite addons scetion or RyanVM's forum, and then integrate it into the install source with HFSLIP(also just dump it into a specific folder). In my Opera 7z SFX installer, then it installs the Opera MSI installer silently through a batchfile and afterwards copies my pre-configured profile folder over, so that i retain my custom settings. Here is the single command-line for just installing Opera : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet] @="Opera.exe" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html] @="Opera.HTML" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm] @="Opera.HTML" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https] "EditFlags"=hex:02,00,00,00 "URL Protocol"= [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\ddeexec] @="\"%1\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\ddeexec\Application] @="Opera" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\command] @="\"C:\\Program Files\\Opera\\Opera.exe\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http] "EditFlags"=hex:02,00,00,00 "URL Protocol"= [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\ddeexec] @="\"%1\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\ddeexec\Application] @="Opera" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\command] @="\"C:\\Program Files\\Opera\\Opera.exe\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image] @="Image" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open\ddeexec] @="\"%1\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open\ddeexec\Application] @="Opera" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open\command] @="\"C:\\Program Files\\Opera\\Opera.exe\" \"%1\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML] @="HTML Document" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open\ddeexec] @="\"%1\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open\ddeexec\Application] @="Opera" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open\command] @="\"C:\\Program Files\\Opera\\Opera.exe\" \"%1\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\DefaultIcon] @="C:\\Program Files\\Opera\\Opera.exe,1" Also, you can integrate your drivers and alot of other stuff with HFSLIP, including your custom regfiles etc. First go to the HFSLIP homepage and read the instructions carefully and then if you're having trouble, then you can post your questions over at MSFN's HFSLIP forum section, where the HFSLIP devs there are always very helpfull and ready to help out where needed, but please make your homework first before posting there Then if youre having problems with the Opera SFX installer, then the MSFN 'Application Installs' forum section is the place to go The links for both HFSLIP and Fred Vorck's fileset can be found in my signature...
  22. To the person saying that no NT local administrator account where available, then open a command-prompt and type 'net user' to see if it's there(which it is, btw) and then afterwards type 'net user administrator' to see more info about it i.e. if it's active etc. All NT based OS'es will by default have a local administrator account, which the install is being done from and where all other accounts are being made from during normal attended installs... Also, you will not see 'Administrator' in 'Documents and Settings', when you haven't logged in with the 'Administrator' account yet...
  23. Check '\I386\WINNT.SIF' and if it's cabbed, the uncab it and look for 'OemPreInstall' which needs to be 'Yes' and then also check if the 'GuiRunOnce' section's path to the batchfile is correct. If you don't use 'GuiRunOnce' from WINNT.SIF, but use nLite's 'RunOnce' section, then the GuiRunOnce section in WINNT.SIF will be set by nLite to run NLITE.CMD, and so then you need to check '\I386\NLITE.CMD' to see if the path to the batchfile which you've entered into nLite's 'RunOnce' section is correct. Finally, then also check that you are using the $OEM$ folders in the correct way, as per the MSFN guide states i.e. something like '\$OEM$\$1\install\'.
  24. @rkillcrazy : It's not pretty, but you can let the SFX run an unhiden batchfile that installs the app silently and echo's 'Installation in progress' and 'Please wait...' or something during the install. Just a thought @Oleg Sch I have been thinking about my previous request to you and comed to realize that you of course cannot do anything to fix the filecopy errors during textmode-setup, since textmode-setup checks the PE checksum of the SFX archives header(i.e. the SFX module) and since their isn't a correct checksum there, then it throws an error, and that you of course are unable to place a fixed checksum in the SFX module that would match every SFX archive made later on, so please just ignore my request and sorry for wasting your time... I have then just adapted my '7z-SFX-maker.cmd' batchfile to also run modifyPE.exe on the produced SFX archives additionally (I know that it sounds strange to slipstream the SFX archives in the way that i do, but the reason for that is that i use HFSLIP and that does this process for me on every SFX,CMD or INF file placed into a specific folder, so that they get slipstreamed and run at first GUI-logon from the RunOnce reg-key and i use that folder for all my SFX's, since they all are pre-configured with extra regfiles with e.g. file-associations etc. and those often dosen't work right from T-13(which HFSLIP also has a folder for)
  25. The list from the_guy focuses on high-priority updates from WU, so not all updates are listed there, as his list dosen't include optional updates from WU or hotfixes(yeah i know everyone calls normal updates for hotfixes, but that's wrong terminology, as hotfixes actually only reffers specifically to the QFE branch of normal updates, which includes the fixes from MS's request-only hotfixes(they are mostly request-only), but even MS uses this wrong terminology in several places). Personally, then i'm a big fan of Tomcat76's update lists, as they're dynamically updating after what you choose to include of extra components, so that i'm not seeing any IE6 or WMP9 updates when i'm not using those, and it also lists in which folders everything goes. Tomcat76's lists also includes the optional updates of WU additionally, but it also has an option of hiding them, which i find very nice as i'm only concerned about high-priority updates and nothing else myself. You can find the links to Tomcat76's update lists in his signature and on the HFSLIP homepage.
×
×
  • Create New...