1.    08 Oct 2015 #1
    Join Date : Aug 2015
    Posts : 14
    W10 Pro 64 bit b15063

    You can delete the app from ISO?


    Good evening

    I wonder if you can delete apps from ISO
    Thank you
      My ComputerSystem Spec
  2.    08 Oct 2015 #2
    Join Date : Aug 2015
    Posts : 610
    W10

    Do you mean, if you can modify the disc image, which Microsoft provides for the users to install Windows with?
      My ComputerSystem Spec
  3.    08 Oct 2015 #3
    Join Date : Aug 2015
    Posts : 14
    W10 Pro 64 bit b15063
    Thread Starter

    I confirm.
    I want to remove some apps from 'ISO.
      My ComputerSystem Spec
  4.    08 Oct 2015 #4
    Join Date : Aug 2015
    Posts : 610
    W10

    It might be possible to modify the image. However, I don't know of a way to change the image. In order to modify a Windows installation, people usually use the sysprep tool:
    https://support.microsoft.com/en-us/kb/302577
      My ComputerSystem Spec
  5.    18 Oct 2015 #5
    Join Date : Aug 2015
    Posts : 14
    W10 Pro 64 bit b15063
    Thread Starter

    Good morning

    I want to create an ISO of W10 removing apps that are unnecessary.
    For example if I want to delete Get Office just run a powershell command like this:
    powershell "Get-AppxPackage -allusers *officehub* | Remove-AppxPackage" > NUL 2>&1

    This command then I insert it in a batch file
    Code:
    @echo off
    
    powershell "Get-AppxPackage -allusers *officehub* | Remove-AppxPackage" > NUL 2>&1
    exit
    This command then I insert it into a batch file (Delete_GetOffice.bat)
    This file is placed in the "Software" folder in the root of the ISO of Windows 10


    Then I created the file Setupcomplete.cmd


    Code:
    @echo off
    
    for %%w IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%w:\sources\install.wim SET CDROM=%%w:
    
    REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
    
    REG ADD %KEY% /v Flags /t REG_DWORD /d "20" /f
    
    REG ADD %KEY% /V Title /D "Post Installation..." /f  >NUL
    
    REG ADD %KEY%\01 /VE /D "Delete_GetOffice" /f  >NUL
    REG ADD %KEY%\01 /V 1 /D "%CDROM%\Software\Delete_GetOffice.bat" /f  >NUL
    
    exit

    and inserted in ISO of Windows 10







    During the nstallation RunOnce runs normally and Powershell command brings up a notice of elimination the App.
    But when I open the start menu appears GetOffice yet.
    To be sure that the command is correct, you copy the batch file on the desktop and launch the app GetOffice is eliminated normally.
    I do not understand why so run Once the app is not deleted, mistake in the procedure?


    Thank you
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Solved delete old pc connections
like the title says, over the years i have connected computers to my network, and after os updates have stayed in my network like a sore thumb. How do i get rid of them? screenshot below for better understanding. the ones in yellow are not active...
Network and Sharing
Can i Delete this Folders?
Can i Delete Folder $Windows.~BT and $Windows.~WS on C: Drive?
General Support
Solved Delete Windows.old ?
I totally feel like I want to delete it, and I'll probably delete it regardless of what you guys say, but I still want to ask. Is there a reason why I should not want to delete it ? Screenshot by Lightshot
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 20:00.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums