MSFN Forum: Editing Startnet.cmd - MSFN Forum

Jump to content



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

Editing Startnet.cmd Rate Topic: -----

#1 User is offline   mike2bf 

  • Group: Members
  • Posts: 4
  • Joined: 10-July 09

Posted 22 January 2012 - 08:06 AM

Hi all, I am wanting to deploying Windows XP via a DVD or USB stick. I want the user to boot from either media and have the install take place with minimal interaction from the user. On the media I have the boot.wim for PE and my XP wim. I have edited start net.cmd to call diskpart to format the target drive etc then imagex to apply the XP image. I am saving start net in Windows\system32 on the boot.wim. I then burn my iso to a dvd then boot. When I boot into PE my custom startnet.cmd is reverting back to the default. What's going wrong????

Thanks

Mike


#2 User is offline   arwidmark 

  • Member
  • PipPip
  • Group: Members
  • Posts: 100
  • Joined: 22-December 05
  • OS:none specified
  • Country: Country Flag

Posted 22 January 2012 - 08:10 AM

You need to commit the changes to the wim file, using imagex /unmount /commit <mount-folder>. Please note that some wim's, like the Windows 7 boot.wim have multiple indexes, so that you mount the right index.

A tip when unmounting and commiting changes is also to close all Explorer windows before doing so. The WIM filter driver in WAIK 2.0 is quite sensible to open file handles.

/ Johan

#3 User is offline   Schiiwa 

  • Junior
  • Pip
  • Group: Members
  • Posts: 72
  • Joined: 23-December 10
  • OS:none specified
  • Country: Country Flag

Posted 22 January 2012 - 01:27 PM

You also have to load wimfltr with following command to use imagex within a pe:
rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 path-to-wimfltr\wimfltr.inf

#4 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 843
  • Joined: 11-November 08

Posted 22 January 2012 - 02:01 PM

Quote

rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 path-to-wimfltr\wimfltr.inf


this is unnecessary (in that we use imagex in winPE and dont run this command), just make sure imagex.exe is actually there and make sure your apply command is syntactically correct. it would probably be easier to troubleshoot if you post your Startnet.cmd, unless of course you are just not committing your changes on unmount as the first reply suggested may be the case.

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