MSFN Forum: Windows 7 Ultimate/Server 2008 R2 Enterprise SP1 Batch Removal - MSFN Forum

Jump to content


vLite Forum Rules

If you are having issues with Windows after removing components and have come to ask for help, please attach (not paste) your Last Session.ini file to your post to facilitate quicker assistance.
  • 7 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Windows 7 Ultimate/Server 2008 R2 Enterprise SP1 Batch Removal dism + vlite + batch file removal for official release Rate Topic: -----

#61 User is offline   alvinkhorfire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 103
  • Joined: 11-May 08

Posted 18 April 2011 - 12:43 AM

If I am not mistaken, we use GImageX to mount the Windows image. Then, we execute the batch removal file, via Command Prompt as Administrator.

View Postdark79, on 16 April 2011 - 11:53 AM, said:

Either install it to the system32 directory or copy the subinacl.exe file from the default install directory (somewhere in program files) and copy it into system32 folder or the last two commands won't work when it's reached in the batch file.

After the batch removal file has completed its task, we shall close Command Prompt, and unmount the the image via GImageX. Before we unmount the image, can we delete the subinacl.exe from system32 folder of the mounted folder (C:\s2)? It is only needed to present during the batch removal, and it not needed afterwards, right? I may as well delete it.


#62 User is offline   dark79 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 25-November 07

Posted 18 April 2011 - 05:37 AM

View Postalvinkhorfire, on 18 April 2011 - 12:43 AM, said:

If I am not mistaken, we use GImageX to mount the Windows image. Then, we execute the batch removal file, via Command Prompt as Administrator.

View Postdark79, on 16 April 2011 - 11:53 AM, said:

Either install it to the system32 directory or copy the subinacl.exe file from the default install directory (somewhere in program files) and copy it into system32 folder or the last two commands won't work when it's reached in the batch file.

After the batch removal file has completed its task, we shall close Command Prompt, and unmount the the image via GImageX. Before we unmount the image, can we delete the subinacl.exe from system32 folder of the mounted folder (C:\s2)? It is only needed to present during the batch removal, and it not needed afterwards, right? I may as well delete it.


I didn't install it to the mounted image. I installed it to the Windows install I was already using to make the image.

Also those extra lines of text didn't work out and I'm going to have to figure something else out. For some reason, some of the files in my System32/drivers folder didn't get admin permissions so I got BSODs when Windows tried to install default hardware (like Bluetooth).

#63 User is offline   dark79 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 25-November 07

Posted 18 April 2011 - 06:48 AM

I'm giving up on the batch file. I'll just wait until either RT7Lite is updated to handle SP1 better or another method is found. There are far too many different permissions/ownership to have to change and revert in order to get this working right for me.

Taking ownership and changing all the permissions to include Administrators with full permissions and then changing the owner universally to Administrators would probably work, but you'd just have to be confident the people on your computer with Admin rights won't break something.

EDIT: I'm currently testing with setting Administrators as the Owner of the files instead of Trusted Installer. Seems ok in VMWare. Haven't tested an actual install yet though.

This post has been edited by dark79: 19 April 2011 - 05:40 AM


#64 User is offline   TrendMark 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 17-January 11
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 24 April 2011 - 07:31 AM

I also tried to work on a lite job from this file but I recieved "dism error. How can I solve this problem. If anyone knows how to do it, please help me... :(

#65 User is offline   chlje 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 06-April 11
  • OS:none specified
  • Country: Country Flag

Posted 30 May 2011 - 01:54 AM

I Wondder to know after running the batch file, will Hotfix and feature-Control panel be broken ? :unsure:

#66 User is offline   boogerlad 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-October 09

Posted 22 June 2011 - 02:18 PM

why are there number signs in front of some delete commands? Are those comments to some experimental things that may break the windows installation if removed?

#67 User is offline   boogerlad 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-October 09

Posted 23 June 2011 - 04:53 PM

I keep getting access denied for the last part with the batch removal. Has anyone been successful in executing it? It seems that changing permissions breaks the installation from what I read.

EDIT: Extracting the wim with 7-zip and running the batch file works there... And it seems to install fine. Is that an "okay" alternative?

This post has been edited by boogerlad: 23 June 2011 - 09:42 PM


#68 User is offline   alvinkhorfire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 103
  • Joined: 11-May 08

Posted 23 June 2011 - 11:48 PM

View Postboogerlad, on 23 June 2011 - 04:53 PM, said:

I keep getting access denied for the last part with the batch removal. Has anyone been successful in executing it?

So, does access denied cause the selected files unable to be selected? If so, this is how I solved it. For me, this occurs if I use WAIK for Windows 7. If I use WAIK for Windows Vista, there will not be any access denied and all selected files are deleted.

#69 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,390
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 24 June 2011 - 12:43 AM

View Postboogerlad, on 23 June 2011 - 04:53 PM, said:


I think it's because you have extracted files inside install.wim with 7-zip!!

#70 User is offline   boogerlad 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-October 09

Posted 24 June 2011 - 12:48 AM

Um, no. At first, the image was mounted with gimagex with no waik installed, and the batch file was ran inside the mounted image's folder. I kept on getting access denied. Then, I decided to extract the wim with 7-zip and run the batch file. It worked perfectly, but I'm wondering if that's an "okay" method? Of course, it would be better if I can fix the access denied issue with gimagex.

#71 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,390
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 24 June 2011 - 12:54 AM

View Postboogerlad, on 23 June 2011 - 04:53 PM, said:

I keep getting access denied for the last part with the batch removal. Has anyone been successful in executing it? It seems that changing permissions breaks the installation from what I read.

EDIT: Extracting the wim with 7-zip and running the batch file works there... And it seems to install fine. Is that an "okay" alternative?


OK! It seems I misunderstood your post!? Alternative with 7-zip :ph34r:

This post has been edited by myselfidem: 24 June 2011 - 04:16 AM


#72 User is offline   boogerlad 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-October 09

Posted 24 June 2011 - 01:05 AM

View Postalvinkhorfire, on 23 June 2011 - 11:48 PM, said:

View Postboogerlad, on 23 June 2011 - 04:53 PM, said:

I keep getting access denied for the last part with the batch removal. Has anyone been successful in executing it?

So, does access denied cause the selected files unable to be selected? If so, this is how I solved it. For me, this occurs if I use WAIK for Windows 7. If I use WAIK for Windows Vista, there will not be any access denied and all selected files are deleted.


Waik doesn't get used at all in the last batch file for removal...

View Postmyselfidem, on 24 June 2011 - 12:54 AM, said:

View Postboogerlad, on 23 June 2011 - 04:53 PM, said:

I keep getting access denied for the last part with the batch removal. Has anyone been successful in executing it? It seems that changing permissions breaks the installation from what I read.

EDIT: Extracting the wim with 7-zip and running the batch file works there... And it seems to install fine. Is that an "okay" alternative?


OK! It seems I've misunderstood your post!? Alternative with 7-zip :ph34r:


haha, don't worry. My english is pretty bad, so I'm sorry for the misunderstandings. If no one else used 7-zip before, how did all you guys get past the "access denied" error? I'm on a clean win 7 sp1 install on virtualbox with uac off.

#73 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,390
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 24 June 2011 - 01:24 AM

Thanks!
Maybe those "workaround" can help you:

http://www.msfn.org/...n/page__st__100 (post # 105)

http://www.msfn.org/...al/page__st__40 (post # 45)

I will make an test and I give you later the result! ;)

*Edit: Have you tried to launch the batch files with right-click and use "Run As Administrator"?

This post has been edited by myselfidem: 24 June 2011 - 04:16 AM


#74 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,390
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 25 June 2011 - 11:42 AM

@boogerlad

After many tests, I find the method unclear!
The layout needs to be updated!

The batch file is only available for en-US version! Some lines inside needs to be changed for localised version (mine is French version)

Some people found a workaround:

http://www.msfn.org/...n/page__st__100

Or using: takeown
http://www.msfn.org/...al/page__st__40 (post # 45)

Sorry, I can't give you more help!

Anyway, I know it's a hard work made by dead0

This post has been edited by myselfidem: 25 June 2011 - 12:00 PM


#75 User is offline   boogerlad 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-October 09

Posted 25 June 2011 - 11:16 PM

Tested both methods, and I get access denied, even in admin mode. Running the batch under the special waik2.0 command line fails too. Tested with 7-zip. It installs, but it fails at "installing drivers" after the first boot.

edit: It seems running the batch file with waik1.1 makes it work, but the reduced file size isn't as much!? Extracting the wim with 7-zip and running the batch resulted in 1gb, but with waik1.1, I get 1.4gb.

This post has been edited by boogerlad: 26 June 2011 - 12:33 AM


#76 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,390
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 26 June 2011 - 12:44 AM

I think I need to make some tests later because I've made some changes on my computer (I given a new computer name and now I can't "takowner ship" and delete files)!
I must reinstall my OS!!!!!
I think the method works if we follow the description on the first page of the topic!

* Of course, for localized Windows 7 version, it's needed to adapt some lines inside the batch files!

This post has been edited by myselfidem: 26 June 2011 - 11:35 AM


#77 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,390
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 27 June 2011 - 07:31 AM

View Postboogerlad, on 25 June 2011 - 11:16 PM, said:

Tested both methods, and I get access denied, even in admin mode. Running the batch under the special waik2.0 command line fails too. Tested with 7-zip. It installs, but it fails at "installing drivers" after the first boot.

edit: It seems running the batch file with waik1.1 makes it work, but the reduced file size isn't as much!? Extracting the wim with 7-zip and running the batch resulted in 1gb, but with waik1.1, I get 1.4gb.


I tested succesfully the method but it was needed to make many changes inside the batch file for my localized Windows 7 SP1 French version x86! :thumbup

On my computer x86 with Windows 7 SP1

1) I installed WAIK 3.0 for Windows 7

2) I used Gimagex.exe to Mount /Unmount the image I want customize (Windows 7 Ultimate)

Set GimageX.exe inside: C:\Program Files\Windows AIK\Tools\x86\gimagex.exe (example for Windows x86)

3) I installed vLite 1.1.6 Final and after vLite 1.2

4) I used the Last Session.ini given by dead0

5) Launching vLite 1.2 and customizing with the Last Session.ini (just changing the OS x86 Ultimate inside the Last Session.ini). Rebuild only one image (Ultimate SP1) = NO ERRORS

6) Uninstall WAIK 3.0 for Windows 7

7) Remove inside the registry: the reg key "wimfltr" from HKLM\system\currentcontrolset\services

8) Restart the computer

9) Install Windows AIK 1.1 for Windows Vista

10) Launch GimageX.exe to Mount the image install.wim inside the folder C:\s2

11) Set and launch the batch file inside the folder C:\s2 (It's not needed to takeowner ship)
Do not close GimageX!

12) After the batch file has been finished:
a - Export the batch file 7x86sp1.bat inside another folder
b - Unmount /Commit with GimageX.exe

NO ERRORS

*The hard work is to adapt the bath file for localized version to remove the files (mine is: fr-fr)

I hope that will, help you!

This post has been edited by myselfidem: 27 June 2011 - 01:04 PM


#78 User is offline   boogerlad 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-October 09

Posted 27 June 2011 - 10:02 AM

Thanks so much! It works for me too ^^
btw, what was your finished iso size?

This post has been edited by boogerlad: 27 June 2011 - 04:17 PM


#79 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,390
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 28 June 2011 - 12:54 AM

View Postboogerlad, on 27 June 2011 - 10:02 AM, said:

Thanks so much! It works for me too ^^
btw, what was your finished iso size?

Before to create the iso file, you can shrink a little the install.wim image with GimageX.exe.

Using: Tab Export | Select the image | Compression: Maximum | Name: Windows 7 ULTIMATE (my example) | select the boxe : Check
And Apply with the Export buton

Save the new image install.wim with the same name inside C:\s2 (For example)

Replace the install.wim image inside your source folder (sources) with the new one made inside: C:\s2

*Edit: After testing the iso, I have an error: Driver CD\DVD missing and the installation fails :wacko:

Maybe I must use the dism7x86.bat before!!!

I must check where I've made an error !!

This post has been edited by myselfidem: 28 June 2011 - 03:10 AM


#80 User is offline   boogerlad 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 18-October 09

Posted 28 June 2011 - 10:55 AM

I got my x86 and x64 isos working, with the x86 iso at 620mb and the x64 iso at 1gb. I used gimagex to recompress the install.wim and the boot.wim. The driver cd/dvd missing is because you have the wrong setup.exe. You need the 260kb one in your sources folder.

Share this topic:


  • 7 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • 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 - 2013 msfn.org
Privacy Policy