
Martin H
MemberContent Type
Profiles
Forums
Events
Everything posted by Martin H
-
HFSLIP always copies files in 'HFGUIRUNONCE' to 'SOURCESS\I386', renames them to HFGUI(n).ext, and defines them in txtsetup.sif/dosnet.inf to be copied to '%windir%\HFSLIP' and installed from there... Only files from HFSVCPACK[_SW1/2] are copied to 'SOURCESS\I386\svcpack' and installed from there! Please try again, and make sure that you follow the instructions on the hfslip homesite to the letter! Thanks... Btw, if the .exe's you're using, are 7z-sfx-installers, made with Oleg_Sch's modified 7z-installer-module, then the error from Windows during txtmode stage, is because you need to run modifyPE.exe on the files first, to fix the headers...
-
You insert the relevant reg-keys fdv kindly provided, either directly into one of the hive files(or other suited setup INFs), or you make an INF/REG-file or NT Command Script(needs reg.exe) with the reg-keys and define it to be run at either T-13(svcpack.inf), T-12(cmdlines.txt), or first-logon(GuiRunOnce/RunOnce[Ex])...
-
IMHO, then the nicest and cleanest method of installing apps without an installer, is by using an INF file, like e.g. this one for Foxit Reader: [Version] Signature=$Windows NT$ [DefaultInstall] CopyFiles=copyfiles AddReg=addreg UpdateInis=updateinis RunPostSetupCommands=runpostsetupcommands:1 [DestinationDirs] copyfiles=16422,Foxit Reader [copyfiles] Foxit Reader.exe Foxit_JS_ExObjects.dll fxdecod1.dll js.dll [addreg] HKCU,"Software\Foxit Software\Foxit Reader\MainFrame","ShowEditorAd_908",0x0,"0" HKCU,"Software\Foxit Software\Foxit Reader\MainFrame","ShowReaderAd_908",0x0,"0" HKCU,"Software\Foxit Software\Foxit Reader\MainFrame","ShowTypewriterAd_908",0x0,"0" HKCU,"Software\Foxit Software\Foxit Reader\MainFrame","ShowPOAd_908",0x0,"0" HKCU,"Software\Foxit Software\Foxit Reader\MainFrame","ShowSDKAd_908",0x0,"0" [updateinis] setup.ini,progman.groups,,group1=%16409% setup.ini,group1,,"Foxit Reader,""""""%16422%\Foxit Reader\Foxit Reader.exe"""""" setup.ini,progman.groups,,group2=%16410%\Microsoft\Internet Explorer\Quick Launch setup.ini,group2,,"Foxit Reader,""""""%16422%\Foxit Reader\Foxit Reader.exe"""""" [runpostsetupcommands] %16422%\Foxit Reader\Foxit Reader.exe -Register This INF will make a folder in %programfiles% named 'Foxit Reader', copy the four program files over to that folder, make shortcuts on the desktop and in quick launch, add reg-entries for diabling adds, and registering file-associations. All the 4 program files + the above INF should be in the same folder, but if wanting the 4 program files into a seperate folder for "cleanlines"(so it's an INF + a folder with the source files), then just change the 'copyfiles' section like this: [copyfiles] Foxit Reader.exe,files\Foxit Reader.exe Foxit_JS_ExObjects.dll,files\Foxit_JS_ExObjects.dll fxdecod1.dll,files\fxdecod1.dll js.dll,files\js.dll (No need for SourceDisksNames/SourceDisksFiles ) Note: The above is an Advanced INF and hence needs to be installed through advpack.dll: rundll32 advpack.dll,LaunchINFSection install.inf,,1
-
If you are reffering to me, then the INF and filelist where posted for showing how to have Opera silently installed + pre-configured, like with i.e mail accounts, contacs, speed-dial etc.
-
Thanks alot, mate CU, Martin!
-
Yeah, you could do that, but as long as cdimage.exe/mkisofs.exe works fine, then i honestly don't see the point, however... Thanks for your contribution, nonetheless
-
Would you kindy respond to this post of mine, please. (As I don't know if you either agree, disagree, thinks i'm a complete imbecile or just plainly forgot ) http://www.msfn.org/board/index.php?s=&...st&p=855552
-
No need to apologise, mate And btw, then my SP5 comment were actually not directed at you, but at FDV @FDV: Yeah, please drop printer drivers, that would be great Thanks again, mate! :Me waits patiently for the upcomming set-9 final, so that i can finally do a new re-install
-
You do now that the HFSVCPACK_SW1 folder is for unsupported Type-1 updates, right? All WMP11 updates on the update-list is listed to go in HF, so no surprice there PS: Please don't take this as me being a smartass, or something, because i assure you that this isn't my intention!
-
Btw, for making silent installers, then i would strongly recomend checking out the 7z SFX modified module(sticky thread on top of this forum)... It features a boatload of config options, including e.g. adding reg-entries without using REG-files, and running NT Command Processor commands without using NT Command Scripts etc... Just a tip for a more advanced solution, if you're serious about making silent installers, but if you're just into the easiest solution, then stick to WinRAR
-
Yeah, i have never liked that "SP5" terminology either, when regarding FDV's fileset, as it's 1. not SP5 and 2. resembles USP5 to much, which leads to even more confusion... IMHO then "FDV's Win2k-SP4 IE/Junk Removal Fileset" would be much more appropriate, but that's just me Anyway, FDV's fileset is for english Win2k install media, and yes, you can add korean language afterwards through regional options(located in 'ZRMPFPP\I386\LANG' folder i belive, so don't delete that folder to save space for non-western language systems!). If used on regionalized Win2k install media, then you'll have to edit the fileset appropriately, so strings in hive files are translated correctly etc.
-
How can I install a .inf file from the command line?
Martin H replied to lucky2007's topic in Application Installs
If the INF to install has a DefaultInstall section, then it's silently installed with: rundll32 advpack.dll,LaunchINFSection <PathTo>\name.inf,,1 (advpack runs the Advanced INF commands(if any), and calls setupapi for the standard INF commands) However, with many 3'rd party INFs, then a DefaultInstall section is not always used, and then you need to investigate which install-section to call instead: rundll32 advpack.dll,LaunchINFSection <PathTo>\name.inf,<InstallSection>,1 -
I've just qucikly tested set-9d, and the only thing i could spot, was from checking setuperr.log, where i saw that the two files which final.inf should have registered, weren't registered: Error: Setup failed to backup the catalogs with error 3. The system cannot find the path specified. *** Error: Setup could not register the OLE Control C:\WINNT\system32\odbcconf.dll because of the following error: DllRegisterServer returned error 2147500037 (80004005). *** Warning: NetSetup: Could not find a section for {C12E9EAD-B8DF-40D7-A8EC-FBDD0733D26A}, therefore if parameters were specified for this adapter (e.g. static IP address, etc.) they will not be used. *** Warning: Setup was unable to initialize NetDDE because of the following error: A routine in the NetDDE library returned failure. *** Error: Setup was unable to prepare for network setup. *** Error: Setup was unable to process some components because of the following error in section DefaultInstall of information file final.inf: The data is invalid. *** Error: Setup could not register the OLE Control C:\WINNT\system32\wbem\wbemcore.dll because of the following error: LoadLibrary returned error 126 (7e). *** Error: Setup could not register the OLE Control C:\WINNT\system32\wbem\wbemcntl.dll because of the following error: LoadLibrary returned error 126 (7e). *** Error: Setup could not register the OLE Control C:\WINNT\system32\fdeploy.dll because of the following error: LoadLibrary returned error 126 (7e). *** Error: Setup could not register the OLE Control C:\WINNT\system32\mmcshext.dll because of the following error: LoadLibrary returned error 126 (7e). *** Warning: Setup was unable to change service entry ClipSrv because of the following error: OpenService returned error 1060 (424). *** Warning: Setup was unable to change service entry NetDDE because of the following error: OpenService returned error 1060 (424). *** Warning: Setup was unable to change service entry NetDDEdsdm because of the following error: OpenService returned error 1060 (424). *** Error: An error occurred during the final phase of Setup. *** Thank's again for your efforts FDV, it's much appreciated, mate
-
Unatended install won't work(winXP apps)
Martin H replied to bookert2003's topic in Application Installs
Additionally, then 'start' is an internal command belonging to the NT Command Processor, and hence, cannot be called directly from RunOnceEx, but would instead need to be run like this 'cmd /c @start /wait xxxxx'(or cmd /q /c start /wait xxxxx). However, you don't actually need that switch, since RunOnceEx "waits" by default... -
jvidal is saying that you need the latest beta of HFSLIP, which can be obtained from the first post of this thread...
-
Just wanted to illustrate how I make my silent/pre-configured Opera installation, so that others maybe can benefit from it... First, I install Opera, and change 'multi user=1' to 'Multi User=0' in "%programfiles%\Opera\operadef6.ini"(this will make the profile and mail folders as subfolders of the Opera program folder, instead of adding them as two additional folders in '%appdata%' and '%usersettings%\Local Settings\Application Data'), and then I start Opera and configure the browser and mail client as i please. Then I make a folder named 'profile' and in there i make two subfolders named 'profile' and 'mail'. I then copy the following files over to the profile folder/subfolders: From '%programfiles%\Opera\profile' to 'profile\profile': opera6.ini ;general settings. opera6.adr ;bookmarks. speeddial.ini ;speedial. cookies4.dat ;cookies. wand.dat ;passwords. contacts.adr ;contacts. From '%programfiles%\Opera\mail' to 'profile\mail': accounts.ini ;mail-accounts settings. signature1.txt ;signature - I delete the text in this file(by default an advert for opera), as else that text will be used as a signature in the bottom of all the mails you send. From '%programfiles%\Opera\program\plugins' to 'profile': NPSWF32.dll ;Flash Player plugin - just download the installer and extract it to get that file. Then i place the Opera classic installer, the profile folder and the following INF into a folder named Opera_v9.64: [Version] Signature=$Windows NT$ [DefaultInstall] RunPreSetupCommands=runpresetupcommands CopyFiles=copyfiles1,copyfiles2,copyfiles3 UpdateInis=updateinis AddReg=addreg [DestinationDirs] copyfiles1=16422,Opera\profile copyfiles2=16422,Opera\mail copyfiles3=16422,Opera\program\plugins [copyfiles1] opera6.ini,profile\profile\opera6.ini opera6.adr,profile\profile\opera6.adr speeddial.ini,profile\profile\speeddial.ini cookies4.dat,profile\profile\cookies4.dat wand.dat,profile\profile\wand.dat contacts.adr,profile\profile\contacts.adr [copyfiles2] accounts.ini,profile\mail\accounts.ini signature1.txt,profile\mail\signature1.txt [copyfiles3] NPSWF32.dll,profile\NPSWF32.dll [updateinis] "%16422%\Opera\operadef6.ini",System,"Multi User=1","Multi User=0" [addreg] HKLM,"SOFTWARE\Classes\.htm",,0x0,"Opera.HTML" HKLM,"SOFTWARE\Classes\.html",,0x0,"Opera.HTML" HKLM,"SOFTWARE\Classes\.mht",,0x0,"Opera.HTML" HKLM,"SOFTWARE\Classes\.mhtml",,0x0,"Opera.HTML" HKLM,"SOFTWARE\Classes\.xht",,0x0,"Opera.HTML" HKLM,"SOFTWARE\Classes\.xhtm",,0x0,"Opera.HTML" HKLM,"SOFTWARE\Classes\.xhtml",,0x0,"Opera.HTML" HKLM,"SOFTWARE\Classes\http","EditFlags",0x1,02,00,00,00 HKLM,"SOFTWARE\Classes\http\shell\open\command",,0x0,"""%16422%\Opera\opera.exe""" HKLM,"SOFTWARE\Classes\http\shell\open\ddeexec",,0x0,"""%%1""" HKLM,"SOFTWARE\Classes\http\shell\open\ddeexec\Application",,0x0,"Opera" HKLM,"SOFTWARE\Classes\https","EditFlags",0x1,02,00,00,00 HKLM,"SOFTWARE\Classes\https\shell\open\command",,0x0,"""%16422%\Opera\opera.exe""" HKLM,"SOFTWARE\Classes\https\shell\open\ddeexec",,0x0,"""%%1""" HKLM,"SOFTWARE\Classes\https\shell\open\ddeexec\Application",,0x0,"Opera" HKLM,"SOFTWARE\Classes\Opera.HTML",,0x0,"HTML Document" HKLM,"SOFTWARE\Classes\Opera.HTML\DefaultIcon",,0x0,"%16422%\Opera\opera.exe,1" HKLM,"SOFTWARE\Classes\Opera.HTML\shell\open\command",,0x0,"""%16422%\Opera\opera.exe"" ""%%1""" HKLM,"SOFTWARE\Classes\Opera.Image",,0x0,"Image" HKLM,"SOFTWARE\Classes\Opera.Image\shell\open\command",,0x0,"""%16422%\Opera\opera.exe"" ""%%1""" HKLM,"SOFTWARE\Clients\StartMenuInternet",,0x0,"Opera.exe" [runpresetupcommands] Opera_964_classic_Setup.exe /s Note: It's an 'Advanced INF' and hence needs to be installed through advpack.dll and not through e.g. rightclick\Install: rundll32 advpack.dll,LaunchINFSection install.inf,,1 PS: Here's an INF which will add an extra rightclick context-menu option for INF files named 'Install (advpack)': [Version] Signature=$Windows NT$ [DefaultInstall] AddReg=addreg [addreg] HKLM,"SOFTWARE\Classes\inffile\shell\Install (advpack)\command","",,"rundll32 advpack.dll,LaunchINFSection %1,,1" And in .reg file syntax: [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inffile\shell\Install (advpack)\command] @="rundll32 advpack.dll,LaunchINFSection %1,,1"
-
Yeah, sorry - i forgot to mention that previously... As i don't know any console apps which can both copy tags from FLAC to MP3 files and also supports ID3v2 tag writting, then i would recommend sticking to TAG.EXE in a NT Command Script like the one i posted above, and then add an '--ape2' switch to TAG.EXE, which then will write only APEv2 tags to the MP3s, and then afterwards download the freeware app Mp3tag, unpack the NSIS installer with e.g. 7-Zip and run Mp3tag.exe. Then you go into the options by pressing CTRL+O, and under 'Tags > Mpeg' you select 'APE' under 'Read' and unselect 'ID3v1' and 'ID3v2' under 'Remove'. Then you add your source folder with CTRL+D(it's recursive, so all sub-folders are added to) and then rewrite the tags with CTRL+S(which will add ID3v2 tags) and then finally remove the redundant APEv2 tags with CTRL+R.
-
I've recently changed to installing my apps from a second data-drive/partition, instead of the %cdrom% based method, since that's even more faster, but then i thought to myself, why not also doing the same with the drivers, i.e. having the drivers stored on a second data-drive/partition, and then letting Windows install them from there, and so i changed the method described in this thread(uncompressed drivers from CD), with the following changes: I placed the $OEM$ folder on my second data-drive/partition, and renamed it to Drivers, and then changed the 'Arguments' section in WINNT.SIF to the following: [GuiUnattended] DetachedProgram=".\system32\cmd.exe" Arguments="/Q /C start /min /Dxxxxx NirCmd.exe exec hide Drivers.cmd" (Where xxxxx is the path for the Drivers folder) Just wanted to post this, in case someone would find it interesting...
-
Quick untested NT Command Script where a source folder is dropped upon: @echo off for /r %1 %%g in (*.flac) do flac -dc "%%g" | lame -V5 --noreplaygain - "%%~dpng.mp3"&tag --fromfile "%%g" "%%~dpng.mp3" TAG.EXE: http://www.synthetic-soul.co.uk/tag/
-
XP SP3 Unattanded - start.cmd timing.
Martin H replied to ziaxboss's topic in Unattended Windows 2000/XP/2003
If e.g. using RunOnceEx and wanting to add a tweak or run an app which needs explorer.exe to be fully loaded, then we need to make a workaround... To workaround this, then you can make your RunOnceEx.cmd to call start.cmd 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 <PathTo>\start.cmd /f Then also in the beginning of start.cmd, it's a good idea to make a break just in case(the break alone will not work, and all the above is mandatory!). The break can be initiated by abusing the ping command like e.g ping -n 10 localhost >nul Change -n 10 to how many secs you want the break to be... -
Thanks alot for all your help, Yzöwl; it's very much appreciated, mate CU, Martin.
-
My vote goes for ditching both, thanks!
-
Ahh, i see! Thank's alot for the clarification! 1. Why have you added two backslashes(not in the paths)? 2. Why have you added one extra double-quote than in my example? Is it because it is the more correct syntax? Or are my example not working on your tests? (I always myself preffer to make Command Scripts/INFs as small as possible, like e.g. why use MD, when XCOPY always makes the destination dir if not existing when adding a backslash, and also why use the /i switch of xcopy, when a backslash does exactly the same and is one byte shorter, but that's just me - I preffer smaller size over strict syntax correctness...)
-
Hi Yzöwl I've tested this on Win2k, and with this OS, then to make a valid shortcut, i need the following amount of double-quotes(no matter if there's any spaces or not): [Version] Signature=$Windows NT$ [DefaultInstall] UpdateInis=updateinis [updateinis] setup.ini,progman.groups,,group1=%16410%\Microsoft\Internet Explorer\Quick Launch setup.ini,group1,,"Regshot unicode,""""""%16422%\Regshot unicode\Regshot.exe"""""" When you look at the above line, then i don't understand why it works, since IMHO, there should be an extra double-quote at the very end of the line, but it works nonetheless, and it also works if i add that extra double-quote, so i just omit it, as it's redundant then... Anyway, i would like to ask you if you would please explain to me why there is ever a need for more than three double-quotes before or after a word i.e. like the above example? I do understand that the INF parser strips the first double-quote away at each sides, and then we can have a double-quote after that, which then in turn needs to be escaped by another double-quote, but that's still just three at the most, so how come the above example and other INFs i've seen use e.g. 5 double-quotes at each side? I hope you don't mind me asking you this question, but it's just since i know that you are the inhouse NT Command Script/INF wizzard Thanks in advance.
-
This is based on Yzöwl's great tip of howto make shortcuts through INFs... The following places shortcuts for "%programfiles%\Regshot unicode\Regshot.exe" onto the desktop and in Quick Launch: @echo off echo>tmp.inf [Version] echo>>tmp.inf Signature=$Windows NT$ echo>>tmp.inf [DefaultInstall] echo>>tmp.inf UpdateInis=updateinis echo>>tmp.inf [updateinis] echo>>tmp.inf setup.ini,progman.groups,,group1=%%16409%% echo>>tmp.inf setup.ini,group1,,"Regshot unicode,""""""%%16422%%\Regshot unicode\Regshot.exe"""""" echo>>tmp.inf setup.ini,progman.groups,,group2=%%16410%%\Microsoft\Internet Explorer\Quick Launch echo>>tmp.inf setup.ini,group2,,"Regshot unicode,""""""%%16422%%\Regshot unicode\Regshot.exe"""""" rundll32 advpack.dll,LaunchINFSection tmp.inf,,1 del tmp.inf Use the above as a template for your own NT Command Scripts and change the dirids to whatever, and if you don't know what that means, then either educate yourself through googling, or use a tool like shortcut.exe!