Jump to content

ponghy

Member
  • Posts

    175
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Spain

Everything posted by ponghy

  1. Finally... I got it! I explain how to achieve this for other people I did the following: RunOnceX.inf [Version] Signature = "$WINDOWS NT$" [AddExtras] AddReg = Tasks [Tasks] HKLM,"%RunOnceEx%",Title,0,"Instalando componentes" HKLM,"%RunOnceEx%\01",,,".NET Framework 1.1 Repack (SP1)" HKLM,"%RunOnceEx%\01",1,,"%1%\DOTNETFX\SETUP.EXE /qb" HKLM,"%RunOnceEx%\01",2,,"%1%\DOTNETFX\LANGPACK_ESN.EXE /qb" HKLM,"%RunOnceEx%\02",,,"Windows Messenger 5.1" HKLM,"%RunOnceEx%\02",1,,"%1%\I386\messenger.msi /qb" [Strings] RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" WINNT.SIF [Data] UnattendedInstall = Yes MsDosInitiated = 0 [Unattended] UnattendedMode = GuiAttended OemSkipEula = Yes WaitForReboot = No [Branding] BrandIEUsingUnattended = Yes [URL] Home_Page = http://www.google.es Search_Page = http://www.google.es [FavoritesEx] ; Don't make any Microsoft-related favorite. [Components] ; Don't install old Windows Messenger. msmsgs = Off ; Don't install MSN Explorer. msnexplr = Off ; Don't install local games. freecell = Off hearts = Off minesweeper = Off pinball = Off solitaire = Off spider = Off ; Don't install Internet games. zonegames = Off [SetupParams] ; Prepare extras setup (they will be installed when user logs on for the first time). UserExecute = "rundll32 setupapi,InstallHinfSection AddExtras 128 %windir%\inf\RunOnceX.inf" As you can see, I'm using the UserExecute instruction to import the RunOnceX.inf in order to install the apps after first login. This instruction is executed at T-9, and all the keys being imported are kept after installation, including the Title key Also, I can using variable expansion, making my installation more flexible... (it works, verified). Now, 2 last questions: 1) I'm using only Unattended setup in text-mode, but -in GUI mode- Setup doesn't offer to the user the dialog to install network clients and protocols... What I should add (to WINNT.SIF) in order to do this? Note I want to install clients and protocols MANUALLY, not automatically (unattended). I tried to add the [Networking] section but no go 2) How can I install an MSI file showing the basic interface but without Cancel button? I tried /qb and /qr, but they didn't work (Cancel button is always shown). Thanks very much, for all your valuable help. This forum rocks! EDIT: Corrected wrong information in question 1.
  2. Can you explain in more detail how to do this? Can you put a little sample? Thanks very much
  3. Hi, thanks for your reply No, I'm importing the Prepare section when text-mode setup finishes, specifically in TXTSETUP.SIF: [HiveInfs.Fresh] AddReg = RunOnceX.inf,Extras.Prepare How can I import the Inf settings at T-12? (I'm interested in it, too). Keep in mind I'm not using batch files, only Infs... When Setup arises the T-13 mark the Extras.Add section is added to the Registry. Therefore, tasks are executed at first login. If I add the Title key to the Extras.Prepare Section, title is properly shown in THIS dialog box, but not in the next one (first login). The Title key is always ignored when user logs on the first time... Why this? Yes. See above. Because I'm importing the Inf settings in text-mode setup, and on this stage, Setup doesn't recognize variable expansion (as Gosh' tutorial claims). It would be interesting know how to import the Inf settings the first time at GUI-mode setup...I could use variable expansion without problems. Not entirely. Flag controlling if dialog box (RunOnceEx) appears or not, works. I'm using the 0x00000080 flag the first time to hide the importing process to the user. I want to show the RunOnceEx dialog only when *really* installing the apps. Other flags controlling log creation don't work (you're right at this point). Again, thanks for your valuable help. Waiting for your next response
  4. I'm using the following inf in order to install my additional components: [Version] Signature = "$WINDOWS NT$" [Extras.Prepare] HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",,0x00000012 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Flags,0x00010001,0x00000080 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\00",1,,"rundll32 setupapi,InstallHinfSection Extras.Add 128 ..\Windows\Inf\RunOnceX.inf" [Extras.Add] AddReg = Extras.Tasks [Extras.Tasks] HKLM,"%RunOnceEx%",Title,0,"Instalando componentes" HKLM,"%RunOnceEx%",Flags,0x00010001,0x00000020 HKLM,"%RunOnceEx%\01",,,".NET Framework 1.1 (SP1)" HKLM,"%RunOnceEx%\01",1,,"%1%\DOTNETFX\SETUP.EXE /q" HKLM,"%RunOnceEx%\01",2,,"%1%\DOTNETFX\LANGPACK_ESN.EXE /q" HKLM,"%RunOnceEx%\02",,,"Windows Messenger 5.1" HKLM,"%RunOnceEx%\02",1,,"%11%\msiexec /i %1%\I386\messenger.msi /q" [Strings] RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" The problem is that the Title key only works at T-13 mark, not at the first logon. At first logon, Windows ALWAYS show the "Windows Update" caption in the RunOnceEx box, whatever the title had set. Also, I tried to add the Title reg key in the Extra.Prepare and Extra.Tasks sections and didn't work. Perhaps the key is deleted by Windows at first logon... Why? and how to fix this? Installation is OK. The apps will install at first logon. Using Windows XP (SP2 integrated + Hotfixes) on VMware 5. Thanks for your help
  5. Any idea? All that I want is to execute \DOTNETFX\SETUP.EXE at T-13 (located on WinXP CD-ROM, without using batch files nor cmdlines.txt)...
  6. If not possible from SVCPACK.inf, how can do this from WINNT.SIF? In section [GuiRunOnce], should I put the command? Thanks for your patience.
  7. I've asked this before, in this thread, but no answer is given to me Please, I would like to know how to install an EXE file (installer) outside the \I386 directory of the XP CD. In this forum only I've found ways to do this with directories inside \i386, and not outside... I've modified my DOSNET.INF and svcpack.inf, as said in the above thread, but no go Is this possible? and if not, ¿what are my other chances? Thanks, and please, reply me. Any help would be very appreciated...
  8. I've read this thread entirely, but I'm on the following scenario: \DOTNETFX\SETUP.EXE <- this is my own silent package to install .NET FW. I would like to install in SVCPACK.INF, but it's not in the I386 directory, how to do this (if possible)? I have added to DOSNET.INF: [OptionalSrcDirs] \DOTNETFX But didn't work. Any ideas? Thanks.
  9. I've made my own .NET FW 1.1 SP1 + ASP Hotfix silent package (with WinRAR in TempMode) following this thread, but I've seen that the package does not contain the Windows Installer Setup files, i.e., InstMsi.exe and InstMsiW.exe. What about if the package would install in a Windows environment without Windows installer installed? Can I add the installers to the silent package and how to run first after the netfx.msi package? I have the silent package at CD-Root\DOTNETFX\Setup.exe . I want that when the package is executed, will check for the installation of Windows Installer and if not installed, then install and then apply the netfx.msi package in order to setup .NET Framework. I hope you understand me. Thanks
  10. jachin: Welcome to the forum. See the Timeline on the reference guide: http://unattended.msfn.org/global/timeline.htm It's almost complete. I would change that [setupParams] runs at T-13, not at T-9 (at least in Windows XP SP2). The same goes to RunOnce\Setup (the forums claims that it's executed at T-34, but it's started at T-13 too). Regards
  11. Cannot use variables expansion in text setup mode This is a fact. Now, my RunOnceX.inf: [Version] Signature = "$Windows NT$" [Prepare] HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",,0x00000012 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Title,0x00000000,"Instalacion de componentes" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Flags,0x00010001,0x00000020 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Inf",,,"Planificando" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Inf",1,,"rundll32 setupapi,InstallHinfSection AddTasks 128 \WINDOWS\Inf\RunOnceX.inf" [AddTasks] HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",,0x00000012 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Title,0x00000000,"Instalacion de componentes" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1",,,"Reproductor de Windows Media 10" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1",1,,"%01%\mp10setup.exe /c:""setup_wm.exe /Q /R:N /DisallowSystemRestore"" /q:A" TXTSETUP.SIF: [SourceDisksFiles] RunOnceX.inf = 1,,,,,,,20,0,0 [HiveInfs.Fresh] AddReg = RunOnceX.inf,Prepare With these settings, setup doesn't launch any error, and the RunOnce box appears. First, apply settings in order to install Media Player 10 after first logon (like gosh' guide). But, when I logon, no setup program appears. WMP10 is not installed at all. Please, help me with this last phase. I almost got it! Thanks again
  12. I've followed your advices, and I'm doing the following: RunOnceX.inf [Version] Signature = "$Windows NT$" [Prepare] HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\",Title,0x00000000,"Setup" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\",Flags,0x00010001,0x00000020 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Inf",,,"Scheduling" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Inf",1,,"rundll32.exe setupapi.dll,InstallHinfSection AddTasks ..\WINDOWS\Inf\RunOnceX.inf" [AddTasks] HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1",,,"Windows Media Player 10" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1",1,,"%01%\mp10setup.exe /c:""setup_wm.exe /Q /R:N /DisallowSystemRestore"" /q:A" All files are located on I386 subdir of WinXP CD. TXTSETUP.SIF: [SourceDisksFiles] RunOnceX.inf = 1,,,,,,,20,0,0 [HiveInfs.Fresh] ; Added by ME AddReg = RunOnceX.inf,Prepare When text mode setup finishes, section [Prepare] is added to the registry (OK). But at T-13 is executed: HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Inf",1,,"rundll32.exe setupapi.dll,InstallHinfSection AddTasks ..\WINDOWS\Inf\RunOnceX.inf" and Windows shows an Error box saying: "Setup Error". RunOnceEx box appears, but it doesn't do anything I'm near of the finish, but what's wrong in the rundll32 command? Thanks again for your infinite patience PD: I'm modding Windows XP Professional SP2 + Hotfixes integrated on svcpack.inf.
  13. Anyone? Please, help me. Thanks very much in advance
  14. Hi again. I'm using a different method (easier to me). I make a RunOnceX.inf file with the following: [Version] Signature = "$Windows NT$" [AddTasks] HKLM,"%RunOnceEx%\",Title,0,"Installing components" HKLM,"%RunOnceEx%\",Flags,0x00010001,20 HKLM,"%RunOnceEx%\0",,,"Windows Media Player 10" HKLM,"%RunOnceEx%\0",1,,"%1%\mp10setup.exe /c:""setup_wm.exe /Q /R:N /DisallowSystemRestore"" /q:A" [Strings] RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" This file is registered from HIVESFT.INF at the end of text mode setup: [AddReg] HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\Setup","",0,"rundll32 setupapi.dll,InstallHinfSection AddTasks 128 ..\WINDOWS\Inf\RunOnceX.inf" The path to RunOnceX.inf is hard-coded by now. I add RunOnceX.inf to DOSNET.INF and TXTSETUP.SIF DOSNET.INF [Files] d1,RunOnceX.inf TXTSETUP.SIF [SourceDisksFiles] RunOnceX.inf = 1,,,,,,,20,0,0 I'm using RunOnce\Setup instead RunOnceEx because RunOnce is executed at T-34 (according to these forums), but in T-13 RunOnceEx starts, and executes the tasks added in RunOnceX.inf. The problem is that Windows stops with a "Setup error" error, though the RunOnceEx box appears (but doesn't do anything). In addition, no text appears in RunOnceEx box (it should appear 'Windows Media Player 10'). What's wrong? and Can I substitute the RunOnce\Setup by RunOnceEx key and how to I would do this? Thanks very much
  15. Tried HIVESFT.INF without success (same error, using VMware 5). Another chance with WINNT.SIF? Is this Inf parsed after text mode setup? Thanks for your patience
  16. Thanks for the idea! Where can I look for documentation about 'Advanced Inf'? because Gosh' site has a link to 'Advanced Inf 2.0', but the link is broken. Now, I'm trying to add the registry entries directly into HIVESFT.INF. If this works, I hope this helps to someone in my same situation. This forum is superb! PD: Gosh, and other experts on Inf scripting are still here?
  17. The only problem is to find out the source drive where is located the executable (i.e., which is the drive letter of CD-ROM drive). As I said before, I have read that [sourceDisksNames] is used to do this, but I've seen only examples using variables expansion, like this: [SourceDisksNames] 1 = %cdname%,%cdtagfilei%,,\i386 Then, %1% is expanded to SourceDrive:\I386 Is there any way to do this specifying literals rather tan variables? For example, [SourceDisksNames] 1 = "","win51ip",,\i386 and later use %1 in the Extras.Install section? (not sure about this, since Extras.Inf is parsed at the end of text mode setup, and I've read in the gosh guide that in this stage, the Inf parsing is very poor (not supporting variables expansion)). Thanks for your valuable help PD: If only could find an Inf parsed and executed at the T-13 mark or a way for adding my own Inf to another Inf to be parsed and executed at that time...
  18. Thanks very much for your replies!! I don't want to use the $OEM$ folders method (see my first post), nor cmdlines.txt. I like very much the Inf way for its elegance (I have experience writing batch files, and I don't like for this purpose). Well, Is there any system Inf executed at T-13 mark? If so, then it would be easy to add the run sentence of WMP10 setup by using rundll32 and the SetupAPI engine. I know HIVEDEF.INF, HIVESFT.INF and HIVESYS.INF, but I'm not sure when these Infs are loaded and parsed. I have read that moviemk.inf is parsed and executed at T-13, but I'd prefer not to alter the Windows contents. Therefore, if moviemk.inf is parsed at T-13, can I configure Setup in order to parse my own Inf at that time mark?? Again, thanks for your feedback
  19. Hi guys. Due to success of my previous post (here), I will ask my questions in a simple manner: 1) Is there any way to run a program at T-13 mark without registering anything at text mode setup (and not using batch files, only Infs)? 2) If not, how can I run my Inf through RunOnceEx directly from the CD-ROM (without batches and $OEM$ folders)? I'm doing the following: First, register in [HiveInfs.Fresh] section of Txtsetup.sif my Inf file to install my applications. See below: [HiveInfs.Fresh] AddReg = hivedef.inf,AddReg AddReg = hivesys.inf,AddReg AddReg = hivesft.inf,AddReg AddReg = hivecls.inf,AddReg AddReg = hiveusd.inf,AddReg AddReg = dmreg.inf ,DM.AddReg ; Added by me AddReg = Extras.inf ,Extras.Install And here is my Inf file to install WMP10 silently and to apply a registry tweak for hiding the privacy statement: Extras.inf [Version] Signature = "$Windows NT$" [Extras.Install] HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Title,0,"Installing components" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Flags,0x00010001,20 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1",,,"Windows Media Player 10" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1",1,,"%01%\mp10Setup.exe /c:""setup_wm.exe /Q /R:N /DisallowSystemRestore"" /q:A" [Extras.Registry] ; Do not show Privacy Statement when running Media Player 10 the first time HKCU,"SOFTWARE\Microsoft\MediaPlayer\Preferences","AcceptedPrivacyStatement",0x00010003,1 When I enter in the GUI phase of setup, at T-13 mark it appears the RunOnceEx message box, but Windows stops with an error: could not find the "%01%\mp10setup.exe" file (more or less)... I know that I have to specify the path to the exe in [Extras.Install], but I have no idea to accomplish this. Expanded variables don't work at text mode setup (including [strings] section, I can't use this). I have read that the section [sourceDisksNames] instructs Windows to find the source drive from which is installing, but without expanded variables, don't know how this works (if works). If I use %01% in the file path of the registry entry (%01% is defined as source path, if I'm right) HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1",1,,"%01%\mp10Setup.exe /c:""setup_wm.exe /Q /R:N /DisallowSystemRestore"" /q:A" , Windows DOESN'T expand %01%... I have read several hours (days!) this forum, searching and searching for terms like "runonceex", "winnt.sif", "t-13 mark", but no go... (read the gosh guides, threads, etc.). So please, don't be hard with me for posting this. Any help would be very appreciated. Thanks very much
  20. Moderators, please move my post to Unattended Windows section. Thanks, and my apologies for inconvenience.
  21. Hi all. I'm new to this forum, and I need your help... I want to install these apps at T-13 mark with the RunOnceEx method on WinXP SP2 (integrated), but not in svcpack.inf: Windows Media Player 10 .NET Framework 1.1+SP1+Language pack (Spanish) MSN Messenger 7 (I don't know the silent switches). I've wrote the following Inf: RunOnceEx.inf [Version] Signature = "$Windows NT$" [DefaultInstall] AddReg = Extras [Extras] HKLM,"%RunOnceEx%\",Title,0,"Installing Applications" HKLM,"%RunOnceEx%\",Flags,0x00010001,20 HKLM,"%RunOnceEx%\install01",,,"Windows Media Player 10" HKLM,"%RunOnceEx%\install01",1,,"MP10Setup.exe /c:""setup_wm.exe /Q /R:N /DisallowSystemRestore"" /q:A" ; Here would go the .NET and MSN7 Registry entries (??) [Strings] RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" In addition, I don't know how to integrate .NET 1.1 SP1+Language Pack into the original installer of .NET Framework 1.1, and I don't know the silent switches to install SETUPNT.exe (MSN7). I have read the Gosh Guide, and this forum several times, but no go. According to Gosh Guide, I edit TXTSETUP.SIF, and I add: runonceex.inf = 1,,,,,,,20,0,0 [HiveInfs.Fresh] AddReg = RunOnceEx.inf,Extras And DOSNET.INF: [SourceDisksFiles] d1,runonceex.inf But I get an installation error (Windows Setup internal error. Please, contact with vendor, blah, blah, blah...) Finally, I want to add the following Registry tweak for WMP10: HKCU,"SOFTWARE\Microsoft\MediaPlayer\Preferences","AcceptedPrivacyStatement",0x00010003,1 I put in HIVEDEF.INF, but this has no effect. Any help would be very appreciated. Thanks in advance, and regards
×
×
  • Create New...