Jump to content

dtcostelloe

Member
  • Posts

    5
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About dtcostelloe

  • Birthday 12/24/1980

dtcostelloe's Achievements

0

Reputation

  1. I just have a quick question about the DevicePath key itself ... If you are going to add additional directories for Windows to scan when it detects new hardware, how should that be put into this key? I saw one post somewhere on Microsoft's page that said to separate directories with a semi-colon. But, the the key type for DevicePath is MULTI_SZ, and I noticed that if you go into the Registry Editor and manually edit the key, you can actually press ENTER to insert a carriage return and put stuff on a different line. Am I making sense? In other words, which of these is right? (Or will both work?) Example 1: c:\windows\inf;c:\windows\drivers\vid;c:\windows\drivers\etc Example 2: c:\windows\inf c:\windows\drivers\vid c:\windows\drivers\etc The main reason I ask is because I have a CMD script that is going to run at a certain point during my XP setup. Depending on how I set the command in the script, I can set the DevicePath key either as Example 1, or Example 2 - but I don't know which was is right, or wrong ... Here's my code: (this would produce Example 1) @CMDOW @ /HID @ECHO OFF TITLE=Windows Setup SET DRVKEY="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" REG ADD %DRVKEY% /V DevicePath /T REG_MULTI_SZ /S ! /D "%SystemRoot%\inf;%WinDir%\DRV\00-CHP\01;%WinDir%\DRV\00-CHP\02;%WinDir%\DRV\00-CHP\03;%WinDir%\DRV\00-CHP\04;%WinDir%\DRV\00-CHP\05;%WinDir%\DRV\00-CHP\06" /f EXIT (this would produce Example 2) @CMDOW @ /HID @ECHO OFF TITLE=Windows Setup SET DRVKEY="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" REG ADD %DRVKEY% /V DevicePath /T REG_MULTI_SZ /S ; /D "%SystemRoot%\inf;%WinDir%\DRV\00-CHP\01;%WinDir%\DRV\00-CHP\02;%WinDir%\DRV\00-CHP\03;%WinDir%\DRV\00-CHP\04;%WinDir%\DRV\00-CHP\05;%WinDir%\DRV\00-CHP\06" /f EXIT The only difference between the two is that the /S value changes from an exclamation point to a semi-colon in Example 2, which I kind of did by accident, and saw the results of Example 2 in my registry file. Each folder was listed on it's own line. But, of course, I don't know if it will work like that or not ... In any event, I changed the file to read "/S !" because I didn't realize at first that the REG command would interpret all my semi-colons as carriage returns, and then I got all confused, so here I am! Sorry if I've made this overly confusing or whatever. Thanks in advance for any input! Regards, Dave
  2. OK everyone ... I figured out what was going on ... actually, thanks to thepeterp for pointing out my code errors Unfortunately, that wasn't the only cause of my problems (because I realized the errors in the code shortly after I'd posted the help request here, and Reader still wasn't installing correctly). Anyway, when I downloaded Acrobat Reader from Adobe, they offered different packages for download. One was an EXE compiled installer (which was what you saw in my earlier post.) A different package was a good ole fashioned MSI package. I downloaded the MSI package and made changes to the RunOnceEx.cmd, and it works perfectly! Thanks to everyone who posted their thoughts and stuff. When I (finally) get done with this CD, I will post my specifics and stuff on here for anyone who might be trying to do the same things I am but hasn't had much luck. So far though, the CD is perfect, and now I'm working on setting up the drivers stuff. I downloaded all the DriverPacks from Bāshrat the Sneaky's page, and I've consolidated a lot of them into a different folder structure, which successfully allows me to get all the drivers within the 4096 character limit in WinNT.sif. I got it down from over 4096 characters to about 2080 or so ... (I didn't really like the way the DriverBASE program was manipulating the Setup CD I was working on, so I opted to do things manually, but still use all the drivers collected in the DriverPacks.) Unfortunately, there's no way for me to test the driver package installations without using this disc on real hardware, and I don't have a computer to sabotage right at the moment. I will post all the details and all my files when I get this project done. Thanks again to all who put in their 2-cents-worth! Regards, Dave
  3. Thanks a TON! I actually had the right settings all along ... which is probably why I couldn't find any "other" registry keys to change on the net. The reason my code wasn't working was because I was putting the setting under the wrong key. My code had [HKEY_CURRENT_USER ....] instead of [HKEY_LOCAL_MACINE ....]. For whatever reason, the code I was using under the HKCU key worked to change the Start Menu to the Classic Style on first login, but setting the NoSimpleStartMenu value to 0 under the HKCU key wouldn't change it back. Oh well ... it works under the HKLM key, and I guess it doesn't matter how or why it works - as long as it does! Anyway, I've made the adjustments and the code is working. Thanks again for your help! I have another thread on here where I had asked for some advice with my unattended setup ... I believe I've answered my own questions for the most part, but I will post my entire process and stuff in that thread when I get done with the whole project. (Maybe someone else on here will find it useful.) I'll also post a link from here to there. Regards, Dave
  4. Greetings ... I have been searching everywhere for an answer to this question ... Google and everything else keeps sending me to garbage that talks about everything EXCEPT what I'm trying to do ... What I'm trying to do is simple. I am working on an install / Windows Setup CD. I need a clean desktop without anything on it (including the Start Menu) for a phase during my setup. So, I figured out that I can make everything work by switching WinXP into the Classic Start Menu mode via the registry. I just apply the registry patch before the first user login, and then WinXP doesn't automatically open the danged Start Menu when it boots up. Now, what I need to do is find a way to tell XP through the registry that I want to use the New Style (XP Style) Start Menu the NEXT time the user logs on. It doesn't have to be persistent ... meaning it doesn't have to try to force the user to KEEP the XP Style setting ... I just want it set to that for the second time the user account is logged in. After the second login, if the user wants to use Classic mode or whatever, they can change it ... I just want the whole account going back to "Windows Default" settings after a planned reboot which will all happen the very FIRST time the account is logged into. Hopefully I'm making sense. I can't find in the registry where the start menu style is "saved" in the registry to over-write it for the next logon. So, anyone have any idea at all how I can do this???? Thanks in advance for any help! PS: I'm looking for registry edits only ... I don't want to use any programs or software that I'll have to manipulate ... it wouldn't work for my purpose.
  5. Greetings all, please forgive me if this problem has been addressed or mentioned elsewhere on the forums. Doing a search did not turn up anything related to my particular problem - which is with Adobe Reader 9, and the last option after it, CLEANUP.CMD - they don't seem to want to work as I need them to without being run from a user who is actually logged on. Does that make sense? Basically, I've been working on a custom WinXP Pro SP3 installation disc. So far, I've successfully integrated the following software: (My source disc was WinXP Pro x86 with SP2.) Service Pack 3 (This was integrated by running the .EXE with /INTEGRATE.) Internet Explorer 7 + All Updates / Hotfixes (I used nLite for integrating this one.) Media Player 11 + All Updates / Hotfixes (via the WMP11 Slipstream tool.) Various Microsoft Hotfixes that showed up in Windows Update after I installed all the above. (All were manually input using the SVCPACK folder and corresponding .INI file.) Then, I setup RunOnceEx (following the excellent guide(s) on this forum) to install some third party software, which follows: .Net Framework 1.1 (Some programs need it, so I want it to auto-install.) .Net Framework SP1 for v1.1 (And should probably update it ...) Hotfix for .Net v1.1 with SP1 (And heck, why stop there? Let's update it some more!) .Net Framework 3.5 with SP1 (This installer (from MS) already had the v3.5 and SP1 put together.) DirectX 9.0c (2008 Redistributable from MS.) Sun Micro JAVA (Whatever the latest version is.) Adobe Flash Player 9 Apple QuickTime player v7.5 Adobe Acrobat Reader 9 (This is where the problem starts ...) CleanUp.cmd (I've got this posted below for you to see ...) So ... my problem is that for some reason, Adobe Reader 9 doesn't install. The setup program launches, but when XP finishes running RunOnceEx and actually logs the first user on, Adobe Reader is not there ... no icons or anything - not even listed in Add/Remove Programs (although everything else installed from RunOnceEx is listed there.) Then ... a few of the commands to be executed in CleanUp.cmd do not work properly. I don't think the problem is with Adobe OR CleanUp ... because what I think is going on is that Adobe will not install correctly unless the user is logged on somehow. Then, CleanUp goes in and attempts to delete icons from the desktop that are normally placed there by MP11 and Adobe Reader. But, the WMP11 icon remains because it does not appear until AFTER the user logs on, which is AFTER CleanUp.cmd has executed. The odd thing is, everything else in RunOnceEx workes perfectly. What I've thought about doing is using RunOnceEx to copy another .CMD file to the AllUsers\Programs\Startup folder that will launch the Adobe Reader installer and THEN delete the icons I don't want on the desktop. But, this would make the entire install process seem a bit untidy to me ... Hopefully, I'm making sense ... here's a copy of the RunOnceEx.CMD file I'm using, and the CLEANUP.CMD file. If anyone has any thoughts or suggestions, please let me know. Is there a way to delay RunOnceEx from starting until AFTER the first user has logged on? My RunOnceEx.CMD: @CMDOW @ /HID @ECHO OFF TITLE=WindowsXP Setup SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Windows XP Setup" /f REG ADD %KEY%\005 /VE /D ".Net Framework v1.1 SP 1" /f REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\dn11.exe /q:a /c:\"install.exe /q\"" /f REG ADD %KEY%\005 /V 2 /D "%systemdrive%\install\dn11sp1.exe /Q" /f REG ADD %KEY%\005 /V 3 /D "%systemdrive%\install\kb928366.exe /Q" /f REG ADD %KEY%\015 /VE /D ".Net Framework v3.5 SP 1" /f REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\dn35.exe /q /norestart" /f REG ADD %KEY%\020 /VE /D "DirectX 9.0c" /f REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\dx90c.exe" /f REG ADD %KEY%\025 /VE /D "JAVA for Internet Explorer 7" /f REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\java.exe /quiet /norestart" /f REG ADD %KEY%\030 /VE /D "Adobe Flash Player 9" /f REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\flash.msi /quiet /norestart" /f REG ADD %KEY%\035 /VE /D "Apple QuickTime Player v7.5" /f REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\qtsetup.exe /quiet /norestart" /f REG ADD %KEY%\040 /VE /D "Adobe Acrobat Reader 9" /f REG ADD %KEY%\040 /V 1 /D "%systemdrive%\reader9.exe /s /rs" /f REG ADD %KEY%\040 /VE /D "Finalize Settings and Reboot" /f REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f EXIT My CLEANUP.CMD: @CMDOW @ /HID @echo off Title=WindowsXP Setup shutdown.exe -r -f -t 60 -c "Windows will reboot your computer in 1 Minute..." net user aspnet /delete DEL "%AllUsersProfile%\Start Menu\Programs\acrobat.com.lnk" DEL "%AllUsersProfile%\Desktop\acrobat.com.lnk" DEL "%AllUsersProfile%\Desktop\adobe reader 9.lnk" DEL "%AllUsersProfile%\Desktop\QuickTime Player.lnk" DEL "%HomePath%\Desktop\Windows Media Player.lnk" RD /S /Q %systemdrive%\install\ PAUSE EXIT Thanks in advance for any help or suggestions on how I can make this work! By the way, CLEANUP.CMD is working ... because it DOES delete the QuickTime icon, but it doesn't delete the Windows Media Player.lnk, but that might be because it points to the %HomePath% directory which isn't active until AFTER RunOnceEx finishes it's stuff. So, hopefully someone knows of a workaround or something for this ... Regards, Dave
×
×
  • Create New...