Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate DISM path exception (Part 2) #121

Closed
AnubyteCode opened this issue May 4, 2024 · 5 comments
Closed

Alternate DISM path exception (Part 2) #121

AnubyteCode opened this issue May 4, 2024 · 5 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@AnubyteCode
Copy link

What is the bug about?
Custom DISM version files exception

How does it happen?
Looks like there is more to the matter than where the dism.exe and and dismapi.dll files are.
Other files are causing errors, too.

Additional context
It accepts some of the .sys and .dll files in DT\DISM\DISM: UnionFS.dll and UnionFSApi.dll, just not UnionFS.hiv.
Oddly enough it also accepts dism.exe and dismapi.dll in DT\DISM\DISM.
A blocked .exe, esddecrypt, is not an official Microsoft DISM .exe.
Meanwhile, another unofficial .exe, PSFExtractor.exe, is accepted as a component.
Any blocked file is handled fine if placed in the directory of dism.exe and dismapi.dll, DT\DISM.

Blocked files:
`Mode LastWriteTime Length Name


-a--- 4/1/2024 8:41 PM 27404 Dism.Format.ps1xml
-a--- 4/1/2024 8:41 PM 3318 Dism.psd1
-a--- 4/1/2024 8:41 PM 15380 Dism.psm1
-a--- 4/1/2024 8:41 PM 20378 Dism.Types.ps1xml
-a--- 4/1/2024 8:43 PM 1720320 efisys_noprompt.bin
-a--- 4/1/2024 8:43 PM 1720320 efisys.bin
-a--- 4/30/2024 7:39 AM 66560 esddecrypt.exe
-a--- 4/1/2024 8:41 PM 4096 etfsboot.com
-a--- 4/1/2024 8:41 PM 8192 UnionFS.hiv
-a--- 4/1/2024 1:22 AM 2428 WimBootCompress.ini
-a--- 4/1/2024 8:41 PM 8192 wimmount.hiv
-a--- 4/1/2024 8:41 PM 8192 WofAdk.hiv`

Accepted files, all list as components (other than the folders):
`Mode LastWriteTime Length Name


d---- 5/4/2024 1:36 AM en
d---- 5/4/2024 1:36 AM en-us
-a--- 4/1/2024 1:22 AM 406944 AppxAllUserStore.dll
-a--- 4/1/2024 1:22 AM 701856 AppxProvider.dll
-a--- 4/1/2024 1:22 AM 144696 AssocProvider.dll
-a--- 4/1/2024 1:22 AM 386352 CbmrProvider.dll
-a--- 4/1/2024 1:22 AM 1283376 CbsProvider.dll
-a--- 4/1/2024 8:41 PM 320832 cimfs.dll
-a--- 4/1/2024 8:41 PM 279872 cimfs.sys
-a--- 4/1/2024 8:41 PM 329272 Dism.exe
-a--- 4/1/2024 8:41 PM 1201720 DismApi.dll
-a--- 4/1/2024 1:22 AM 476464 DismCore.dll
-a--- 4/1/2024 1:22 AM 230704 DismCorePS.dll
-a--- 4/1/2024 1:22 AM 173376 DismHost.exe
-a--- 4/1/2024 1:22 AM 300352 DismProv.dll
-a--- 4/1/2024 1:22 AM 435504 DmiProvider.dll
-a--- 3/31/2009 10:29 AM 15360 dvdburn.exe
-a--- 4/1/2024 1:22 AM 226608 EdgeProvider.dll
-a--- 4/1/2024 8:40 PM 943104 esdtoolcore.exe
-a--- 4/1/2024 1:22 AM 701872 FfuProvider.dll
-a--- 4/1/2024 1:22 AM 95552 FolderProvider.dll
-a--- 4/1/2024 1:22 AM 185664 GenericProvider.dll
-a--- 4/1/2024 1:22 AM 91456 IBSProvider.dll
-a--- 4/1/2024 8:41 PM 931256 imagex.exe
-a--- 4/1/2024 1:22 AM 247104 ImagingProvider.dll
-a--- 4/1/2024 1:22 AM 333120 IntlProvider.dll
-a--- 4/1/2024 1:22 AM 120240 LogProvider.dll
-a--- 4/1/2024 1:22 AM 146944 Microsoft.Dism.PowerShell.dll
-a--- 4/1/2024 1:22 AM 226624 MsiProvider.dll
-a--- 4/1/2024 1:22 AM 230704 OfflineSetupProvider.dll
-a--- 4/1/2024 8:41 PM 153128 oscdimg.exe
-a--- 4/1/2024 1:22 AM 185648 OSProvider.dll
-a--- 4/1/2024 8:41 PM 308664 PkgMgr.exe
-a--- 4/1/2024 1:22 AM 873792 ProvProvider.dll
-a--- 4/30/2024 7:42 AM 12800 PSFEx.exe
-a--- 4/1/2024 1:22 AM 198064 SetupPlatformProvider.dll
-a--- 4/1/2024 8:41 PM 140856 siloedpackageprovider.dll
-a--- 4/1/2024 1:22 AM 349504 SmiProvider.dll
-a--- 4/1/2024 8:41 PM 165416 SSShim.dll
-a--- 4/1/2024 1:22 AM 808240 SysprepProvider.dll
-a--- 4/1/2024 1:22 AM 1500464 TransmogProvider.dll
-a--- 4/1/2024 1:22 AM 826792 ucrtbase_clr0400.dll
-a--- 4/1/2024 1:22 AM 641968 ucrtbase_enclave.dll
-a--- 4/1/2024 1:22 AM 1369088 ucrtbase.dll
-a--- 4/1/2024 1:22 AM 292160 UnattendProvider.dll
-a--- 4/1/2024 8:41 PM 492864 UnionFS.sys
-a--- 4/1/2024 8:41 PM 263488 UnionFSApi.dll
-a--- 4/1/2024 1:22 AM 599360 VhdProvider.dll
-a--- 4/1/2024 1:22 AM 283952 wdscore.dll
-a--- 4/1/2024 8:41 PM 910888 wimgapi.dll
-a--- 4/1/2024 8:41 PM 75056 wimmount.sys
-a--- 4/1/2024 8:41 PM 95552 WimMountAdkSetupAmd64.exe
-a--- 4/1/2024 1:22 AM 697648 WimProvider.dll
-a--- 4/1/2024 8:41 PM 648632 wimserv.exe
-a--- 4/1/2024 8:41 PM 271776 wofadk.sys`

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at DISMTools.DismComponents.DismComponents_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Error Message: Object reference not set to an instance of an object.
Error Code (HRESULT): -2147467261

@AnubyteCode AnubyteCode added bug Something isn't working good first issue Good for newcomers labels May 4, 2024
CodingWonders added a commit that referenced this issue May 4, 2024
@CodingWonders
Copy link
Owner

CodingWonders commented May 4, 2024

This is because it does simple file iteration. I've added a try-catch block that should appear in the latest nightly installer. Please let me know of any other issues you may encounter here.

@CodingWonders
Copy link
Owner

@AnubyteCode, by file iteration I mean that the program simply goes through all files in the DISM components directory. This is normal for the system DISM executable, but can get additional files if the DISM path is something different

@CodingWonders CodingWonders changed the title Alternate DISM path exception v2.0 Alternate DISM path exception (Part 2) May 4, 2024
@AnubyteCode
Copy link
Author

Thanks, will do. I'm a bit new to this world but it's a good time to start. I'll try not to clutter with noobing.

By the way, I'm the guy who talked about the S added. I know I said I had nothing to do now, but then I thought about it, and figured I wanted to help. Probably won't do be able to do anything fancy for now, but I'll bug report and suggest QoL features.

@CodingWonders
Copy link
Owner

@AnubyteCode, I remember that. I still think it is a coincidence! But anyway, feel free to report any feedback. It is very appreciated. Plus, you will appear in the release notes of a new version!

@CodingWonders
Copy link
Owner

I'm closing this issue, as you should no longer face any exceptions regarding the DISM components dialog. Feel free to create a new one if you experience more problems

CodingWonders added a commit that referenced this issue May 11, 2024
* Update assembly information

* DISMTools Nightly Installer

* DISMTools PE Helper improvements (2024/04/28) (#118)

* DISMTools Nightly Installer

* Add help contents to PE Helper

* DISMTools Nightly Installer

* Added support for multi-boot scenarios

* Fixed anchor issues

* DISMTools Nightly Installer

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* DISMTools Nightly Installer

* Fixed some issues in the OS installer

* DISMTools Nightly Installer

* Fixed directory creation issues for log paths

* Improve deployments on clean drives and add new options

* DISMTools Nightly Installer

* Added script documentation

* DISMTools Nightly Installer

* Update program resource and fixed issue in the Initial Setup wizard

* DISMTools Nightly Installer

* Added warnings to prevent issue #119

* DISMTools Nightly Installer

* Don't run serviceability tests if architectures don't match

* DISMTools Nightly Installer

* Show image architecture

* DISMTools Nightly Installer

* Added ability to view driver signer

* DISMTools Nightly Installer

* Add exception handling to fix #121

* DISMTools Nightly Installer

* Update README.md

Update Softpedia verification date

* DISMTools Nightly Installer

* Added SourceForge as download option

* DISMTools Nightly Installer

* Update initial setup wizard resources (pt. 2)

* DISMTools Nightly Installer

* Add ability to create ISO files from mounted image manager

* DISMTools Nightly Installer

* New path for nightly installers

* DISMTools Nightly Installer

* Update .gitignore

* Update workflow

* DISMTools Nightly Installer

* Save internal error logs to disk

* DISMTools Nightly Installer

* Update list automatically every minute

* DISMTools Nightly Installer

* Updated Scintilla.NET component (#122)

* DISMTools Nightly Installer

* Updated Scintilla.NET version

* DISMTools Nightly Installer

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* DISMTools Nightly Installer

* Deleted unused project

* DISMTools Nightly Installer

* Update workflow

* DISMTools Nightly Installer

* Update What's New section, and Update System information files

* DISMTools Nightly Installer

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>
CodingWonders added a commit that referenced this issue May 18, 2024
CodingWonders added a commit that referenced this issue May 25, 2024
* Update assembly information

* Fixed directory creation issues for log paths

* Added warnings to prevent issue #119

* Add exception handling to fix #121

* Added ability to view driver signer

* Save internal error logs to disk

* Update list automatically every minute

* Fixed issue in the Initial Setup wizard

* Updated Scintilla.NET component (#122)

* DISMTools Nightly Installer

* Updated Scintilla.NET version

* DISMTools Nightly Installer

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* Fixed update pipelines for new versions

* Deleted unused project

* Hide splash screen on Windows 7/Server 2008 R2

* Fixed similar splash screen issue

* Get signer information when saving installed driver info to file

* Update Scintilla.NET to 5.5.1

* Update What's New section and new Update System information files

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>
CodingWonders added a commit that referenced this issue May 25, 2024
* DISMTools 0.4.2 Update 1 (March 2024 Update) (#109)

* Update assembly information

* Fixed splash screen opacity issues

* Fixed exception

* Select the file we want to point to in File Explorer

* Add possible fix to freezing issue

* Don't show update recommendation on nightly versions of DT

* Add better exception handling

* Add basic computer information to error in case of an internal error

* Show more information when downloading from App Installer packages

* Added image export capabilities, and fixed some coloring and progress panel disposal issues

* Fixed exception

* Access background processes panel with a keyboard shortcut

* Begin experimental video playback implementation

* Add video playback support for tutorial videos

* Tutorial Video update - 2024/03/24

* Enhanced video player

* Add manual configurator for IE browser emulation

* Finish tutorial video panel design

* Make use of video feed from dedicated repo

* Added error handling to video functions

* Prepare backport

Fixed stupid Git merge conflict things, and some unwanted changes

* Update What's New section, and new Update System information files

* DISMTools 0.4.2 Update 2 (April 2024 Update) (#116)

* Update assembly information

* Close popup Mounted Image Manager with key press

* Change default log view font to Consolas

* Set default font to Consolas in the installer

* Fixed CSS layout issues

* Show file copy error information

* Detect if language is supported

* Enhanced automatic image reload feature

* Only show reload window when necessary

* Detect custom themes

* Added installer generation automation (#113)

* Test automation

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* DISMTools Nightly Installer

* Update .gitignore

* DISMTools Nightly Installer

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* Added release update branches to action

* Update What's New section and Update System information files

* Delete temporary installer files

* Add workaround for #114

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* DISMTools Nightly Installer

* Update create-nightly-installer.yaml

Don't generate nightly installers in stable branch

* DISMTools Nightly Installer

* DISMTools Nightly Installer

* Ignore files generated by JetBrains IDEs

* DISMTools Nightly Installer

* Update workflow

* New path for nightly installers

* DISMTools Nightly Installer

* DISMTools 0.4.2 Update 3 (#127)

* Update assembly information

* Fixed directory creation issues for log paths

* Added warnings to prevent issue #119

* Add exception handling to fix #121

* Added ability to view driver signer

* Save internal error logs to disk

* Update list automatically every minute

* Fixed issue in the Initial Setup wizard

* Updated Scintilla.NET component (#122)

* DISMTools Nightly Installer

* Updated Scintilla.NET version

* DISMTools Nightly Installer

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* Fixed update pipelines for new versions

* Deleted unused project

* Hide splash screen on Windows 7/Server 2008 R2

* Fixed similar splash screen issue

* Get signer information when saving installed driver info to file

* Update Scintilla.NET to 5.5.1

* Update What's New section and new Update System information files

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* DISMTools Nightly Installer

* DISMTools Nightly Installer

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>
CodingWonders added a commit that referenced this issue Jun 2, 2024
* DISMTools 0.4.2 Update 1 (March 2024 Update) (#109)

* Update assembly information

* Fixed splash screen opacity issues

* Fixed exception

* Select the file we want to point to in File Explorer

* Add possible fix to freezing issue

* Don't show update recommendation on nightly versions of DT

* Add better exception handling

* Add basic computer information to error in case of an internal error

* Show more information when downloading from App Installer packages

* Added image export capabilities, and fixed some coloring and progress panel disposal issues

* Fixed exception

* Access background processes panel with a keyboard shortcut

* Begin experimental video playback implementation

* Add video playback support for tutorial videos

* Tutorial Video update - 2024/03/24

* Enhanced video player

* Add manual configurator for IE browser emulation

* Finish tutorial video panel design

* Make use of video feed from dedicated repo

* Added error handling to video functions

* Prepare backport

Fixed stupid Git merge conflict things, and some unwanted changes

* Update What's New section, and new Update System information files

* DISMTools 0.4.2 Update 2 (April 2024 Update) (#116)

* Update assembly information

* Close popup Mounted Image Manager with key press

* Change default log view font to Consolas

* Set default font to Consolas in the installer

* Fixed CSS layout issues

* Show file copy error information

* Detect if language is supported

* Enhanced automatic image reload feature

* Only show reload window when necessary

* Detect custom themes

* Added installer generation automation (#113)

* Test automation

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* Update create-nightly-installer.yaml

* DISMTools Nightly Installer

* Update .gitignore

* DISMTools Nightly Installer

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* Added release update branches to action

* Update What's New section and Update System information files

* Delete temporary installer files

* Add workaround for #114

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* DISMTools Nightly Installer

* Update create-nightly-installer.yaml

Don't generate nightly installers in stable branch

* DISMTools Nightly Installer

* DISMTools Nightly Installer

* Ignore files generated by JetBrains IDEs

* DISMTools Nightly Installer

* Update workflow

* New path for nightly installers

* DISMTools Nightly Installer

* DISMTools 0.4.2 Update 3 (#127)

* Update assembly information

* Fixed directory creation issues for log paths

* Added warnings to prevent issue #119

* Add exception handling to fix #121

* Added ability to view driver signer

* Save internal error logs to disk

* Update list automatically every minute

* Fixed issue in the Initial Setup wizard

* Updated Scintilla.NET component (#122)

* DISMTools Nightly Installer

* Updated Scintilla.NET version

* DISMTools Nightly Installer

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* Fixed update pipelines for new versions

* Deleted unused project

* Hide splash screen on Windows 7/Server 2008 R2

* Fixed similar splash screen issue

* Get signer information when saving installed driver info to file

* Update Scintilla.NET to 5.5.1

* Update What's New section and new Update System information files

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>

* DISMTools Nightly Installer

* DISMTools Nightly Installer

* DISMTools 0.4.2 Fixes (2024/06/02) (#129)

* Fix image path issue for DISM commands

* Show download error and save using correct extension

* Improve reliability of App Installer package addition

* Don't show human-readable size representation if bytes < 1024

* Update assembly information

* Update What's New section and new Update System info files

* DISMTools Nightly Installer

* DISMTools Nightly Installer

---------

Co-authored-by: CodingWonders <CodingWonders@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants