CelticWhisper Posted January 11, 2007 Posted January 11, 2007 I'm working on a fork of my unattended setup and as I do not have my virtual machines available here, I'm stuck installing and reinstalling on the same system. There is no way around this and I'm not looking for suggestions to that effect.What my current problem DOES entail is a need for nLite to be automatically installed at the CMDLINES.TXT phase. T-12 or whatever.I currently have CMDLINES.TXT calling a SETUP.BAT file I have written that will run the setup files for a number of software packages I'm trying to "integrate" (not in the hotfix sense, just in the silent-install-with-OS sense).The problem I am encountering is as follows:I have the SETUP.BAT file attempt a silent installation of .Net Framework 2.0 with the Start /Wait command, and after the .Net Framework 2.0 installation is finished, to install nLite.However, once I'm booted into Windows, I find that nLite is NOT installed and that when I try to install it, it complains that .Net 2.0 is missing and required for nLite's installation.But nLite, I ALREADY INSTALLED THE **** FRAMEWORK.Anyway, the contents of my SETUP.BAT file:cd DOTNETStart /Wait netfx.msi /qn /norestartcd ..Start /Wait nlite.exe /silentStart /Wait ffinstall.exe -msStart /Wait FileZilla.exe /SStart /Wait vnc.exe /verysilentREGEDIT /S vnc.regStart /Wait nero.exe /silent /noreboot /no_uiREGEDIT /S nero.regREGEDIT /S nero2.regREGEDIT /S ctrl.regREGEDIT /S startmenu.regI can only imagine I'm doing the wrong thing on my netfx.msi line. I downloaded and extracted the contents of the .Net Framework 2.0 installer from Microsoft's downloads page. I try to use the .msi file and it complains that I should use install.exe instead. I try install.exe and I still get no results when nLite installs (it actually interrupts the Windows XP installation procedure to moan about .Net 2.0 needing installation first).So, any ideas on where I'm going wrong with this? I'm at my wits' end, tired, and extremely frustrated with this. I've already reinstalled 3 times trying to get this (Tarantino-esque string of expletives deleted) thing working.Thanks a million for any help you can provide.
CelticWhisper Posted January 11, 2007 Author Posted January 11, 2007 I've done some testing with my other variant of my automated install, and found that using install.exe /q will work to get nLite's installer working.HOWEVER...this only seems to work when XP is already installed. i.e. it will not work at install time, only on a subsequent boot and login. I discovered this as on this variant of my unattended setup, .Net is part of a separate Windows Updates CD and is installed after the system is up and running. By running the Update CD and then subsequently running the nLite installer, the nLite installer runs perfectly.So...my findings so far seem to be as follows:-Installing .Net Framework via the MSI package doesn't work.-Installing .Net Framework via install.exe at Windows install time doesn't work.-Installing .Net Framework via install.exe once Windows is already installed and running does work.Am I missing something?
meulc Posted January 11, 2007 Posted January 11, 2007 Try this:cd DOTNETREG ADD HKLM\SYSTEM\Setup /V SystemSetupInProgress /T REG_DWORD /D 0 /F Start /Wait netfx.msi /qn /norestartREG ADD HKLM\SYSTEM\Setup /V SystemSetupInProgress /T REG_DWORD /D 1 /F cd ..Start /Wait nlite.exe /silent
CelticWhisper Posted January 11, 2007 Author Posted January 11, 2007 Thanks, I'll give that a shot when I'm back at my test system.Out of curiosity, what do the registry lines do?
CelticWhisper Posted January 12, 2007 Author Posted January 12, 2007 That did the trick! Thank you so, so much. You are a LIFESAVER.
meulc Posted January 13, 2007 Posted January 13, 2007 (edited) Normally you can't install .net 2.0 while windows is still in setup mode.The first registery line makes netfx.msi think that windows is not in setup mode.After .net is installed, it puts back the correct value in the registery. Edited January 13, 2007 by meulc
CelticWhisper Posted January 15, 2007 Author Posted January 15, 2007 That...is weird. The fact that .net doesn't play nice with setup, I mean. But hey, it works now. Thanks again for the tip.
CelticWhisper Posted February 2, 2007 Author Posted February 2, 2007 Argh.It is now broken again. I have no idea how it happened, but when I switched from using nLite to customize my install to a manual customization with nLite only as a means of generating a bootable CD, something happened that caused the framework to not install during my setup process.My setup.bat file is as follows:REGEDIT /S SFCDisable.regStart /Wait call klcpf.batStart /Wait update20.exe /quiet /wuforceStart /Wait KB928939.msi /quiet /norestartcd euupdateStart /Wait fontinst.exe /quietcd ..Start /Wait KB831240.exe /quiet /norestartStart /Wait KB892211.exe /qREG ADD HKEY_LOCAL_MACHINE\SYSTEM\Setup /V SystemSetupInProgress /T REG_DWORD /D 0 /FStart /Wait Dotnet1point1.exe /q /c:"install /q"Start /Wait Dotnet1point1SP1.exe /qcd DOTNETStart /Wait install.exe /qcd ..Start /Wait Dotnet3point0.exe /q /c:"setup /q"REG ADD HKEY_LOCAL_MACHINE\SYSTEM\Setup /V SystemSetupInProgress /T REG_DWORD /D 1 /FStart /Wait KB886903.msp /quiet /norestartStart /Wait KB925168.msp /quiet /norestartStart /Wait KB922481.exe /quiet /norestartStart /Wait KB922770.msp /quiet /norestartStart /Wait KB887606.exe /quiet /norestartStart /Wait XML3SP7.exe /silentStart /Wait XML4SP2.msi /quiet /norestartStart /Wait KB927978.exe /quiet /norestartStart /Wait msxml6.msi /quiet /norestartStart /Wait KB927977.exe /quiet /norestartStart /Wait Script56.exe /QStart /Wait nlite.exe /silentStart /Wait ffinstall.exe -msStart /Wait FileZilla.exe /SStart /Wait vnc.exe /verysilentREGEDIT /S vnc.regStart /Wait 7zip.exe /SStart /Wait nero.exe /silent /noreboot /no_uiStart /Wait gaim.exe /S /NOUIStart /Wait gaimcrypt.exe /S /NOUIStart /Wait gaimotr.exe /S /NOUIStart /Wait JDK.exe /s /v /qnStart /Wait Netbeans.exe -silentStart /Wait textpad.msi /qnxcopy eclipse %programfiles%cd OOoStart /Wait setup.exe /qncd ..Start /Wait bootvis.msi /quiet /norestartStart /Wait bliss.exeREGEDIT /S advanced.regREGEDIT /S color.regREGEDIT /S ctrl.regREGEDIT /S cursor.regREGEDIT /S desktop.regREGEDIT /S KillAutorun.regREGEDIT /S metrics.regREGEDIT /S nero.regREGEDIT /S nero2.regREGEDIT /S startmenu.regREGEDIT /S taskbar.regREGEDIT /S visfx.reg
CelticWhisper Posted February 6, 2007 Author Posted February 6, 2007 New theory:Could this possibly have anything to do with updates being integrated into my install media? I can't confirm as of yet, but it seems to work better when I'm using a clean source as opposed to having integrated the latest hotfixes and service packs. Any .NET gurus around who can enlighten me on the possibilities behind it?Sorry to be such a pain in the can, it's just quite frustrating as without .Net, nLite complains that it can't install properly and I have to click a confirmation window. Which requires...you know...attention. On an unattended install. And I have a notoriously short attention span when it comes to these OOH! Pretty snow!
Tomcat76 Posted February 6, 2007 Posted February 6, 2007 (edited) If you install .NET 1.1 and .NET 2.0 (included in .NET 3.0) in the same go, applications that rely on .NET 2.0 will think .NET 2.0 isn't installed yet until the system is rebooted. The .NET 3.0 "extras" won't get installed either.Either install .NET 1.1 way at the end of your CMDLINES.TXT or install it at first GUI logon.It's not necessary to edit the registry to install .NET 1.1.Something aside... The WebClient service will be broken if you install .NET 3.0 at T-13. I don't know if that's also the case if installing it at T-12. Edited February 6, 2007 by Tomcat76
CelticWhisper Posted February 12, 2007 Author Posted February 12, 2007 If you install .NET 1.1 and .NET 2.0 (included in .NET 3.0) in the same go, applications that rely on .NET 2.0 will think .NET 2.0 isn't installed yet until the system is rebooted. The .NET 3.0 "extras" won't get installed either.Either install .NET 1.1 way at the end of your CMDLINES.TXT or install it at first GUI logon.It's not necessary to edit the registry to install .NET 1.1.Something aside... The WebClient service will be broken if you install .NET 3.0 at T-13. I don't know if that's also the case if installing it at T-12.Okay, let me make sure I have this right..Net 2.0 is an unnecessary installation provided that .Net 3.0 is installed, because 3.0 includes everything 2.0 had to offer. Ergo, apps requiring 2.0 will install and run if 3.0 is installed but 2.0 has never been actually explicitly installed by itself?Also, with regard to .Net 1.0, I read on the MSFN unattended guide that 1.1 will fail to install if run via RunOnceEx. They had some links to silent switchless installers, but the links were dead/broken/outdated.What I'm thinking is this: Can I set my CMDLINES.TXT to install .Net 3.0 first, then follow it up with .Net 1.0 and 1.1 at the end of the file? This would be at the T-13 stage.Thanks. I wish I knew why MSFT has gone and made .Net so much more obstinate and difficult than the rest of their updates. You'd think they could just bundle them all into one updated package, but nooooooooo...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now