MSFN Forum: [GuiRunOnce] Where do i put my batch files and my exe's and reg tw - MSFN Forum

Jump to content



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

[GuiRunOnce] Where do i put my batch files and my exe's and reg tw Where do i put my batch files and my exe's and reg tweaks Rate Topic: -----

#1 User is offline   chrisoborski 

  • Engineer
  • Group: Members
  • Posts: 49
  • Joined: 24-February 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 18 March 2010 - 11:12 PM

Im Working on a new unattended cd and its been about 6 years since the last one and this is like starting all over again. I never used [GuiRunOnce] last time. I used cmdline.txt for my registry tweaks and those didnt get imported. I think by using [GuiRunOnce] my registry tweaks will get imported since some of those contain HKEY_CURRENT_USERS registry keys. I read that [GuiRunOnce] will run those when the first user is logged on.

I've got two files right now that i want to run The first is WALLPAPER.EXE which is a sfx archive containing really nice wallpaper that will self extract into C:\WINDOWS\Web\Wallpaper directory. So anytime you want to change the wallpaper there already there in the menu of wallpapers to choose from.

So My question is when i create a batch file to run WALLPAPER.EXE and REGTWEAKS.REG what location does [GuiRunOnce] call my batch file from? What location does it need to be on the cd?

So i guess all in all Where does my batch file need to be on the cd? ... Where does my two files WALLPAPER.EXE and REGTWEAKS.REG need to be on my cd?

Will i need to put that location in the batch file that is called from [GUIRUNONCE]?

I wasnt sure if these three files get copied from $OEM$ folder or if i should even place anything in that folder so i figured id ask..

Thanks Again AS MSFN has been a HUGE resource in the past .. Except i didnt ask any questions last time.

Thanks Again

Chris

..

This post has been edited by chrisoborski: 18 March 2010 - 11:21 PM



#2 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,119
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 18 March 2010 - 11:22 PM

You don't need to add those commands to a batch file, just add them to the winnt.sif file section.
    [GuiRunOnce]
      "regedit /s %systemdrive%\install\regtweaks.reg"
      "%systemdrive%\install\wallpaper.exe"
Your two files would go into the X:\$OEM$\$1\Install folder.

For a refresher see here.

#3 User is offline   shashi 

  • Group: Members
  • Posts: 1
  • Joined: 19-March 10
  • OS:2003 x86
  • Country: Country Flag

Posted 19 March 2010 - 12:58 AM

How to install windows 2003 server on a SATA hard disk from CD.? Will there be any one to help me on this regard!!!!!!!!!!

#4 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,655
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 March 2010 - 01:07 AM

View Postshashi, on 19 March 2010 - 12:58 AM, said:

How to install windows 2003 server on a SATA hard disk from CD.? Will there be any one to help me on this regard!!!!!!!!!!



Sure! As soon as you ask in the right area and DON'T hijack someone else's thread like this!

#5 User is offline   chrisoborski 

  • Engineer
  • Group: Members
  • Posts: 49
  • Joined: 24-February 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 19 March 2010 - 01:57 AM

Hey Thanks Yzöwl

I got it Just add my commands to [GuiRunOnce] section of Winnt.sif

So from what i can tell the $OEM$\$1\ gets copied to the c:\ <----windows xp installation

This would get renamed to oem\install if im right or no ?

Thanks Again - Im bookmarking that page! - Thanks

Chris

EDIT:>>>>

Nevermind I found this --> http://unattended.ms...xp/view/web/18/
That explains it all..

Thanks Again
.

This post has been edited by chrisoborski: 19 March 2010 - 03:42 AM


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