DrEmpiricism / Optimize-Offline

Optimize-Offline is a Windows 10 offline image optimization framework.
MIT License
709 stars 64 forks source link

Setup files #199

Open iljakorolev opened 3 years ago

iljakorolev commented 3 years ago

I have set in config,json "Setup": true,

But after I mount the ISO i don't see any setup.exe there?! I'm want to upgrade Win 10 Enterprise N 1909 to 2004. Is there gonna be issues btw if I upgrade debloated windows over ordinary one?

Also got this error: Index : 0 Exception : You cannot call a method on a null-valued expression. Category : InvalidOperation: (:) [], RuntimeException ErrorID : InvokeMethodOnNull Target : Command : If ($DaRT.Contains('Recovery') -or ($Additional.Drivers -and (Get-ChildItem -Path $OptimizeOffline.RecoveryDrivers -Include *.inf -Recurse -Force))) Script : F:\MyShare\OTHER\Software\WINDOWS\Optimize-Offline-4.0.1.6\Optimize-Offline.psm1 Line : 354 Column : 8

Is it crucial?

config & whitelist below:

{
  "_Info": [
    "This is a JSON based Configuration file for Optimize-Offline.",
    "Ensure proper formatting is used when editing the JSON parameter values.",
    "Boolean parameter values use true and false. String parameter values must be enclosed in double-quotes."
  ],
  "SourcePath": "F:\\MyShare\\OTHER\\Software\\WINDOWS\\ISO\\en-gb_win_10_bus_edition_2004_x64.iso",
  "WindowsApps": "Whitelist",
  "SystemApps": false,
  "Capabilities": false,
  "Packages": false,
  "Features": false,
  "DeveloperMode": false,
  "WindowsStore": false,
  "MicrosoftEdge": false,
  "Win32Calc": false,
  "Dedup": true,
  "DaRT": [
    "Setup",
    "Recovery"
  ],
  "Registry": true,
  "Additional": {
    "Setup": true,
    "Wallpaper": false,
    "SystemLogo": false,
    "LockScreen": false,
    "RegistryTemplates": false,
    "LayoutModification": false,
    "Unattend": false,
    "Drivers": false,
    "NetFx3": true
  },
  "ISO": "No-Prompt"
}
{
  "DisplayName": [
    "Microsoft.DesktopAppInstaller",
    "Microsoft.StorePurchaseApp",
    "Microsoft.VCLibs.140.00",
    "Microsoft.VP9VideoExtensions",
    "Microsoft.Windows.Photos",
    "Microsoft.WindowsStore",
    "Microsoft.XboxIdentityProvider",
    "Microsoft.WindowsCamera",
    "Microsoft.WindowsCalculator",
    "Microsoft.HEIFImageExtension"
  ]
}
DrEmpiricism commented 3 years ago

For your first question - Optimize-Offline optimizes the media file structure of the ISO and the setup.exe is moved to the sources directory. This removes the ability to manually update your current running OS with an image optimized with Optimize-Offline. The reason for this is because the depth at which Optimize-Offline optimizes an image - like many optimization tools - would not be compatible with an in-place upgrade and would restore System and Windows apps that were removed.

It is not recommended to use an image optimized with Optimize-Offline if you intend to do an in-place upgrade.