Jump to content

mritter

Member
  • Posts

    1,094
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by mritter

  1. This is my RunOnceEx.cmd file with similar updates: cmdow @ /HID @ECHO OFF for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i: set wpipath=%drive%\install\wpi SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY%\001 /V 1 /D "%wpipath%\WPI.cmd" /f EXIT
  2. And line 338. Your code is full of errors. Don't forget the line end ; (semi-colon). At least 7 lines missing it.
  3. Lawrenca, Doc Symbiosis, Kels, and myself have been talking about updating WPI.cmd to remove some clutter and find a better CD check. This is what I have come up with. It uses all the existing code, just in a different manner. It scans the %~dp0 to find the %wpipath%, nothing new. But it sets %drive% to just the drive name, ie, C:, D:, E:, W:, etc. This would be used as the cdrom if launched from cd/dvd. If %drive% is actually a harddrive, then you have to change the paths accordingly. The only one in my WPI.cmd would be the clean up script. As is, if you launched it from hd, the file would not be found. No big deal. No error message, no abort. If it was launched from cd, it will run the script. @ECHO OFF REM Determine startup path and drive letter. for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i: set wpipath=%~dp0 %wpipath%\Tools\cmdow.exe @ /hid REM Force resolution to needed size for wpi interface. REM %wpipath%\Tools\ResChange.exe -width=1280 -height=1024 -depth=max -refresh=max REM Font installation - the smooth and customizable way. REM start /wait %wpipath%\Tools\Fonts\FontInstaller.exe REM Special registry tweak needed. regedit /s %wpipath%\Common\WPI.reg REM Start WPI and wait for it to end. %wpipath%\WPI.hta REM Undo registry tweak. regedit /s %wpipath%\Common\Undo.reg REM Clean up script. REM %drive%\$OEM$\CleanUp.cmd REM Rebooting the sytem to finalize the installation process. REM shutdown.exe -r -f -t 60 -c "To finish installations WPI will now reboot in 60 sec..." exit I like the "less is more" thinking for scripts like this.
  4. I have been updating code for the CD check and ran into some code that launches the media player when program installation begins that needed some updating. I have never used the player so I am not 100% sure of it if ever worked before I changed the code. When I start WPI from the harddrive for testing purposes the player opens and closes just fine. When I start WPI from the cd on a fresh install of Windows the player opens and closes just fine. BUT when WPI starts from RunOnceEx after installing Windows the players open as a huge empty window with the title of "C:\\Audio\\Audio.exe" and it won't close when done installing programs. Has anyone else run into this, or any, problem with the media player? Are you playing music both in WPI app and installation, or just one of them?
  5. I figured out a way using the %~dp0 that Doc Symbiosis also mentioned. Using this method cut down the WPI.cmd code a little, the RunOnceEx.cmd a little bit, and generate.js uses a different file to identify the cd. It will also elimiate the need for the "Launch From CD" option. BUT.....there is always a but..... As of this posting, when running it from the harddrive for testing, a couple paths get "confused". I am still working on that and am getting close. AND.....there is always an and...... you will have to launch WPI.cmd from RunOnceEx.cmd, not from within the winnt.sif file. (That may change as code is modified) But this is the ideal way of doing it anyay. Stay tuned
  6. I like it. But add double-click on an entry to edit it.
  7. It's not just the above program, it never launches on my system, either. It did the very first time I used WPI, but never again. Something I have been looking into for a while, but no clue why.
  8. OK. I modified the code to add this to the Options Wizard: Install from CD? o Yes o No Launch WPI from CDROM, not from harddrive (Default is no.) Then in generate.js it automatically checks what your choice is and checks for either WPI.ICO or WIN51 and sets the path accordingly. Below is the zipped file with the 3 modified files. It will work fine with your old useroptions.js file, then when you save your new choice for install method, it will add the new line. (backward compatible). So now, with every new version you will not have to manually edit generate.js!!! As always, let me know if there are any bugs. It works on my system........Murphy's Law of programming.
  9. It has been brought up several times on how to specify to launch from CD or HD, but hasn't been fully explained or done. This is what would be needed so with new versions we won't have to remember to modify generate.js each time (like I just forgot to do). It would be the easiest to put this in useroptions.js: var launchFrom=CD; or =HD; Then in generate.js do this check in FindCDRom(): if (launchFrom==CD) { ..... FileExists(WIN51) ..... } else { .... FileExists{WPI.ICO) .... } The above will only work if you can get the variable from useroptions.js and pass it to generate.js Or put it in the temp registry entries. If you can pass it from useroptions.js, then add on option to the configwizard.js to specify our choice.
  10. Every computer has an IP assigned to it. Everything out of the box works fine: internet, printer/file sharing, can see all computers. I can move loads of small files with no problem. When I start moving large files, 500MB+, is when it starts happening. But not every time. Usually after a few gigs. It's like a transfer limit is killing it. I am just copying/pasting files from one computer to another. I doubt a transfer manager will no anything. Will keep looking around..............
  11. When I am copying/moving large, and sometimes small, files between my home computers I will usually get an error message stating the network location is no longer available. Yes it is available. I have to reboot the computer that "is no longer available" and continue where I left off. It will then do it again for no reason. Is there some bandwidth allowance setting I am overlooking? I am just using whatever defaults Windows XP provides. It is driving me nuts because at my work I never have this kind of problem. Even there I am just using the Windows defaults. I get the error using Simple File Sharing or regular sharing. All are the same XP install and updated. All same mobo and nic. No spyware. No virus. Any ideas would be appreciated.
  12. First off.....are there any better bootscreen editors besides: BootEditor LogonUIRandomizer BootSkin Screen Booty I got Boot Editor to work originally, but it is very unstable and crashes alot. But now my boot screen will not work. All I changed was drawing some black over part of the image I didn't want anymore. BE never cmplained about the palette being out of order, now it does. Says second color must....something. Anyway, I have now gone through all the above programs and still can't it to work again. BootSkin can do it correctly, but where is the file it creates??? What happens is either: It starts to load, shows my bootscreen, then locks up with screen still showing Shows my bootscreen, screen goes blank, then locks up I have tried not modifying the palette, ModifyPE and MakeCab (when just calling it ntoskrnl.exe for testing (normally use singkrnl.exe)), no modifications or all my normal Windows' moifications (nLite and RyanVMs addons), still not luck. I am pulling my hair out! It worked for a week, "erased" one little section, re-made the file, doesn't work. I am open to any alternative to Boot Editor. BootSkin is too limited to their style of boot screens, so, nah.... Thanks
  13. I found this page with some Google searching. I didn't help my problem any. http://bidayuh.sub.jp/viewtopic.php?p=6064 Start the program and go up to the menu and select your options. Seems to be rather old. When I ran it it said it couldn't find winlogon.exe.
  14. See if you can my reply below to get to work on x64. NOTE: The files are not intgrated with nLite, they are in the $OEM$ folder. if you get it to work for x64 be sure to post your results. 32bit version
  15. SolidAsRock, thank you for spotting the OEMPreinstall flag. That was all I was overlooking. I have never used the $OEM$ folder until now; used nLite to inetgrate everything. Now I know. I am totally surpirsed that Kelsenellenelvian hasn't put that on his Documentation page on the web site. It would save him, and others, a lot of time. Put it right above the [GuiRunOnce] tag: Just seeing that OemPreinstall tag would have saved me several hours trial and error and getting to the point of just saying "Screw it....there has to be a better program out there." But, now that it is all working, I am happy. I will stick with WPI. I also now use your method of not copying any of the WPI files to the harddrive; use a RunOnceEx.cmd script. That is much easier. But, as before, I was stuck on the OemPreinstall. One other thing you can do is put cmdow.exe in $OEM$\$$ and it will copy it to c:\windows\system32 so you won't have to specify the %CDROM%\Install\WPI\Tools\cmdow.exe complete path. Just call it direct. Thanks again........and don't be so angry.
  16. I am only trying to get the WPI folder copied to the harddrive (1.6MB), not the seperate Install folder where the programs are at. They will be installed from the cd/dvd. Or even just copy the wpi.cmd file to the harddrive. I just can't get them to be copied during Windows' installation. They get ignored. I don't just do: [Gui RunOnce] D:\wpi\wpi.cmd because two of my five computers, and some at my work, have two harddrives, so sometimes the cdrom drive is E: and it would fail. I have considered making seperate winnt.sif files for those computers, but just an extra step I'd like to avoid. winnt.sif ;SetupMgrTag [Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes" [Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=No TargetPath=\WINDOWS DriverSigningPolicy=Ignore NonDriverSigningPolicy=Ignore [GuiUnattended] AdminPassword=* EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=20 OemSkipWelcome=1 [UserData] ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (editted out) FullName="Mark Ritter" OrgName="I.E." ComputerName=Test [Display] BitsPerPel=32 Xresolution=1280 YResolution=1024 Vrefresh=75 [TapiLocation] CountryCode=1 Dialing=Tone AreaCode=563 [RegionalSettings] LanguageGroup=1 Language=00000409 [Components] Freecell=Off Hearts=Off Minesweeper=Off Pinball=Off Solitaire=Off Spider=Off Zonegames=Off [SystemRestore] CheckpointCalendarFrequency=2 CheckpointSessionFrequency=10 MaximumDataStorePercentOfDisk=3 RestorePointLife=10 [WindowsFirewall] Profiles=WindowsFirewall.TurnOffFirewall [WindowsFirewall.TurnOffFirewall] Mode=0 [Branding] BrandIEUsingUnattended=Yes [URL] Home_Page=http://www.google.com Search_Page=http://www.google.com [Proxy] Proxy_Enable=0 Use_Same_Proxy=1 [Identification] JoinWorkgroup=WORKGROUP [Networking] InstallDefaultComponents=No [NetAdapters] Adapter1=params.Adapter1 [params.Adapter1] INFID=* [NetClients] MS_MSClient=params.MS_MSClient [NetServices] MS_SERVER=params.MS_SERVER [NetProtocols] MS_TCPIP=params.MS_TCPIP [params.MS_TCPIP] DNS=No UseDomainNameDevolution=No EnableLMHosts=Yes AdapterSections=params.MS_TCPIP.Adapter1 [params.MS_TCPIP.Adapter1] SpecificTo=Adapter1 DHCP=No IPAddress=192.168.1.130 SubnetMask=255.255.255.0 DefaultGateway=192.168.1.1 DNSServerSearchOrder=12.207.234.13,12.207.235.13 WINS=No NetBIOSOptions=1 [GuiRunOnce] Command0=%systemdrive%\install\wpi\wpi.cmd I took out the .Net 2.0 command and put it in WPI so that WPI is the only Run Once item now. I suppose I could get rid of the Command0 id, but, never know when I will add more. So the main questions: Was my $OEM$ folder not set up correctly? Anything in $1 SHOULD be copied to the HD, correct? Still hacking away at it.......thank God for CD-RWs....!
  17. I recently found WPI and love it! I have it all configured, minus the actual programs, but I am having a major problem: I can not get the WPI folder copied to the harddrive AND/OR get %CDROM% in [GuiRunOnce] to work. I think I have it all configured correctly and have read all the documentation and the posts here, but it simply will not launch from the CD. Here is my image layout: XPCD The WIN51 and WIN51P files consists of the word "Windows" (no quotes) only.The win51p.SP2 file is blank. No reference to %cdrom%. winnt.sif: Now, Command0 runs just fine. It finds the scripts on C: and runs it. Great. But Command1 fails. It tries to look in "C:\install\wpi\wpi.cmd" but it is not there because it was never copied to the harddrive during Windows' installation. From everything I have read, it is supposed to be done automatically. I have also read on Microsoft's site that using %systemdrive% defaults to the $OEM$\$1\ path, but obviously not. If I try to use Command1=%cdrom%\$oem$\$1\install\wpi\wpi.cmd (give it the full path) it says: Can't find path "%cdrom%\$oem$\$1\install\wpi\wpi.cmd" try again with correct path and name It doesn't replace %cdrom% with D:\ like it should. %systemdrive% works fine. If I can get the WPI folder automatically copied the the HD then I could use %systemdrive% just fine. Or if I could get %cdrom% to be recognized I would be in business. I guess my preference would be to launch it directly from the CD, not have it copied to the harddrive at all. But if I have to at least have wpi.cmd on the hdarddrive, then I need %cdrom% to work. Someone please straighten me out. I have been wracking my brain for days now. Thank you!
×
×
  • Create New...