[Solved] Make Vista Serviceable able to remove package or add ? offline

Discussion in 'Windows Vista' started by LiteOS, Apr 23, 2024.

  1. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,228
    989
    90
    #1 LiteOS, Apr 23, 2024
    Last edited: Apr 29, 2024
    is there a way to Make Vista Serviceable able to remove package or add ?

    install dism.exe into it

    dism from 8 or 8.1 give those functions which is not bad
    wish was more :)

    Code:
    N:\sources>dism /image:p:\ /?
    
    Deployment Image Servicing and Management tool
    Version: 6.3.9600.16384
    
    
    The following commands may be used to service the specified image.
    
      /Add-Package            - Adds packages to the image.
      /Remove-Package         - Removes packages from the image.
      /Enable-Feature         - Enables a specific feature in the image.
      /Disable-Feature        - Disables a specific feature in the image.
      /Apply-Unattend         - Applies an unattend file to an image.
    
    For more information about these servicing commands and their arguments,
    specify a command immediately before /?.
    
      Examples:
        DISM.exe /Image:C:\test\offline /Apply-Unattend /?
        DISM.exe /Image:C:\test\offline /Add-Package /?
     
  2. George King

    George King MDL Expert

    Aug 5, 2009
    1,876
    2,234
    60
    If you ask for dism, then no.

    If you use pkgmgr, then Yes.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,228
    989
    90
    weird tool dont like it
    :3eyes:
     
  4. George King

    George King MDL Expert

    Aug 5, 2009
    1,876
    2,234
    60
    Nothing weird, normal documented commandline tool
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,837
    2,744
    120
    Dism for vista exist but is good to service newer OSes, deploy images and so on, not Vista itself.
     
  6. George King

    George King MDL Expert

    Aug 5, 2009
    1,876
    2,234
    60
    Well, DISM from Windows 8.0 is last compatible one that runs under Vista, but DISM simply call PKGMGR nothing more.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. ohault

    ohault MDL Member

    Dec 27, 2022
    165
    46
    10
    Over years, DISM has incubated several distinct project/tools, thanks to its provider architecture.

    It would be worth to drill down and document this architecture and each DISM providers.

    Older versions of Windows lack some supporting APIs (CBS, …) but the outgoing effort of the One-Core-Api project should bring that support progressively to avoid specific backporting needs
     
  8. example12345678912345678

    Dec 29, 2019
    502
    241
    30
    You can use DISM for offline Vista images as long as the image is at least Service Pack 1.
    However DISM will redirect to pkgmgr.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,228
    989
    90
    Vista sp2 when trying to service with dism

    saying dism is not supported
     
  10. example12345678912345678

    Dec 29, 2019
    502
    241
    30
    Can you append /logpath:.\logfile.log to the command line and share the log file?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,228
    989
    90
    Code:
    2024-04-29 21:11:58, Info                  DISM   PID=13724 TID=7048 Scratch directory set to 'C:\Users\ADMINI~1\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
    2024-04-29 21:11:58, Info                  DISM   PID=13724 TID=7048 DismCore.dll version: 10.0.26040.1000 - CDISMManager::FinalConstruct
    2024-04-29 21:11:58, Info                  DISM   Initialized Panther logging at C:\windows\Logs\DISM\dism.log
    2024-04-29 21:11:58, Info                  DISM   PID=13724 TID=7048 Successfully loaded the ImageSession at "C:\windows\system32\Dism" - CDISMManager::LoadLocalImageSession
    2024-04-29 21:11:58, Info                  DISM   Initialized Panther logging at C:\windows\Logs\DISM\dism.log
    2024-04-29 21:11:58, Info                  DISM   DISM Provider Store: PID=13724 TID=7048 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2024-04-29 21:11:58, Info                  DISM   Initialized Panther logging at C:\windows\Logs\DISM\dism.log
    2024-04-29 21:11:58, Info                  DISM   DISM Manager: PID=13724 TID=7048 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE:
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE:
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE: Host machine information: OS Version=10.0.26040, Running architecture=amd64, Number of processors=20
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE: Instance information: Parent process=C:\Windows\System32\cmd.exe, Parent process PID=3180
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE: Dism.exe version: 10.0.26040.1000
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE: Executing command line: dism  /image:P:\ /?
    2024-04-29 21:11:58, Info                  DISM   DISM FFU Provider: PID=13724 TID=7048 [P:\] is not recognized by the DISM FFU provider. - CFfuImage::Initialize
    2024-04-29 21:11:58, Info                  DISM   DISM Imaging Provider: PID=13724 TID=7048 The provider FfuManager does not support CreateDismImage on P:\ - CGenericImagingManager::CreateDismImage
    2024-04-29 21:11:58, Info                  DISM   DISM VHD Provider: PID=13724 TID=7048 [P:\] is not recognized by the DISM VHD provider. - CVhdImage::Initialize
    2024-04-29 21:11:58, Info                  DISM   DISM Imaging Provider: PID=13724 TID=7048 The provider VHDManager does not support CreateDismImage on P:\ - CGenericImagingManager::CreateDismImage
    [13724.7048] [0x80070002] FIOReadFileIntoBuffer:(1454): The system cannot find the file specified.
    [13724.7048] [0xc142011c] UnmarshallImageHandleFromDirectory:(641)
    [13724.7048] [0xc142011c] WIMGetMountedImageHandle:(2910)
    2024-04-29 21:11:58, Info                  DISM   DISM WIM Provider: PID=13724 TID=7048 [P:\] is not a WIM mount point. - CWimMountedImageInfo::Initialize
    2024-04-29 21:11:58, Info                  DISM   DISM Imaging Provider: PID=13724 TID=7048 The provider WimManager does not support CreateDismImage on P:\ - CGenericImagingManager::CreateDismImage
    2024-04-29 21:11:58, Info                  DISM   DISM Imaging Provider: PID=13724 TID=7048 No imaging provider supported CreateDismImage for this path - CGenericImagingManager::CreateDismImage
    [13724.7048] [0x80070002] FIOReadFileIntoBuffer:(1454): The system cannot find the file specified.
    [13724.7048] [0xc142011c] UnmarshallImageHandleFromDirectory:(641)
    [13724.7048] [0xc142011c] WIMGetMountedImageHandle:(2910)
    2024-04-29 21:11:58, Info                  DISM   DISM WIM Provider: PID=13724 TID=7048 [P:\] is not a WIM mount point. - CWimMountedImageInfo::Initialize
    2024-04-29 21:11:58, Info                  DISM   DISM FFU Provider: PID=13724 TID=7048 [P:\] is not recognized by the DISM FFU provider. - CFfuImage::Initialize
    2024-04-29 21:11:58, Info                  DISM   DISM VHD Provider: PID=13724 TID=7048 [P:\] is not recognized by the DISM VHD provider. - CVhdImage::Initialize
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE:
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2024-04-29 21:11:58, Info                  DISM   DISM.EXE:
    

    P:\>dism /image:p:\ /?

    Deployment Image Servicing and Management tool
    Version: 10.0.26040.1000


    Error: 50

    DISM does not support servicing a Windows Vista RTM or earlier operating system.
    If the operating system is supported check that SSShim.DLL is present.

    The DISM log file can be found at C:\windows\Logs\DISM\dism.log


    ISO:

    en_windows_web_server_2008_sp2_with_x64_dvd_342342-011
     
  12. George King

    George King MDL Expert

    Aug 5, 2009
    1,876
    2,234
    60
    Use DISM from Windows 8.0…
    Code:
    https://forums.mydigitallife.net/threads/make-vista-serviceable-able-to-remove-package-or-add-offline.88273/#post-1833442
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,228
    989
    90
    N:\sources>dism /image:p:\ /remove-package /packagename:Microsoft-Windows-RemoteAssistance-Package-Server~31bf3856ad364e35~amd64~~6.0.6001.18000

    Deployment Image Servicing and Management tool
    Version: 6.2.9200.16384

    The operation completed successfully.