May 31, 200521 yr 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",,0x00000012HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Flags,0x00010001,0x00000080HKLM,"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,0x00000020HKLM,"%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
June 1, 200521 yr I was gonna reply to this, but not having the time to test it right now, I can only speculate.I'm guessing you import the Prepare section at T-12. After your first login, I can see 2 scenerios. The first is that it processes the first entry, goes on with life, and adds the next entries for next login. In doing so, it may delete old entries, and the title may be one of them.The next scenario would be it processes the first entry, and then goes onto the next one you just imported. Since it would be after 00, it would logically go onto the next step, thus not rendering the title properly.Until I can get some time to test this, I can't answer you. You could always fill me in on what is going on. Have you tried moving the title section up to the Prepare section? Also why don't you use the RunonceEX variable in that section as well? You can remove the flags key if you are using XP, as that stopped working in 2000.
June 1, 200521 yr Author Hi, thanks for your reply I'm guessing you import the Prepare section at T-12.No, I'm importing the Prepare section when text-mode setup finishes, specifically in TXTSETUP.SIF:[HiveInfs.Fresh]AddReg = RunOnceX.inf,Extras.PrepareHow 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?Have you tried moving the title section up to the Prepare section?Yes. See above.Also why don't you use the RunonceEX variable in that section as well?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.You can remove the flags key if you are using XP, as that stopped working in 2000.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
June 1, 200521 yr I understand what you are doing now.Have you tried placing it in the RunOnce section instead? This would hide any window, and I wouldn't see a conflict arising with the RunOnceEx section.As for the T-12, I was assuming you were doing this in command lines, but I can see why you are doing it the way you are. What you could also try is through sysoc.inf, as this should give similar results.
June 1, 200521 yr Author What you could also try is through sysoc.inf, as this should give similar results.Can you explain in more detail how to do this?Have you tried placing it in the RunOnce section instead? This would hide any window, and I wouldn't see a conflict arising with the RunOnceEx section.Can you put a little sample?Thanks very much
June 1, 200521 yr What you could also try is through sysoc.inf, as this should give similar results.Can you explain in more detail how to do this?Since you like gosh's tutorials, you can check his.herehere2You can also check RyanVM's update pack, he does the same in there.Can you put a little sample?I would assume this would work for your next questionHKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","mommy",,"rundll32 setupapi,InstallHinfSection Extras.Add 128 ..\Windows\Inf\RunOnceX.inf"
June 3, 200521 yr Author 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 = YesMsDosInitiated = 0[Unattended]UnattendedMode = GuiAttendedOemSkipEula = YesWaitForReboot = No[Branding]BrandIEUsingUnattended = Yes[URL]Home_Page = http://www.google.esSearch_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 = Offhearts = Offminesweeper = Offpinball = Offsolitaire = Offspider = 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. Edited June 5, 200521 yr by ponghy
June 4, 200521 yr 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).You might try /qb-No guarantee, but I think I remember this from a previous post.-ebaysuks
June 4, 200521 yr Author /qb! -> not recognized/qb- -> same as /qbAnd, what about the network question (please) ?
June 5, 200521 yr Author OK. Question 1 solved. I had a little typo in WINNT.SIF:UnattendedMode = GuiAttended -> UnattendMode = GuiAttendedBut, what about 2nd question? Is it impossible to hide the Cancel button while showing the installation progress?Thanks for your help (again)
June 5, 200521 yr Try /qn instead/qn : Displays no user interface./qb : Displays a basic user interface.
June 5, 200521 yr Author Yzöwl: Thanks for your input But, I want to show the progress bar without Cancel button. And:/q = /qnTried /qb, /qb-. They didn't work as expected (still showing the Cancel button).Any ideas guys?
June 5, 200521 yr /qb! is the switch you're looking for. If calling the MSI itself doesn't recognize the switch usemsiexec.exe /i %PATHTOMSI%\some.msi /qb!/qb! is an internal Windows Installer switch so it should be recognized.What it could be, is that you don't have Windows Installer 2.0 installed. XP SP1 and up should have it though.And for reference: http://msdn.microsoft.com/library/default....ine_options.asp Edited June 5, 200521 yr by Alanoll
Create an account or sign in to comment