MSFN Forum: script/batch file to run on first boot help - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

script/batch file to run on first boot help how do you display a text file on inital boot after installation Rate Topic: -----

#1 User is offline   ir0nd4gg3r 

  • Group: Members
  • Posts: 6
  • Joined: 12-January 11
  • OS:XP Pro x86
  • Country: Country Flag

Posted 12 January 2011 - 09:32 PM

ok so what im trying to do is have a text file popup on the screen the first time i login after installing my xp cd

ps sorry if this has been answered before i couldnt find anyhting on the subject on here and on google for the past 5 hours

thanks


#2 User is offline   5eraph 

  • Update Packrat
  • Group: Supreme Sponsor
  • Posts: 816
  • Joined: 04-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Posted 13 January 2011 - 02:08 AM

Open your text file with Notepad using RunOnceEx. Follow the steps below. As written, your text file should be located in a directory specified in the PATH environment variable, such as the %SystemRoot% directory.

  • Decompress SVCPACK.IN_ in the I386 directory of your Windows source files to get SVCPACK.INF. Place the SVCPACK.INF file in I386 and delete the file named SVCPACK.IN_ in I386.

  • Verify that the CatalogSubDir value in the [SetupData] section in SVCPACK.INF is set correctly. It should read as follows:

    [SetupData]
    CatalogSubDir="i386\svcpack"
    


  • Add the following line to the [SetupHotfixesToRun] section at the end of the SVCPACK.INF file:

    MyRegs.cmd
    


  • Create a file named MyRegs.cmd in the I386\svcpack directory of your Windows source files with the following single line of code:

    Reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\OpenTextFile" /v "1" /d "Notepad.exe \"TextFileName.txt\"" /f
    

This post has been edited by 5eraph: 13 January 2011 - 02:48 AM


#3 User is offline   ir0nd4gg3r 

  • Group: Members
  • Posts: 6
  • Joined: 12-January 11
  • OS:XP Pro x86
  • Country: Country Flag

Posted 13 January 2011 - 02:53 PM

only one question where do i locate the txt file i dont see from the code where it should be located on the cd unless i missed it

#4 User is offline   5eraph 

  • Update Packrat
  • Group: Supreme Sponsor
  • Posts: 816
  • Joined: 04-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Posted 13 January 2011 - 04:26 PM

Sorry. It's difficult to know your current level of experience with only three posts to your credit. Are you familiar with the $OEM$ distribution folders and WINNT.SIF? Other methods exist to get your files installed, but the $OEM$ folders are the easiest once they're set up properly.

#5 User is offline   ir0nd4gg3r 

  • Group: Members
  • Posts: 6
  • Joined: 12-January 11
  • OS:XP Pro x86
  • Country: Country Flag

Posted 13 January 2011 - 05:41 PM

nope im a beginner at this i get everything else ok just not where to put my text

This post has been edited by ir0nd4gg3r: 13 January 2011 - 05:43 PM


#6 User is offline   5eraph 

  • Update Packrat
  • Group: Supreme Sponsor
  • Posts: 816
  • Joined: 04-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Posted 13 January 2011 - 07:11 PM

OK. Thorough explanations for the $OEM$ folders and WINNT.SIF are provided at the links in my previous reply. Here's a crash course to get your text file in:

  • Create a file named WINNT.SIF in the I386 directory of your Windows source files that contains the following lines of code:

    [Unattended]
    OemPreinstall="Yes"
    


  • At the root of your Windows source (outside I386) create the directory "$OEM$\$$" and place your text file in the $$ subdirectory. This will install your text file in $SystemRoot$ ("C:\WINDOWS" by default).

This post has been edited by 5eraph: 13 January 2011 - 07:12 PM


#7 User is offline   ir0nd4gg3r 

  • Group: Members
  • Posts: 6
  • Joined: 12-January 11
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 January 2011 - 05:24 PM

one last question svcpack.inf do i leave it like that or makecab it back to svcpack.in_

#8 User is offline   ir0nd4gg3r 

  • Group: Members
  • Posts: 6
  • Joined: 12-January 11
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 January 2011 - 05:25 PM

just want to be sure

This post has been edited by ir0nd4gg3r: 14 January 2011 - 05:43 PM


#9 User is offline   5eraph 

  • Update Packrat
  • Group: Supreme Sponsor
  • Posts: 816
  • Joined: 04-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Posted 14 January 2011 - 08:25 PM

You can MakeCab it if you'd like, but it's not necessary. Be advised that if both SVCPACK.INF and SVCPACK.IN_ exist in I386 then Windows will use the .IN_ file.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy