Jump to content











Photo
- - - - -

Status: 0xc0000017


  • Please log in to reply
33 replies to this topic

#26 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 19 July 2011 - 06:23 PM

The WIM image won't unmount properly with a hive loaded.

;) YOU ROCK...and now I am a bit smarter! :cheers:

While I am not sure this is the issue here, I always had issues with WIM files mounted and not unmounting cleanly when there was a failure...Need easy way to just unmount ALL of them that we could build into the OnExit* processing...Not only is it faster to use an unpacked set of files, it's "safer" for developers too!

Try to clean things up manually. From the start menu, right click Command Prompt and select "Run as Administrator" then "Yes", and type (copy/paste if it's correct):


I totally second this! While it is a pain to unmount old images, it is necessary!

#27 Michael*

Michael*

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 19 July 2011 - 08:19 PM

Another step forward, I finally got Script 1 to run without an error :cheers:
However, I read that using the extracted contents of install.wim (index 5) and boot.wim (index 2) was all that was required.

Does this mean that only these folders are required?

\Win7Extract\InstallWimSrc\ProgramData
\Win7Extract\BootWimSrc\2

I had to make a couple of adjustments ....

C:\Win7PE_SE\Projects\Tools\Win7PE_SE\x86\imagex6.0.exe /cleanup

C:\Win7PE_SE\Projects\Tools\Win7PE_SE\x86\imagex6.0.exe /unmount

C:\Win7PE_SE\Projects\Tools\Win7PE_SE\x86\imagex6.0.exe /unmount C:\Win7PE_SE\Workbench\Common\Win7Extract\InstallWimSrc

Unfortunately, cleanup is not an option ??? ;)

C:\Win7PE_SE\Projects\Tools\Win7PE_SE\x86>imagex6.0.exe /cleanup



ImageX Tool for Windows

Copyright (C) Microsoft Corp. All rights reserved.





IMAGEX [Flags] /Operation [Parameter List]



  Operation [ APPEND | APPLY   | CAPTURE | DELETE |

          	DIR	| EXPORT  | INFO	| SPLIT  |

          	MOUNT  | MOUNTRW | UNMOUNT ]



For help on a specific operation type:

  IMAGEX /Operation /?



Examples:

  IMAGEX /APPEND /?

  IMAGEX /APPLY /?

  IMAGEX /CAPTURE /?

  IMAGEX /DELETE /?

  IMAGEX /DIR /?

  IMAGEX /EXPORT /?

  IMAGEX /INFO /?

  IMAGEX /SPLIT /?

  IMAGEX /MOUNT /?

  IMAGEX /MOUNTRW /?

  IMAGEX /UNMOUNT /?



C:\Win7PE_SE\Projects\Tools\Win7PE_SE\x86>


:( YOU ROCK...and now I am a bit smarter! :cheers:

While I am not sure this is the issue here, I always had issues with WIM files mounted and not unmounting cleanly when there was a failure...Need easy way to just unmount ALL of them that we could build into the OnExit* processing...Not only is it faster to use an unpacked set of files, it's "safer" for developers too!


I totally second this! While it is a pain to unmount old images, it is necessary!


Edited by Michael*, 19 July 2011 - 08:52 PM.


#28 al_jo

al_jo

    Gold Member

  • Members
  • 1218 posts
  • Location:Tellus

Posted 19 July 2011 - 09:04 PM


Obvisouly you don’t have full “rights” on your own computer because “something” is blocking it.
What it is, I don’t know…
Not deactivating "UAC"?
Not running winbuilder.exe as “administrator”?

#29 Michael*

Michael*

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 19 July 2011 - 09:17 PM

It's not a rights problem. I used the imagex6.0 from Vista which ChrisR recommended for building with Win 7 SP0 source, even though my build system is Win7 SP1. They added new features such as "cleanup" in ImageX 6.1

imagex6.0 /help



IMAGEX [Flags] /Operation [Parameter List]



  Operation [ APPEND | APPLY   | CAPTURE | DELETE |

          	DIR	| EXPORT  | INFO	| SPLIT  |

          	MOUNT  | MOUNTRW | UNMOUNT ]



For help on a specific operation type:

  IMAGEX /Operation /?



Examples:

  IMAGEX /APPEND /?

  IMAGEX /APPLY /?

  IMAGEX /CAPTURE /?

  IMAGEX /DELETE /?

  IMAGEX /DIR /?

  IMAGEX /EXPORT /?

  IMAGEX /INFO /?

  IMAGEX /SPLIT /?

  IMAGEX /MOUNT /?

  IMAGEX /MOUNTRW /?

  IMAGEX /UNMOUNT /?



imagex6.1 /help



IMAGEX [Flags] /Operation [Parameter List]



  Operation [ APPEND  | APPLY   | CAPTURE | DELETE  |

          	DIR 	| EXPORT  | INFO	| SPLIT   |

          	MOUNT   | MOUNTRW | REMOUNT | UNMOUNT |

          	CLEANUP | COMMIT ]



For help on a specific operation type:

  IMAGEX /Operation /?



Examples:

  IMAGEX /APPEND /?

  IMAGEX /APPLY /?

  IMAGEX /CAPTURE /?

  IMAGEX /DELETE /?

  IMAGEX /DIR /?

  IMAGEX /EXPORT /?

  IMAGEX /INFO /?

  IMAGEX /SPLIT /?

  IMAGEX /MOUNT /?

  IMAGEX /MOUNTRW /?

  IMAGEX /REMOUNT /?

  IMAGEX /COMMIT /?

  IMAGEX /UNMOUNT /?

  IMAGEX /CLEANUP /?


Obvisouly you don’t have full “rights” on your own computer because “something” is blocking it.
What it is, I don’t know…
UAC?
Run as “administrator”?


Edited by Michael*, 19 July 2011 - 09:19 PM.


#30 al_jo

al_jo

    Gold Member

  • Members
  • 1218 posts
  • Location:Tellus

Posted 19 July 2011 - 09:26 PM

It's not a rights problem. I used the imagex6.0 from Vista which ChrisR recommended for building with Win 7 SP0 source, even though my build system is Win7 SP1. They added new features such as "cleanup" in ImageX 6.1

[


You are “trolling”?
Where is the "ENTERPRISE” as source now???

Ps. TRY make things more simple and you will somewhere in the future succeed...

#31 Michael*

Michael*

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 19 July 2011 - 09:40 PM

Trolling ???
I am using Enterprise as source. The Enterprise Trial is SP0 and I am using the imagex6.0 recommended by Chris.
If that's Trolling, you've got me confused?

You are “trolling”?
Where is the "ENTERPRISE” as source now???

Ps. TRY make things more simple and you will somewhere in the future succeed...



#32 al_jo

al_jo

    Gold Member

  • Members
  • 1218 posts
  • Location:Tellus

Posted 19 July 2011 - 09:42 PM

Trolling ???
I am using Enterprise as source. The Enterprise Trial is SP0 and I am using the imagex6.0 recommended by Chris.
If that's Trolling, you've got me confused?


I give up. No more from me in this thread!
Good Luck
;)

#33 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 20 July 2011 - 12:32 AM

well as long as NOTHING is mounted and you have things extracted, you should be good to go...BUT, if a script is forgetting to unmount a hive, you will still have issues...

As stated before - if you can make it work with MINIMAL things, then slowly add things in (or do a binary sort???) to find the script that is causing your issues -

Remember, this is a "some assembly required" type of a project.

Scott :cheers:

#34 Michael*

Michael*

    Frequent Member

  • Advanced user
  • 210 posts
  •  
    United States

Posted 20 July 2011 - 05:29 PM

I was able to build another project last night that actually booted. I changed a lot of things around and can't begin to remember all that I messed with, but I do know that I used the /cleanup feature in imagex6.1.exe for x86. I did not use imagex6.1.exe to build my project and with the older imagex6.0.exe there is no /cleanup option available. I used it anyway, just for the cleanup and my next build with imagex6.0 surprised me and worked. So, ..... I don't know if that was the fix or not, but I would recommended to anyone having troubles ..... I am going to use /cleanup before every build in the future.

I am also using extracted wim's which I placed inside the same folder as my Windows 7 Enterprise X86 SP0 source.
I modified the path to them in Images.script so when I delete my entire build folder, I don't lose them. I also remember I deleted the build folder with unlocker and ran a chkdsk :cheerleader:
I also discovered BCD00000000 hive was not suspicious at all and that I was a Troll :cheerleader:
I would have used imagex6.1.exe to build my project, but with a SP0 project it is not recommended and I believe it results in failure.

Edited by Michael*, 20 July 2011 - 05:39 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users