anchor.diff:  :# In verbose mode, remove the dism /Quiet option
   %IF_VERBOSE% set "DISMOPT=%DISMOPT: /Quiet=%"
   %ECHO% Unmounting image from %MNTPT%
  -%EXEC% dism%DISMOPT% /Unmount-Wim /MountDir:"%MNTPT%" /%COMMIT%
  -
  +%EXEC% dism%DISMOPT% /Unmount-Wim /MountDir:"%MNTPT%" %/COMMIT%
  +
  
positive.code: goto :eof
  
  :main
  set "COMMIT="
  set "MNTPT="
  set "DISMOPT= /Quiet"
  
  
negative.code: )
  
  :# Default changes saving: Based on the image mount mode (RO or RW)
  if .%/COMMIT%.==.. (
    for /l %%n in (0,1,%LAST_MWI%) do (
      set N=%%n
      call set DIR=%%MWI!N!.DIR%%
      call set MODE=%%MWI!N!.MODE%%
      if "!DIR!"=="%MNTPT%" (
        if "!MODE!"=="RW" (
        	set "/COMMIT=/commit"
        ) else (
        	set "/COMMIT=/discard"
        )
      )
      %ECHOVARS.D% N DIR MODE COMMIT
  