├── .github
└── workflows
│ └── DT-Build.yaml
├── .gitignore
├── DISMTools-Install.ps1
├── LICENSE
├── README.md
├── WIMExplorer.sln
├── WIMExplorer
├── AboutForm.Designer.cs
├── AboutForm.cs
├── AboutForm.resx
├── App.config
├── Form1.Designer.cs
├── Form1.cs
├── Form1.resx
├── Icons
│ ├── file.png
│ └── folder.png
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Resources
│ ├── icon.png
│ └── toolbars
│ │ ├── back_btn.png
│ │ ├── back_btn_dark.png
│ │ ├── go_btn.png
│ │ ├── go_btn_dark.png
│ │ ├── next_btn.png
│ │ ├── next_btn_dark.png
│ │ ├── up_btn.png
│ │ └── up_btn_dark.png
├── WIMExplorer.csproj
├── app.manifest
└── packages.config
├── build
└── Build.zip
└── res
└── product.png
/.github/workflows/DT-Build.yaml:
--------------------------------------------------------------------------------
1 | name: Release for DISMTools
2 |
3 | on:
4 | schedule:
5 | - cron: '0 18 * * *'
6 | push:
7 | branches:
8 | - main
9 | paths-ignore:
10 | - '.github/**'
11 | - 'README.md'
12 | - 'res/**'
13 | workflow_dispatch:
14 | env:
15 | ACTIONS_ALLOW_UNSECURE_COMMANDS: true
16 |
17 | jobs:
18 | build-runspace:
19 | runs-on: windows-latest
20 | steps:
21 | - uses: actions/checkout@v4
22 | with:
23 | ref: ${{ github.head_ref }}
24 | - name: Set up MSBuild
25 | uses: microsoft/Setup-MSBuild@v2
26 | - name: Prepare NuGet packages
27 | run: nuget restore
28 | - name: Build and Pack
29 | run: |
30 | $solutionDir = "$((Get-Location).Path)\"
31 | msbuild WIMExplorer.sln /p:Configuration=Debug /p:DeployOnBuild=true /p:SolutionDir=$solutionDir
32 | New-Item -Path .\build_temp -ItemType Directory
33 | cd .\WIMExplorer\bin\Debug
34 | Copy-Item -Path .\* -Destination ..\..\..\build_temp -Recurse -Force -Verbose -Exclude @("*.pdb", "*.xml", "*.config")
35 | Compress-Archive -Path .\* -DestinationPath ..\..\..\build\Build.zip -Force
36 | cd ..
37 | Remove-Item -Path ..\..\build_temp\ -Recurse -Force
38 | - name: Push build
39 | uses: stefanzweifel/git-auto-commit-action@v5
40 | with:
41 | commit_message: Windows Image Explorer Build
42 | if: success()
43 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Ww][Ii][Nn]32/
27 | [Aa][Rr][Mm]/
28 | [Aa][Rr][Mm]64/
29 | bld/
30 | [Bb]in/
31 | [Oo]bj/
32 | [Ll]og/
33 | [Ll]ogs/
34 |
35 | # Visual Studio 2015/2017 cache/options directory
36 | .vs/
37 | # Uncomment if you have tasks that create the project's static files in wwwroot
38 | #wwwroot/
39 |
40 | # Visual Studio 2017 auto generated files
41 | Generated\ Files/
42 |
43 | # MSTest test Results
44 | [Tt]est[Rr]esult*/
45 | [Bb]uild[Ll]og.*
46 |
47 | # NUnit
48 | *.VisualState.xml
49 | TestResult.xml
50 | nunit-*.xml
51 |
52 | # Build Results of an ATL Project
53 | [Dd]ebugPS/
54 | [Rr]eleasePS/
55 | dlldata.c
56 |
57 | # Benchmark Results
58 | BenchmarkDotNet.Artifacts/
59 |
60 | # .NET Core
61 | project.lock.json
62 | project.fragment.lock.json
63 | artifacts/
64 |
65 | # ASP.NET Scaffolding
66 | ScaffoldingReadMe.txt
67 |
68 | # StyleCop
69 | StyleCopReport.xml
70 |
71 | # Files built by Visual Studio
72 | *_i.c
73 | *_p.c
74 | *_h.h
75 | *.ilk
76 | *.meta
77 | *.obj
78 | *.iobj
79 | *.pch
80 | *.pdb
81 | *.ipdb
82 | *.pgc
83 | *.pgd
84 | *.rsp
85 | *.sbr
86 | *.tlb
87 | *.tli
88 | *.tlh
89 | *.tmp
90 | *.tmp_proj
91 | *_wpftmp.csproj
92 | *.log
93 | *.tlog
94 | *.vspscc
95 | *.vssscc
96 | .builds
97 | *.pidb
98 | *.svclog
99 | *.scc
100 |
101 | # Chutzpah Test files
102 | _Chutzpah*
103 |
104 | # Visual C++ cache files
105 | ipch/
106 | *.aps
107 | *.ncb
108 | *.opendb
109 | *.opensdf
110 | *.sdf
111 | *.cachefile
112 | *.VC.db
113 | *.VC.VC.opendb
114 |
115 | # Visual Studio profiler
116 | *.psess
117 | *.vsp
118 | *.vspx
119 | *.sap
120 |
121 | # Visual Studio Trace Files
122 | *.e2e
123 |
124 | # TFS 2012 Local Workspace
125 | $tf/
126 |
127 | # Guidance Automation Toolkit
128 | *.gpState
129 |
130 | # ReSharper is a .NET coding add-in
131 | _ReSharper*/
132 | *.[Rr]e[Ss]harper
133 | *.DotSettings.user
134 |
135 | # TeamCity is a build add-in
136 | _TeamCity*
137 |
138 | # DotCover is a Code Coverage Tool
139 | *.dotCover
140 |
141 | # AxoCover is a Code Coverage Tool
142 | .axoCover/*
143 | !.axoCover/settings.json
144 |
145 | # Coverlet is a free, cross platform Code Coverage Tool
146 | coverage*.json
147 | coverage*.xml
148 | coverage*.info
149 |
150 | # Visual Studio code coverage results
151 | *.coverage
152 | *.coveragexml
153 |
154 | # NCrunch
155 | _NCrunch_*
156 | .*crunch*.local.xml
157 | nCrunchTemp_*
158 |
159 | # MightyMoose
160 | *.mm.*
161 | AutoTest.Net/
162 |
163 | # Web workbench (sass)
164 | .sass-cache/
165 |
166 | # Installshield output folder
167 | [Ee]xpress/
168 |
169 | # DocProject is a documentation generator add-in
170 | DocProject/buildhelp/
171 | DocProject/Help/*.HxT
172 | DocProject/Help/*.HxC
173 | DocProject/Help/*.hhc
174 | DocProject/Help/*.hhk
175 | DocProject/Help/*.hhp
176 | DocProject/Help/Html2
177 | DocProject/Help/html
178 |
179 | # Click-Once directory
180 | publish/
181 |
182 | # Publish Web Output
183 | *.[Pp]ublish.xml
184 | *.azurePubxml
185 | # Note: Comment the next line if you want to checkin your web deploy settings,
186 | # but database connection strings (with potential passwords) will be unencrypted
187 | *.pubxml
188 | *.publishproj
189 |
190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
191 | # checkin your Azure Web App publish settings, but sensitive information contained
192 | # in these scripts will be unencrypted
193 | PublishScripts/
194 |
195 | # NuGet Packages
196 | *.nupkg
197 | # NuGet Symbol Packages
198 | *.snupkg
199 | # The packages folder can be ignored because of Package Restore
200 | **/[Pp]ackages/*
201 | # except build/, which is used as an MSBuild target.
202 | !**/[Pp]ackages/build/
203 | # Uncomment if necessary however generally it will be regenerated when needed
204 | #!**/[Pp]ackages/repositories.config
205 | # NuGet v3's project.json files produces more ignorable files
206 | *.nuget.props
207 | *.nuget.targets
208 |
209 | # Microsoft Azure Build Output
210 | csx/
211 | *.build.csdef
212 |
213 | # Microsoft Azure Emulator
214 | ecf/
215 | rcf/
216 |
217 | # Windows Store app package directories and files
218 | AppPackages/
219 | BundleArtifacts/
220 | Package.StoreAssociation.xml
221 | _pkginfo.txt
222 | *.appx
223 | *.appxbundle
224 | *.appxupload
225 |
226 | # Visual Studio cache files
227 | # files ending in .cache can be ignored
228 | *.[Cc]ache
229 | # but keep track of directories ending in .cache
230 | !?*.[Cc]ache/
231 |
232 | # Others
233 | ClientBin/
234 | ~$*
235 | *~
236 | *.dbmdl
237 | *.dbproj.schemaview
238 | *.jfm
239 | *.pfx
240 | *.publishsettings
241 | orleans.codegen.cs
242 |
243 | # Including strong name files can present a security risk
244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
245 | #*.snk
246 |
247 | # Since there are multiple workflows, uncomment next line to ignore bower_components
248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
249 | #bower_components/
250 |
251 | # RIA/Silverlight projects
252 | Generated_Code/
253 |
254 | # Backup & report files from converting an old project file
255 | # to a newer Visual Studio version. Backup files are not needed,
256 | # because we have git ;-)
257 | _UpgradeReport_Files/
258 | Backup*/
259 | UpgradeLog*.XML
260 | UpgradeLog*.htm
261 | ServiceFabricBackup/
262 | *.rptproj.bak
263 |
264 | # SQL Server files
265 | *.mdf
266 | *.ldf
267 | *.ndf
268 |
269 | # Business Intelligence projects
270 | *.rdl.data
271 | *.bim.layout
272 | *.bim_*.settings
273 | *.rptproj.rsuser
274 | *- [Bb]ackup.rdl
275 | *- [Bb]ackup ([0-9]).rdl
276 | *- [Bb]ackup ([0-9][0-9]).rdl
277 |
278 | # Microsoft Fakes
279 | FakesAssemblies/
280 |
281 | # GhostDoc plugin setting file
282 | *.GhostDoc.xml
283 |
284 | # Node.js Tools for Visual Studio
285 | .ntvs_analysis.dat
286 | node_modules/
287 |
288 | # Visual Studio 6 build log
289 | *.plg
290 |
291 | # Visual Studio 6 workspace options file
292 | *.opt
293 |
294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
295 | *.vbw
296 |
297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.)
298 | *.vbp
299 |
300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project)
301 | *.dsw
302 | *.dsp
303 |
304 | # Visual Studio 6 technical files
305 | *.ncb
306 | *.aps
307 |
308 | # Visual Studio LightSwitch build output
309 | **/*.HTMLClient/GeneratedArtifacts
310 | **/*.DesktopClient/GeneratedArtifacts
311 | **/*.DesktopClient/ModelManifest.xml
312 | **/*.Server/GeneratedArtifacts
313 | **/*.Server/ModelManifest.xml
314 | _Pvt_Extensions
315 |
316 | # Paket dependency manager
317 | .paket/paket.exe
318 | paket-files/
319 |
320 | # FAKE - F# Make
321 | .fake/
322 |
323 | # CodeRush personal settings
324 | .cr/personal
325 |
326 | # Python Tools for Visual Studio (PTVS)
327 | __pycache__/
328 | *.pyc
329 |
330 | # Cake - Uncomment if you are using it
331 | # tools/**
332 | # !tools/packages.config
333 |
334 | # Tabs Studio
335 | *.tss
336 |
337 | # Telerik's JustMock configuration file
338 | *.jmconfig
339 |
340 | # BizTalk build output
341 | *.btp.cs
342 | *.btm.cs
343 | *.odx.cs
344 | *.xsd.cs
345 |
346 | # OpenCover UI analysis results
347 | OpenCover/
348 |
349 | # Azure Stream Analytics local run output
350 | ASALocalRun/
351 |
352 | # MSBuild Binary and Structured Log
353 | *.binlog
354 |
355 | # NVidia Nsight GPU debugger configuration file
356 | *.nvuser
357 |
358 | # MFractors (Xamarin productivity tool) working folder
359 | .mfractor/
360 |
361 | # Local History for Visual Studio
362 | .localhistory/
363 |
364 | # Visual Studio History (VSHistory) files
365 | .vshistory/
366 |
367 | # BeatPulse healthcheck temp database
368 | healthchecksdb
369 |
370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
371 | MigrationBackup/
372 |
373 | # Ionide (cross platform F# VS Code tools) working folder
374 | .ionide/
375 |
376 | # Fody - auto-generated XML schema
377 | FodyWeavers.xsd
378 |
379 | # VS Code files for those working on multiple tools
380 | .vscode/*
381 | !.vscode/settings.json
382 | !.vscode/tasks.json
383 | !.vscode/launch.json
384 | !.vscode/extensions.json
385 | *.code-workspace
386 |
387 | # Local History for Visual Studio Code
388 | .history/
389 |
390 | # Windows Installer files from build outputs
391 | *.cab
392 | *.msi
393 | *.msix
394 | *.msm
395 | *.msp
396 |
397 | # JetBrains Rider
398 | *.sln.iml
399 | /.idea
400 |
--------------------------------------------------------------------------------
/DISMTools-Install.ps1:
--------------------------------------------------------------------------------
1 | # Temporary script that installs WIM explorer to DISMTools copies
2 |
3 | [Net.ServicePointManager]::SecurityProtocol = "Tls12"
4 |
5 | Write-Host "Downloading WIM Explorer..."
6 | New-Item -Path ".\temp" -ItemType Directory -Force | Out-Null
7 | Invoke-WebRequest -Uri "https://github.com/CodingWonders/WIM-Explorer/raw/main/build/Build.zip" -OutFile ".\temp\wimexp.zip"
8 | if (Test-Path ".\temp\wimexp.zip")
9 | {
10 | Write-Host "Installing WIM Explorer..."
11 | Expand-Archive -Path ".\temp\wimexp.zip" -Destination "$((Get-Location).Path)" -Verbose -Force
12 | if ($?)
13 | {
14 | New-Item -Path "$((Get-Location).Path)\DT" -ItemType File -Force | Out-Null
15 | Set-ItemProperty -Path "$((Get-Location).Path)\DT" -Name Attributes -Value Hidden
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Windows Image Explorer
2 | The **Windows Image Explorer** is a simple file browser that lets you browse through the files of Windows images.
3 |
4 | 
5 |
6 | While it is included with DISMTools (after installation with a setup script), you can also use it as a standalone program.
7 |
8 | ## Usage
9 |
10 | 1. Pick the Windows image
11 | 2. (Optional) Pick the index
12 | 3. **Browse!**
13 |
14 | It's that easy.
15 |
16 | ## Compiling
17 |
18 | **Requirements:** Visual Studio 2017 or newer, [.NET Framework 4.8 Developer Pack](https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net48-developer-pack-offline-installer)
19 |
20 | > [!NOTE]
21 | > You might be able to use older versions of Visual Studio, but compatibility varies on whether `RuntimeInformation.ProcessArchitecture` is or isn't ambiguous
22 |
23 | 1. Restore the NuGet packages (either by using the Package Manager, or `nuget restore` from CLI)
24 | 2. Build the project
25 | 3. Enjoy!
26 |
27 | ## Contributing
28 |
29 | You can contribute to this project like this:
30 |
31 | 1. Fork this repository and create your own branch
32 | 2. Make your changes **AND TEST THEM**
33 | 3. Commit them to your fork
34 | 4. Make a pull request
--------------------------------------------------------------------------------
/WIMExplorer.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.34930.48
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WIMExplorer", "WIMExplorer\WIMExplorer.csproj", "{E99B488D-1F1B-41BE-AC45-D29CD033D3D2}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {E99B488D-1F1B-41BE-AC45-D29CD033D3D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {E99B488D-1F1B-41BE-AC45-D29CD033D3D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {E99B488D-1F1B-41BE-AC45-D29CD033D3D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {E99B488D-1F1B-41BE-AC45-D29CD033D3D2}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {74B24778-3869-4CC8-83B9-E998BD35F95A}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/WIMExplorer/AboutForm.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace WIMExplorer
2 | {
3 | partial class AboutForm
4 | {
5 | ///
6 | /// Variable del diseñador necesaria.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Limpiar los recursos que se estén usando.
12 | ///
13 | protected override void Dispose(bool disposing)
14 | {
15 | if (disposing && (components != null))
16 | {
17 | components.Dispose();
18 | }
19 | base.Dispose(disposing);
20 | }
21 |
22 | #region Código generado por el Diseñador de Windows Forms
23 |
24 | ///
25 | /// Método necesario para admitir el Diseñador. No se puede modificar
26 | /// el contenido de este método con el editor de código.
27 | ///
28 | private void InitializeComponent()
29 | {
30 | this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
31 | this.logoPictureBox = new System.Windows.Forms.PictureBox();
32 | this.labelVersion = new System.Windows.Forms.Label();
33 | this.labelCopyright = new System.Windows.Forms.Label();
34 | this.okButton = new System.Windows.Forms.Button();
35 | this.linkLabel1 = new System.Windows.Forms.LinkLabel();
36 | this.labelProductName = new System.Windows.Forms.Label();
37 | this.textBox1 = new System.Windows.Forms.TextBox();
38 | this.tableLayoutPanel.SuspendLayout();
39 | ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
40 | this.SuspendLayout();
41 | //
42 | // tableLayoutPanel
43 | //
44 | this.tableLayoutPanel.ColumnCount = 2;
45 | this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F));
46 | this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 67F));
47 | this.tableLayoutPanel.Controls.Add(this.logoPictureBox, 0, 0);
48 | this.tableLayoutPanel.Controls.Add(this.labelVersion, 1, 1);
49 | this.tableLayoutPanel.Controls.Add(this.labelCopyright, 1, 2);
50 | this.tableLayoutPanel.Controls.Add(this.okButton, 1, 5);
51 | this.tableLayoutPanel.Controls.Add(this.linkLabel1, 1, 3);
52 | this.tableLayoutPanel.Controls.Add(this.labelProductName, 1, 0);
53 | this.tableLayoutPanel.Controls.Add(this.textBox1, 1, 4);
54 | this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
55 | this.tableLayoutPanel.Location = new System.Drawing.Point(10, 10);
56 | this.tableLayoutPanel.Name = "tableLayoutPanel";
57 | this.tableLayoutPanel.RowCount = 6;
58 | this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18.18182F));
59 | this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.090909F));
60 | this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.090909F));
61 | this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.090909F));
62 | this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 45.45454F));
63 | this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.090909F));
64 | this.tableLayoutPanel.Size = new System.Drawing.Size(764, 281);
65 | this.tableLayoutPanel.TabIndex = 0;
66 | //
67 | // logoPictureBox
68 | //
69 | this.logoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill;
70 | this.logoPictureBox.Image = global::WIMExplorer.Properties.Resources.icon;
71 | this.logoPictureBox.Location = new System.Drawing.Point(3, 3);
72 | this.logoPictureBox.Name = "logoPictureBox";
73 | this.tableLayoutPanel.SetRowSpan(this.logoPictureBox, 6);
74 | this.logoPictureBox.Size = new System.Drawing.Size(246, 275);
75 | this.logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
76 | this.logoPictureBox.TabIndex = 12;
77 | this.logoPictureBox.TabStop = false;
78 | //
79 | // labelVersion
80 | //
81 | this.labelVersion.Dock = System.Windows.Forms.DockStyle.Fill;
82 | this.labelVersion.Location = new System.Drawing.Point(259, 51);
83 | this.labelVersion.Margin = new System.Windows.Forms.Padding(7, 0, 3, 0);
84 | this.labelVersion.MaximumSize = new System.Drawing.Size(0, 20);
85 | this.labelVersion.Name = "labelVersion";
86 | this.labelVersion.Size = new System.Drawing.Size(502, 20);
87 | this.labelVersion.TabIndex = 0;
88 | this.labelVersion.Text = "Version:";
89 | this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
90 | //
91 | // labelCopyright
92 | //
93 | this.labelCopyright.Dock = System.Windows.Forms.DockStyle.Fill;
94 | this.labelCopyright.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
95 | this.labelCopyright.Location = new System.Drawing.Point(259, 76);
96 | this.labelCopyright.Margin = new System.Windows.Forms.Padding(7, 0, 3, 0);
97 | this.labelCopyright.MaximumSize = new System.Drawing.Size(0, 20);
98 | this.labelCopyright.Name = "labelCopyright";
99 | this.labelCopyright.Size = new System.Drawing.Size(502, 20);
100 | this.labelCopyright.TabIndex = 21;
101 | this.labelCopyright.Text = "(c) 2024. CodingWonders Software";
102 | this.labelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
103 | //
104 | // okButton
105 | //
106 | this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
107 | this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
108 | this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
109 | this.okButton.Location = new System.Drawing.Point(674, 256);
110 | this.okButton.Name = "okButton";
111 | this.okButton.Size = new System.Drawing.Size(87, 22);
112 | this.okButton.TabIndex = 24;
113 | this.okButton.Text = "OK";
114 | this.okButton.Click += new System.EventHandler(this.okButton_Click);
115 | //
116 | // linkLabel1
117 | //
118 | this.linkLabel1.Dock = System.Windows.Forms.DockStyle.Fill;
119 | this.linkLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
120 | this.linkLabel1.LinkColor = System.Drawing.Color.DodgerBlue;
121 | this.linkLabel1.Location = new System.Drawing.Point(255, 101);
122 | this.linkLabel1.Name = "linkLabel1";
123 | this.linkLabel1.Size = new System.Drawing.Size(506, 25);
124 | this.linkLabel1.TabIndex = 25;
125 | this.linkLabel1.TabStop = true;
126 | this.linkLabel1.Text = "Check out my programs";
127 | this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
128 | //
129 | // labelProductName
130 | //
131 | this.labelProductName.Dock = System.Windows.Forms.DockStyle.Fill;
132 | this.labelProductName.Font = new System.Drawing.Font("Segoe UI", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
133 | this.labelProductName.Location = new System.Drawing.Point(255, 0);
134 | this.labelProductName.Name = "labelProductName";
135 | this.labelProductName.Size = new System.Drawing.Size(506, 51);
136 | this.labelProductName.TabIndex = 26;
137 | this.labelProductName.Text = "Windows Image Explorer";
138 | this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
139 | //
140 | // textBox1
141 | //
142 | this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;
143 | this.textBox1.Location = new System.Drawing.Point(255, 129);
144 | this.textBox1.Multiline = true;
145 | this.textBox1.Name = "textBox1";
146 | this.textBox1.ReadOnly = true;
147 | this.textBox1.Size = new System.Drawing.Size(506, 121);
148 | this.textBox1.TabIndex = 27;
149 | //
150 | // AboutForm
151 | //
152 | this.AcceptButton = this.okButton;
153 | this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
154 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
155 | this.ClientSize = new System.Drawing.Size(784, 301);
156 | this.Controls.Add(this.tableLayoutPanel);
157 | this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
158 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
159 | this.MaximizeBox = false;
160 | this.MinimizeBox = false;
161 | this.Name = "AboutForm";
162 | this.Padding = new System.Windows.Forms.Padding(10);
163 | this.ShowIcon = false;
164 | this.ShowInTaskbar = false;
165 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
166 | this.Text = "About";
167 | this.Load += new System.EventHandler(this.AboutForm_Load);
168 | this.tableLayoutPanel.ResumeLayout(false);
169 | this.tableLayoutPanel.PerformLayout();
170 | ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit();
171 | this.ResumeLayout(false);
172 |
173 | }
174 |
175 | #endregion
176 |
177 | private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
178 | private System.Windows.Forms.PictureBox logoPictureBox;
179 | private System.Windows.Forms.Label labelVersion;
180 | private System.Windows.Forms.Label labelCopyright;
181 | private System.Windows.Forms.Button okButton;
182 | private System.Windows.Forms.LinkLabel linkLabel1;
183 | private System.Windows.Forms.Label labelProductName;
184 | private System.Windows.Forms.TextBox textBox1;
185 | }
186 | }
187 |
--------------------------------------------------------------------------------
/WIMExplorer/AboutForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Linq;
6 | using System.Reflection;
7 | using System.Threading.Tasks;
8 | using System.Windows.Forms;
9 | using System.Diagnostics;
10 | using System.IO;
11 | using Microsoft.Win32;
12 |
13 | namespace WIMExplorer
14 | {
15 | partial class AboutForm : Form
16 | {
17 | public AboutForm()
18 | {
19 | InitializeComponent();
20 | }
21 |
22 | private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
23 | {
24 | Process.Start("https://github.com/CodingWonders");
25 | }
26 |
27 | private void AboutForm_Load(object sender, EventArgs e)
28 | {
29 | labelVersion.Text = $"Version {Application.ProductVersion.ToString()}";
30 | if (File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DT")))
31 | textBox1.Text += "This copy is shipped with DISMTools.";
32 |
33 | // Configure appearance based on system preference
34 | try
35 | {
36 | RegistryKey colorRk = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize");
37 | int colorValue = (int)colorRk.GetValue("AppsUseLightTheme");
38 | colorRk.Close();
39 | Form1.EnableDarkTitleBar(Handle, (colorValue == 0));
40 | Color bgColor = new Color();
41 | Color fgColor = new Color();
42 | switch (colorValue)
43 | {
44 | case 0:
45 | bgColor = Color.FromArgb(48, 48, 48);
46 | fgColor = Color.White;
47 | break;
48 | case 1:
49 | bgColor = Color.FromArgb(239, 239, 242);
50 | fgColor = Color.Black;
51 | break;
52 | }
53 | // Set colors of controls
54 | BackColor = bgColor;
55 | ForeColor = fgColor;
56 | textBox1.BackColor = bgColor;
57 | textBox1.ForeColor = fgColor;
58 | }
59 | catch (Exception ex)
60 | {
61 | Debug.WriteLine(ex.Message);
62 | // Set light theme
63 | Form1.EnableDarkTitleBar(Handle, false);
64 | }
65 | }
66 |
67 | private void okButton_Click(object sender, EventArgs e)
68 | {
69 | Close();
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/WIMExplorer/AboutForm.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/WIMExplorer/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/WIMExplorer/Form1.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace WIMExplorer
2 | {
3 | partial class Form1
4 | {
5 | ///
6 | /// Variable del diseñador necesaria.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Limpiar los recursos que se estén usando.
12 | ///
13 | /// true si los recursos administrados se deben desechar; false en caso contrario.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Código generado por el Diseñador de Windows Forms
24 |
25 | ///
26 | /// Método necesario para admitir el Diseñador. No se puede modificar
27 | /// el contenido de este método con el editor de código.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.components = new System.ComponentModel.Container();
32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
33 | this.label1 = new System.Windows.Forms.Label();
34 | this.textBox1 = new System.Windows.Forms.TextBox();
35 | this.button1 = new System.Windows.Forms.Button();
36 | this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
37 | this.treeView1 = new System.Windows.Forms.TreeView();
38 | this.listView1 = new System.Windows.Forms.ListView();
39 | this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
40 | this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
41 | this.imageList1 = new System.Windows.Forms.ImageList(this.components);
42 | this.label2 = new System.Windows.Forms.Label();
43 | this.comboBox1 = new System.Windows.Forms.ComboBox();
44 | this.statusStrip1 = new System.Windows.Forms.StatusStrip();
45 | this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
46 | this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
47 | this.toolStripStatusLabel3 = new System.Windows.Forms.ToolStripStatusLabel();
48 | this.linkLabel1 = new System.Windows.Forms.LinkLabel();
49 | this.splitContainer1 = new System.Windows.Forms.SplitContainer();
50 | this.panel1 = new System.Windows.Forms.Panel();
51 | this.toolStrip1 = new System.Windows.Forms.ToolStrip();
52 | this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripButton();
53 | this.toolStripDropDownButton2 = new System.Windows.Forms.ToolStripButton();
54 | this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
55 | this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
56 | this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
57 | this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
58 | this.textBoxPath = new System.Windows.Forms.ToolStripTextBox();
59 | this.detailsPane = new System.Windows.Forms.Panel();
60 | this.informationPanel = new System.Windows.Forms.Panel();
61 | this.label11 = new System.Windows.Forms.Label();
62 | this.label10 = new System.Windows.Forms.Label();
63 | this.label9 = new System.Windows.Forms.Label();
64 | this.label8 = new System.Windows.Forms.Label();
65 | this.label7 = new System.Windows.Forms.Label();
66 | this.label6 = new System.Windows.Forms.Label();
67 | this.pictureBox1 = new System.Windows.Forms.PictureBox();
68 | this.label5 = new System.Windows.Forms.Label();
69 | this.label4 = new System.Windows.Forms.Label();
70 | this.label3 = new System.Windows.Forms.Label();
71 | this.checkBox1 = new System.Windows.Forms.CheckBox();
72 | this.statusStrip1.SuspendLayout();
73 | ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
74 | this.splitContainer1.Panel1.SuspendLayout();
75 | this.splitContainer1.Panel2.SuspendLayout();
76 | this.splitContainer1.SuspendLayout();
77 | this.panel1.SuspendLayout();
78 | this.toolStrip1.SuspendLayout();
79 | this.detailsPane.SuspendLayout();
80 | this.informationPanel.SuspendLayout();
81 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
82 | this.SuspendLayout();
83 | //
84 | // label1
85 | //
86 | this.label1.AutoSize = true;
87 | this.label1.Location = new System.Drawing.Point(15, 15);
88 | this.label1.Name = "label1";
89 | this.label1.Size = new System.Drawing.Size(62, 15);
90 | this.label1.TabIndex = 0;
91 | this.label1.Text = "Image file:";
92 | //
93 | // textBox1
94 | //
95 | this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
96 | | System.Windows.Forms.AnchorStyles.Right)));
97 | this.textBox1.Location = new System.Drawing.Point(90, 12);
98 | this.textBox1.Name = "textBox1";
99 | this.textBox1.Size = new System.Drawing.Size(1070, 23);
100 | this.textBox1.TabIndex = 1;
101 | this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
102 | //
103 | // button1
104 | //
105 | this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
106 | this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
107 | this.button1.Location = new System.Drawing.Point(1166, 12);
108 | this.button1.Name = "button1";
109 | this.button1.Size = new System.Drawing.Size(86, 23);
110 | this.button1.TabIndex = 2;
111 | this.button1.Text = "Browse...";
112 | this.button1.UseVisualStyleBackColor = true;
113 | this.button1.Click += new System.EventHandler(this.button1_Click);
114 | //
115 | // openFileDialog1
116 | //
117 | this.openFileDialog1.Filter = "WIM files|*.wim";
118 | this.openFileDialog1.SupportMultiDottedExtensions = true;
119 | this.openFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk);
120 | //
121 | // treeView1
122 | //
123 | this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
124 | this.treeView1.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawText;
125 | this.treeView1.Location = new System.Drawing.Point(0, 0);
126 | this.treeView1.Name = "treeView1";
127 | this.treeView1.Size = new System.Drawing.Size(280, 553);
128 | this.treeView1.TabIndex = 3;
129 | this.treeView1.DrawNode += new System.Windows.Forms.DrawTreeNodeEventHandler(this.treeView1_DrawNode);
130 | this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
131 | this.treeView1.Leave += new System.EventHandler(this.treeView1_Leave);
132 | //
133 | // listView1
134 | //
135 | this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
136 | this.columnHeader1,
137 | this.columnHeader2});
138 | this.listView1.Dock = System.Windows.Forms.DockStyle.Fill;
139 | this.listView1.HideSelection = false;
140 | this.listView1.LargeImageList = this.imageList1;
141 | this.listView1.Location = new System.Drawing.Point(0, 26);
142 | this.listView1.Name = "listView1";
143 | this.listView1.ShowItemToolTips = true;
144 | this.listView1.Size = new System.Drawing.Size(644, 527);
145 | this.listView1.TabIndex = 4;
146 | this.listView1.UseCompatibleStateImageBehavior = false;
147 | this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
148 | this.listView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listView1_MouseDoubleClick);
149 | //
150 | // columnHeader1
151 | //
152 | this.columnHeader1.Text = "Name";
153 | this.columnHeader1.Width = 222;
154 | //
155 | // columnHeader2
156 | //
157 | this.columnHeader2.Text = "Attributes";
158 | this.columnHeader2.Width = 163;
159 | //
160 | // imageList1
161 | //
162 | this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
163 | this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
164 | this.imageList1.Images.SetKeyName(0, "file.png");
165 | this.imageList1.Images.SetKeyName(1, "folder.png");
166 | //
167 | // label2
168 | //
169 | this.label2.AutoSize = true;
170 | this.label2.Location = new System.Drawing.Point(15, 46);
171 | this.label2.Name = "label2";
172 | this.label2.Size = new System.Drawing.Size(39, 15);
173 | this.label2.TabIndex = 0;
174 | this.label2.Text = "Index:";
175 | //
176 | // comboBox1
177 | //
178 | this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
179 | | System.Windows.Forms.AnchorStyles.Right)));
180 | this.comboBox1.FormattingEnabled = true;
181 | this.comboBox1.Location = new System.Drawing.Point(90, 43);
182 | this.comboBox1.Name = "comboBox1";
183 | this.comboBox1.Size = new System.Drawing.Size(1162, 23);
184 | this.comboBox1.TabIndex = 5;
185 | this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
186 | //
187 | // statusStrip1
188 | //
189 | this.statusStrip1.AutoSize = false;
190 | this.statusStrip1.BackColor = System.Drawing.Color.DarkGreen;
191 | this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
192 | this.toolStripStatusLabel1,
193 | this.toolStripStatusLabel2,
194 | this.toolStripStatusLabel3});
195 | this.statusStrip1.Location = new System.Drawing.Point(0, 655);
196 | this.statusStrip1.Name = "statusStrip1";
197 | this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 16, 0);
198 | this.statusStrip1.Size = new System.Drawing.Size(1264, 26);
199 | this.statusStrip1.TabIndex = 6;
200 | this.statusStrip1.Text = "statusStrip1";
201 | //
202 | // toolStripStatusLabel1
203 | //
204 | this.toolStripStatusLabel1.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
205 | this.toolStripStatusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
206 | this.toolStripStatusLabel1.ForeColor = System.Drawing.Color.White;
207 | this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
208 | this.toolStripStatusLabel1.Size = new System.Drawing.Size(71, 21);
209 | this.toolStripStatusLabel1.Text = "Item Count";
210 | this.toolStripStatusLabel1.Visible = false;
211 | //
212 | // toolStripStatusLabel2
213 | //
214 | this.toolStripStatusLabel2.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
215 | this.toolStripStatusLabel2.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
216 | this.toolStripStatusLabel2.ForeColor = System.Drawing.Color.White;
217 | this.toolStripStatusLabel2.Name = "toolStripStatusLabel2";
218 | this.toolStripStatusLabel2.Size = new System.Drawing.Size(82, 21);
219 | this.toolStripStatusLabel2.Text = "Selected item";
220 | this.toolStripStatusLabel2.Visible = false;
221 | //
222 | // toolStripStatusLabel3
223 | //
224 | this.toolStripStatusLabel3.ForeColor = System.Drawing.Color.White;
225 | this.toolStripStatusLabel3.Name = "toolStripStatusLabel3";
226 | this.toolStripStatusLabel3.Size = new System.Drawing.Size(39, 21);
227 | this.toolStripStatusLabel3.Text = "Ready";
228 | //
229 | // linkLabel1
230 | //
231 | this.linkLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
232 | this.linkLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
233 | this.linkLabel1.LinkColor = System.Drawing.Color.DodgerBlue;
234 | this.linkLabel1.Location = new System.Drawing.Point(923, 634);
235 | this.linkLabel1.Name = "linkLabel1";
236 | this.linkLabel1.Size = new System.Drawing.Size(333, 15);
237 | this.linkLabel1.TabIndex = 7;
238 | this.linkLabel1.TabStop = true;
239 | this.linkLabel1.Text = "About this program";
240 | this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.TopRight;
241 | this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
242 | //
243 | // splitContainer1
244 | //
245 | this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
246 | | System.Windows.Forms.AnchorStyles.Left)
247 | | System.Windows.Forms.AnchorStyles.Right)));
248 | this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
249 | this.splitContainer1.Location = new System.Drawing.Point(19, 72);
250 | this.splitContainer1.Name = "splitContainer1";
251 | //
252 | // splitContainer1.Panel1
253 | //
254 | this.splitContainer1.Panel1.Controls.Add(this.treeView1);
255 | this.splitContainer1.Panel1MinSize = 280;
256 | //
257 | // splitContainer1.Panel2
258 | //
259 | this.splitContainer1.Panel2.Controls.Add(this.panel1);
260 | this.splitContainer1.Panel2.Controls.Add(this.detailsPane);
261 | this.splitContainer1.Panel2MinSize = 256;
262 | this.splitContainer1.Size = new System.Drawing.Size(1233, 553);
263 | this.splitContainer1.SplitterDistance = 280;
264 | this.splitContainer1.TabIndex = 8;
265 | //
266 | // panel1
267 | //
268 | this.panel1.Controls.Add(this.listView1);
269 | this.panel1.Controls.Add(this.toolStrip1);
270 | this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
271 | this.panel1.Location = new System.Drawing.Point(0, 0);
272 | this.panel1.Name = "panel1";
273 | this.panel1.Size = new System.Drawing.Size(644, 553);
274 | this.panel1.TabIndex = 5;
275 | //
276 | // toolStrip1
277 | //
278 | this.toolStrip1.AutoSize = false;
279 | this.toolStrip1.CanOverflow = false;
280 | this.toolStrip1.Enabled = false;
281 | this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
282 | this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
283 | this.toolStripDropDownButton1,
284 | this.toolStripDropDownButton2,
285 | this.toolStripButton1,
286 | this.toolStripSeparator1,
287 | this.toolStripLabel1,
288 | this.toolStripButton2,
289 | this.textBoxPath});
290 | this.toolStrip1.Location = new System.Drawing.Point(0, 0);
291 | this.toolStrip1.Name = "toolStrip1";
292 | this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
293 | this.toolStrip1.Size = new System.Drawing.Size(644, 26);
294 | this.toolStrip1.TabIndex = 5;
295 | this.toolStrip1.Text = "toolStrip1";
296 | //
297 | // toolStripDropDownButton1
298 | //
299 | this.toolStripDropDownButton1.Image = global::WIMExplorer.Properties.Resources.back_btn;
300 | this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
301 | this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
302 | this.toolStripDropDownButton1.Size = new System.Drawing.Size(52, 23);
303 | this.toolStripDropDownButton1.Text = "Back";
304 | this.toolStripDropDownButton1.Click += new System.EventHandler(this.toolStripDropDownButton1_Click);
305 | //
306 | // toolStripDropDownButton2
307 | //
308 | this.toolStripDropDownButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
309 | this.toolStripDropDownButton2.Image = global::WIMExplorer.Properties.Resources.next_btn;
310 | this.toolStripDropDownButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
311 | this.toolStripDropDownButton2.Name = "toolStripDropDownButton2";
312 | this.toolStripDropDownButton2.Size = new System.Drawing.Size(23, 23);
313 | this.toolStripDropDownButton2.Text = "Next";
314 | this.toolStripDropDownButton2.Click += new System.EventHandler(this.toolStripDropDownButton2_Click);
315 | //
316 | // toolStripButton1
317 | //
318 | this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
319 | this.toolStripButton1.Enabled = false;
320 | this.toolStripButton1.Image = global::WIMExplorer.Properties.Resources.up_btn;
321 | this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
322 | this.toolStripButton1.Name = "toolStripButton1";
323 | this.toolStripButton1.Size = new System.Drawing.Size(23, 23);
324 | this.toolStripButton1.Text = "Up";
325 | this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
326 | //
327 | // toolStripSeparator1
328 | //
329 | this.toolStripSeparator1.Name = "toolStripSeparator1";
330 | this.toolStripSeparator1.Size = new System.Drawing.Size(6, 26);
331 | //
332 | // toolStripLabel1
333 | //
334 | this.toolStripLabel1.Name = "toolStripLabel1";
335 | this.toolStripLabel1.Size = new System.Drawing.Size(52, 23);
336 | this.toolStripLabel1.Text = "Address:";
337 | //
338 | // toolStripButton2
339 | //
340 | this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
341 | this.toolStripButton2.AutoToolTip = false;
342 | this.toolStripButton2.Image = global::WIMExplorer.Properties.Resources.go_btn;
343 | this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
344 | this.toolStripButton2.Name = "toolStripButton2";
345 | this.toolStripButton2.Size = new System.Drawing.Size(42, 23);
346 | this.toolStripButton2.Text = "Go";
347 | this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
348 | //
349 | // textBoxPath
350 | //
351 | this.textBoxPath.AutoSize = false;
352 | this.textBoxPath.Name = "textBoxPath";
353 | this.textBoxPath.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never;
354 | this.textBoxPath.Size = new System.Drawing.Size(440, 28);
355 | this.textBoxPath.TextChanged += new System.EventHandler(this.textBoxPath_TextChanged);
356 | //
357 | // detailsPane
358 | //
359 | this.detailsPane.Controls.Add(this.informationPanel);
360 | this.detailsPane.Controls.Add(this.pictureBox1);
361 | this.detailsPane.Controls.Add(this.label5);
362 | this.detailsPane.Controls.Add(this.label4);
363 | this.detailsPane.Controls.Add(this.label3);
364 | this.detailsPane.Dock = System.Windows.Forms.DockStyle.Right;
365 | this.detailsPane.Location = new System.Drawing.Point(644, 0);
366 | this.detailsPane.Name = "detailsPane";
367 | this.detailsPane.Size = new System.Drawing.Size(305, 553);
368 | this.detailsPane.TabIndex = 6;
369 | this.detailsPane.Visible = false;
370 | //
371 | // informationPanel
372 | //
373 | this.informationPanel.Controls.Add(this.label11);
374 | this.informationPanel.Controls.Add(this.label10);
375 | this.informationPanel.Controls.Add(this.label9);
376 | this.informationPanel.Controls.Add(this.label8);
377 | this.informationPanel.Controls.Add(this.label7);
378 | this.informationPanel.Controls.Add(this.label6);
379 | this.informationPanel.Location = new System.Drawing.Point(10, 213);
380 | this.informationPanel.Name = "informationPanel";
381 | this.informationPanel.Size = new System.Drawing.Size(294, 212);
382 | this.informationPanel.TabIndex = 3;
383 | this.informationPanel.Visible = false;
384 | //
385 | // label11
386 | //
387 | this.label11.AutoEllipsis = true;
388 | this.label11.Location = new System.Drawing.Point(97, 139);
389 | this.label11.Name = "label11";
390 | this.label11.Size = new System.Drawing.Size(183, 61);
391 | this.label11.TabIndex = 2;
392 | this.label11.Text = "Accessed";
393 | //
394 | // label10
395 | //
396 | this.label10.AutoSize = true;
397 | this.label10.Location = new System.Drawing.Point(10, 139);
398 | this.label10.Name = "label10";
399 | this.label10.Size = new System.Drawing.Size(81, 15);
400 | this.label10.TabIndex = 2;
401 | this.label10.Text = "Last accessed:";
402 | //
403 | // label9
404 | //
405 | this.label9.AutoEllipsis = true;
406 | this.label9.Location = new System.Drawing.Point(97, 74);
407 | this.label9.Name = "label9";
408 | this.label9.Size = new System.Drawing.Size(183, 61);
409 | this.label9.TabIndex = 2;
410 | this.label9.Text = "Modified";
411 | //
412 | // label8
413 | //
414 | this.label8.AutoSize = true;
415 | this.label8.Location = new System.Drawing.Point(10, 74);
416 | this.label8.Name = "label8";
417 | this.label8.Size = new System.Drawing.Size(82, 15);
418 | this.label8.TabIndex = 2;
419 | this.label8.Text = "Last modified:";
420 | //
421 | // label7
422 | //
423 | this.label7.AutoEllipsis = true;
424 | this.label7.Location = new System.Drawing.Point(97, 13);
425 | this.label7.Name = "label7";
426 | this.label7.Size = new System.Drawing.Size(183, 61);
427 | this.label7.TabIndex = 2;
428 | this.label7.Text = "Created";
429 | //
430 | // label6
431 | //
432 | this.label6.AutoSize = true;
433 | this.label6.Location = new System.Drawing.Point(10, 13);
434 | this.label6.Name = "label6";
435 | this.label6.Size = new System.Drawing.Size(51, 15);
436 | this.label6.TabIndex = 2;
437 | this.label6.Text = "Created:";
438 | //
439 | // pictureBox1
440 | //
441 | this.pictureBox1.Location = new System.Drawing.Point(20, 51);
442 | this.pictureBox1.Name = "pictureBox1";
443 | this.pictureBox1.Size = new System.Drawing.Size(64, 64);
444 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
445 | this.pictureBox1.TabIndex = 1;
446 | this.pictureBox1.TabStop = false;
447 | //
448 | // label5
449 | //
450 | this.label5.AutoEllipsis = true;
451 | this.label5.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
452 | this.label5.Location = new System.Drawing.Point(17, 184);
453 | this.label5.Name = "label5";
454 | this.label5.Size = new System.Drawing.Size(274, 17);
455 | this.label5.TabIndex = 0;
456 | this.label5.Text = "fileDesc";
457 | //
458 | // label4
459 | //
460 | this.label4.AutoEllipsis = true;
461 | this.label4.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
462 | this.label4.Location = new System.Drawing.Point(16, 160);
463 | this.label4.Name = "label4";
464 | this.label4.Size = new System.Drawing.Size(274, 24);
465 | this.label4.TabIndex = 0;
466 | this.label4.Text = "fileName";
467 | //
468 | // label3
469 | //
470 | this.label3.AutoSize = true;
471 | this.label3.Font = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
472 | this.label3.Location = new System.Drawing.Point(16, 16);
473 | this.label3.Name = "label3";
474 | this.label3.Size = new System.Drawing.Size(128, 20);
475 | this.label3.TabIndex = 0;
476 | this.label3.Text = "File/folder details";
477 | //
478 | // checkBox1
479 | //
480 | this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
481 | this.checkBox1.Appearance = System.Windows.Forms.Appearance.Button;
482 | this.checkBox1.AutoSize = true;
483 | this.checkBox1.Enabled = false;
484 | this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
485 | this.checkBox1.Location = new System.Drawing.Point(303, 628);
486 | this.checkBox1.Name = "checkBox1";
487 | this.checkBox1.Size = new System.Drawing.Size(81, 25);
488 | this.checkBox1.TabIndex = 9;
489 | this.checkBox1.Text = "Details Pane";
490 | this.checkBox1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
491 | this.checkBox1.UseVisualStyleBackColor = true;
492 | this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
493 | //
494 | // Form1
495 | //
496 | this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
497 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
498 | this.ClientSize = new System.Drawing.Size(1264, 681);
499 | this.Controls.Add(this.checkBox1);
500 | this.Controls.Add(this.linkLabel1);
501 | this.Controls.Add(this.statusStrip1);
502 | this.Controls.Add(this.comboBox1);
503 | this.Controls.Add(this.button1);
504 | this.Controls.Add(this.label2);
505 | this.Controls.Add(this.textBox1);
506 | this.Controls.Add(this.label1);
507 | this.Controls.Add(this.splitContainer1);
508 | this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
509 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
510 | this.MinimumSize = new System.Drawing.Size(800, 600);
511 | this.Name = "Form1";
512 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
513 | this.Text = "Windows Image Explorer";
514 | this.Load += new System.EventHandler(this.Form1_Load);
515 | this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged);
516 | this.statusStrip1.ResumeLayout(false);
517 | this.statusStrip1.PerformLayout();
518 | this.splitContainer1.Panel1.ResumeLayout(false);
519 | this.splitContainer1.Panel2.ResumeLayout(false);
520 | ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
521 | this.splitContainer1.ResumeLayout(false);
522 | this.panel1.ResumeLayout(false);
523 | this.toolStrip1.ResumeLayout(false);
524 | this.toolStrip1.PerformLayout();
525 | this.detailsPane.ResumeLayout(false);
526 | this.detailsPane.PerformLayout();
527 | this.informationPanel.ResumeLayout(false);
528 | this.informationPanel.PerformLayout();
529 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
530 | this.ResumeLayout(false);
531 | this.PerformLayout();
532 |
533 | }
534 |
535 | #endregion
536 |
537 | private System.Windows.Forms.Label label1;
538 | private System.Windows.Forms.TextBox textBox1;
539 | private System.Windows.Forms.Button button1;
540 | private System.Windows.Forms.OpenFileDialog openFileDialog1;
541 | private System.Windows.Forms.TreeView treeView1;
542 | private System.Windows.Forms.ListView listView1;
543 | private System.Windows.Forms.ColumnHeader columnHeader1;
544 | private System.Windows.Forms.ColumnHeader columnHeader2;
545 | private System.Windows.Forms.ImageList imageList1;
546 | private System.Windows.Forms.Label label2;
547 | private System.Windows.Forms.ComboBox comboBox1;
548 | private System.Windows.Forms.StatusStrip statusStrip1;
549 | private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
550 | private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel2;
551 | private System.Windows.Forms.LinkLabel linkLabel1;
552 | private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel3;
553 | private System.Windows.Forms.SplitContainer splitContainer1;
554 | private System.Windows.Forms.Panel panel1;
555 | private System.Windows.Forms.ToolStrip toolStrip1;
556 | private System.Windows.Forms.ToolStripButton toolStripButton1;
557 | private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
558 | private System.Windows.Forms.ToolStripLabel toolStripLabel1;
559 | private System.Windows.Forms.ToolStripButton toolStripButton2;
560 | private System.Windows.Forms.ToolStripTextBox textBoxPath;
561 | private System.Windows.Forms.ToolStripButton toolStripDropDownButton1;
562 | private System.Windows.Forms.ToolStripButton toolStripDropDownButton2;
563 | private System.Windows.Forms.Panel detailsPane;
564 | private System.Windows.Forms.PictureBox pictureBox1;
565 | private System.Windows.Forms.Label label5;
566 | private System.Windows.Forms.Label label4;
567 | private System.Windows.Forms.Label label3;
568 | private System.Windows.Forms.Label label11;
569 | private System.Windows.Forms.Label label10;
570 | private System.Windows.Forms.Label label9;
571 | private System.Windows.Forms.Label label8;
572 | private System.Windows.Forms.Label label7;
573 | private System.Windows.Forms.Label label6;
574 | private System.Windows.Forms.CheckBox checkBox1;
575 | private System.Windows.Forms.Panel informationPanel;
576 | }
577 | }
578 |
579 |
--------------------------------------------------------------------------------
/WIMExplorer/Form1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using System.Windows.Forms;
10 | using ManagedWimLib;
11 | using System.Runtime.InteropServices;
12 | using System.IO;
13 | using System.Diagnostics;
14 | using Microsoft.Dism;
15 | using Microsoft.Win32;
16 |
17 | namespace WIMExplorer
18 | {
19 | public partial class Form1 : Form
20 | {
21 | internal sealed class NativeMethods
22 | {
23 | private NativeMethods()
24 | {
25 | }
26 |
27 | [DllImport("dwmapi.dll")]
28 | public static extern void DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);
29 |
30 | public static string GetFileTypeDescription(string fileExtension)
31 | {
32 | SHFILEINFO shfi;
33 | if (IntPtr.Zero != SHGetFileInfo(fileExtension, FILE_ATTRIBUTE_NORMAL, out shfi, (uint)Marshal.SizeOf(typeof(SHFILEINFO)), SHGFI_USEFILEATTRIBUTES | SHGFI_TYPENAME))
34 | {
35 | return shfi.szTypeName;
36 | }
37 | return null;
38 | }
39 |
40 | public static IntPtr GetFileTypeIcon(string fileExtension)
41 | {
42 | SHFILEINFO shfi;
43 | if (IntPtr.Zero != SHGetFileInfo(fileExtension, FILE_ATTRIBUTE_NORMAL, out shfi, (uint)Marshal.SizeOf(typeof(SHFILEINFO)), SHGFI_USEFILEATTRIBUTES | SHGFI_ICON))
44 | {
45 | return shfi.hIcon;
46 | }
47 | return IntPtr.Zero;
48 | }
49 |
50 | [DllImport("shell32.dll")]
51 | private static extern IntPtr SHGetFileInfo(string pszPath, uint dwFileAttributes, out SHFILEINFO psfi, uint cbFileInfo, uint flags);
52 |
53 | [StructLayout(LayoutKind.Sequential)]
54 | private struct SHFILEINFO
55 | {
56 | public IntPtr hIcon;
57 | public int iIcon;
58 | public uint dwAttributes;
59 | [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
60 | public string szDisplayName;
61 | [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 80)]
62 | public string szTypeName;
63 | }
64 |
65 | }
66 |
67 | const int DWMWA_USE_IMMERSIVE_DARK_MODE = 20;
68 | const int WS_EX_COMPOSITED = 0x20000000;
69 | const int GWL_EXSTYLE = -20;
70 |
71 | // https://stackoverflow.com/a/3780110
72 |
73 | private const uint FILE_ATTRIBUTE_READONLY = 0x00000001;
74 | private const uint FILE_ATTRIBUTE_HIDDEN = 0x00000002;
75 | private const uint FILE_ATTRIBUTE_SYSTEM = 0x00000004;
76 | private const uint FILE_ATTRIBUTE_DIRECTORY = 0x00000010;
77 | private const uint FILE_ATTRIBUTE_ARCHIVE = 0x00000020;
78 | private const uint FILE_ATTRIBUTE_DEVICE = 0x00000040;
79 | private const uint FILE_ATTRIBUTE_NORMAL = 0x00000080;
80 | private const uint FILE_ATTRIBUTE_TEMPORARY = 0x00000100;
81 | private const uint FILE_ATTRIBUTE_SPARSE_FILE = 0x00000200;
82 | private const uint FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400;
83 | private const uint FILE_ATTRIBUTE_COMPRESSED = 0x00000800;
84 | private const uint FILE_ATTRIBUTE_OFFLINE = 0x00001000;
85 | private const uint FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = 0x00002000;
86 | private const uint FILE_ATTRIBUTE_ENCRYPTED = 0x00004000;
87 | private const uint FILE_ATTRIBUTE_VIRTUAL = 0x00010000;
88 |
89 | private const uint SHGFI_ICON = 0x000000100; // get icon
90 | private const uint SHGFI_DISPLAYNAME = 0x000000200; // get display name
91 | private const uint SHGFI_TYPENAME = 0x000000400; // get type name
92 | private const uint SHGFI_ATTRIBUTES = 0x000000800; // get attributes
93 | private const uint SHGFI_ICONLOCATION = 0x000001000; // get icon location
94 | private const uint SHGFI_EXETYPE = 0x000002000; // return exe type
95 | private const uint SHGFI_SYSICONINDEX = 0x000004000; // get system icon index
96 | private const uint SHGFI_LINKOVERLAY = 0x000008000; // put a link overlay on icon
97 | private const uint SHGFI_SELECTED = 0x000010000; // show icon in selected state
98 | private const uint SHGFI_ATTR_SPECIFIED = 0x000020000; // get only specified attributes
99 | private const uint SHGFI_LARGEICON = 0x000000000; // get large icon
100 | private const uint SHGFI_SMALLICON = 0x000000001; // get small icon
101 | private const uint SHGFI_OPENICON = 0x000000002; // get open icon
102 | private const uint SHGFI_SHELLICONSIZE = 0x000000004; // get shell size icon
103 | private const uint SHGFI_PIDL = 0x000000008; // pszPath is a pidl
104 | private const uint SHGFI_USEFILEATTRIBUTES = 0x000000010; // use passed dwFileAttribute
105 |
106 | public static void EnableDarkTitleBar(IntPtr hwnd, bool isDarkMode)
107 | {
108 | int attribute = isDarkMode ? 1 : 0;
109 | NativeMethods.DwmSetWindowAttribute(hwnd, DWMWA_USE_IMMERSIVE_DARK_MODE, ref attribute, 4);
110 | }
111 |
112 | public IntPtr GetWindowHandle(Control ctrl)
113 | {
114 | return ctrl.Handle;
115 | }
116 |
117 | public bool IsWindowsVersionOrGreater(int majorVersion, int minorVersion, int buildNumber)
118 | {
119 | var version = Environment.OSVersion.Version;
120 | return version.Major > majorVersion || (version.Major == majorVersion && version.Minor > minorVersion) || (version.Major == majorVersion && version.Minor == minorVersion && version.Build >= buildNumber);
121 | }
122 |
123 | public Form1()
124 | {
125 | InitializeComponent();
126 | InitializeNativeLibrary();
127 | }
128 |
129 | List imgContents = new List();
130 | private Dictionary depthNodeMap = new Dictionary();
131 | string imageFile = "";
132 | int imageIndex = 1;
133 | string currentPath = "\\";
134 |
135 | List contentsInDir = new List();
136 |
137 | bool dirsGathered = false;
138 | bool skipAdditionalScans = false;
139 | bool skipAdditionalRefreshes = false;
140 |
141 | private TreeNode lastNode;
142 | private TreeNode currentSelectedNode;
143 |
144 | private Stack backHistory = new Stack();
145 | private Stack nextHistory = new Stack();
146 |
147 | public void SetStatus(string statusMsg)
148 | {
149 | toolStripStatusLabel3.Visible = true;
150 | toolStripStatusLabel3.Text = statusMsg;
151 | Application.DoEvents();
152 | }
153 |
154 | public static void InitializeNativeLibrary()
155 | {
156 | string arch = null;
157 | switch (RuntimeInformation.ProcessArchitecture)
158 | {
159 | case Architecture.X86:
160 | arch = "x86";
161 | break;
162 | case Architecture.X64:
163 | arch = "x64";
164 | break;
165 | case Architecture.Arm64:
166 | arch = "arm64";
167 | break;
168 | }
169 | string libPath = Path.Combine(arch, "libwim-15.dll");
170 | if (!File.Exists(Path.Combine(Application.StartupPath, libPath)))
171 | throw new PlatformNotSupportedException($"Unable to find native library [{libPath}]");
172 | Wim.GlobalInit(Path.Combine(Application.StartupPath, libPath), InitFlags.None);
173 | }
174 |
175 | private void button1_Click(object sender, EventArgs e)
176 | {
177 | openFileDialog1.ShowDialog();
178 | }
179 |
180 | private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
181 | {
182 | if (File.Exists(openFileDialog1.FileName))
183 | {
184 | textBox1.Text = openFileDialog1.FileName;
185 | }
186 | }
187 |
188 | private void GetWimIndexes(string wimFile)
189 | {
190 | try
191 | {
192 | DismApi.Initialize(DismLogLevel.LogErrors);
193 | DismImageInfoCollection dismImages = DismApi.GetImageInfo(wimFile);
194 | foreach (DismImageInfo dismImage in dismImages)
195 | {
196 | comboBox1.Items.Add($"{dismImage.ImageIndex} ({dismImage.ImageName})");
197 | }
198 | DismApi.Shutdown();
199 | }
200 | catch (Exception ex)
201 | {
202 | MessageBox.Show($"Failed to get indexes. Error code: {ex.Message}");
203 | }
204 | }
205 |
206 | private async Task GatherFiles(string wimFile, int wimIndex)
207 | {
208 | try
209 | {
210 | imgContents.Clear();
211 | depthNodeMap.Clear();
212 | Wim wimHandle = await Task.Run(() => Wim.OpenWim(wimFile, OpenFlags.None));
213 | IterateDirTreeCallback callback = new IterateDirTreeCallback(DirectoryTreeCallback);
214 | int result = await Task.Run(() => wimHandle.IterateDirTree(wimIndex, "\\", IterateDirTreeFlags.Recursive, callback));
215 | if (result != 0)
216 | {
217 | MessageBox.Show($"Failed to iterate directory tree. Error code: {result}");
218 | }
219 | }
220 | catch (Exception ex)
221 | {
222 | MessageBox.Show($"Failed to iterate directory tree. Error code: {ex.Message}");
223 | }
224 | }
225 |
226 | private int DirectoryTreeCallback(DirEntry dEntry, object userData)
227 | {
228 | // System.Diagnostics.Debug.WriteLine($"Entry: {dEntry.FileName}, Size: {dEntry.Depth}, Attributes: {dEntry.Attributes}");
229 | imgContents.Add(dEntry);
230 | return 0;
231 | }
232 |
233 | private async Task ShowFiles(string selectedPath)
234 | {
235 | ulong depth = 0;
236 | contentsInDir.Clear();
237 |
238 | if (imgContents.Count > 0)
239 | {
240 | SetStatus("Please wait...");
241 |
242 | if (selectedPath != "\\")
243 | {
244 | string fullPath = "Image" + currentPath;
245 | string[] parts = fullPath.Split(new string[] { "\\" }, StringSplitOptions.None);
246 | depth = (ulong)parts.Length - 1;
247 | }
248 | foreach (DirEntry dEntry in imgContents)
249 | {
250 | if (selectedPath == "\\")
251 | {
252 | if (dEntry.FileName == "" || dEntry.Depth == 0)
253 | continue;
254 | if (((dEntry.Attributes & FileAttributes.Directory) == FileAttributes.Directory) && !dirsGathered)
255 | await AddNodeToTreeView(dEntry);
256 | if (dEntry.Depth == 1)
257 | {
258 | contentsInDir.Add(dEntry);
259 | }
260 | }
261 | else
262 | {
263 | if (dEntry.FullPath.StartsWith(selectedPath))
264 | {
265 | if (dEntry.FileName == "" || dEntry.Depth == 0)
266 | continue;
267 | if (dEntry.Depth == depth)
268 | {
269 | contentsInDir.Add(dEntry);
270 | }
271 | }
272 | }
273 | }
274 |
275 | if (contentsInDir.Count > 0)
276 | {
277 | List items = new List();
278 | foreach (DirEntry dEntry in contentsInDir)
279 | {
280 | ListViewItem lvi = new ListViewItem();
281 | lvi.Text = dEntry.FileName;
282 | if ((dEntry.Attributes & FileAttributes.Directory) == FileAttributes.Directory)
283 | {
284 | lvi.ImageIndex = 1;
285 | }
286 | else
287 | {
288 | lvi.ImageIndex = 0;
289 | }
290 | items.Add(lvi);
291 | }
292 | await Task.Run(() => listView1.Invoke(new Action(() => listView1.Items.AddRange(items.ToArray()))));
293 | }
294 |
295 | try
296 | {
297 | string[] pathParts = selectedPath.Split(new string[] { "\\" }, StringSplitOptions.None);
298 | if (selectedPath != "\\")
299 | {
300 | label4.Text = pathParts[pathParts.Length - 2];
301 | }
302 | else
303 | {
304 | label4.Text = "Image root";
305 | }
306 | label5.Text = $"{listView1.Items.Count} items";
307 | }
308 | catch (Exception)
309 | {
310 | label4.Text = selectedPath;
311 | }
312 |
313 | pictureBox1.Image = imageList1.Images[1];
314 | informationPanel.Visible = false;
315 |
316 | }
317 | }
318 |
319 | private async Task AddNodeToTreeView(DirEntry dEntry)
320 | {
321 | TreeNode newNode = new TreeNode(dEntry.FileName);
322 |
323 | if (dEntry.Depth == 1)
324 | {
325 | // Root level directory
326 | await Task.Run(() => treeView1.Invoke(new Action(() => treeView1.Nodes["root"].Nodes.Add(newNode))));
327 | depthNodeMap[(int)dEntry.Depth] = newNode;
328 | }
329 | else
330 | {
331 | // Non-root directory
332 | if (depthNodeMap.TryGetValue((int)dEntry.Depth - 1, out TreeNode parentNode))
333 | {
334 | parentNode.Nodes.Add(newNode);
335 | depthNodeMap[(int)dEntry.Depth] = newNode;
336 | }
337 | }
338 | }
339 |
340 | private async void listView1_MouseDoubleClick(object sender, MouseEventArgs e)
341 | {
342 | if (listView1.SelectedItems.Count == 1)
343 | {
344 | if (listView1.FocusedItem.ImageIndex != 1) { return; }
345 |
346 | backHistory.Push(currentPath);
347 | nextHistory.Clear();
348 |
349 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel2.Visible = false)));
350 |
351 | skipAdditionalRefreshes = true;
352 |
353 | currentPath += listView1.FocusedItem.Text + "\\";
354 |
355 | await Task.Run(() => Invoke(new Action(() => listView1.Items.Clear())));
356 | await ShowFiles(currentPath);
357 | await Task.Run(() => Invoke(new Action(() => textBoxPath.Text = currentPath)));
358 |
359 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel1.Text = listView1.Items.Count + " item(s)")));
360 | SetStatus("Ready");
361 | SelectNodeByPath("Image Root" + currentPath, false);
362 |
363 | await Task.Run(() => Invoke(new Action(() => treeView1.Focus())));
364 | await Task.Run(() => Invoke(new Action(() => treeView1.Refresh())));
365 |
366 | skipAdditionalRefreshes = false;
367 |
368 | await Task.Run(() => Invoke(new Action(() => toolStripButton1.Enabled = (currentPath != "\\"))));
369 | }
370 | UpdateNavigationButtons();
371 | }
372 |
373 | private async void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
374 | {
375 | if (skipAdditionalScans) { return; }
376 |
377 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel1.Visible = false)));
378 |
379 | dirsGathered = false;
380 | imageIndex = comboBox1.SelectedIndex + 1;
381 | listView1.Items.Clear();
382 | treeView1.Nodes.Clear();
383 |
384 | backHistory.Clear();
385 | nextHistory.Clear();
386 |
387 | SetStatus("Getting files and directories of the image. Please wait...");
388 |
389 | // Add root node
390 | treeView1.Nodes.Add("root", "Image Root");
391 |
392 | await GatherFiles(imageFile, imageIndex);
393 | currentPath = "\\";
394 | textBoxPath.Text = currentPath;
395 | await ShowFiles(currentPath);
396 | dirsGathered = true;
397 |
398 | // Expand root node
399 | treeView1.Nodes["root"].Expand();
400 |
401 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel1.Visible = true)));
402 | toolStripStatusLabel1.Text = listView1.Items.Count + " item(s)";
403 |
404 | // Hide selected info
405 | toolStripStatusLabel2.Visible = false;
406 |
407 | SetStatus("Ready");
408 | UpdateNavigationButtons();
409 | }
410 |
411 | private void listView1_SelectedIndexChanged(object sender, EventArgs e)
412 | {
413 | informationPanel.Visible = (listView1.SelectedItems.Count == 1);
414 |
415 | if (listView1.SelectedItems.Count == 1)
416 | {
417 |
418 | int itemIndex;
419 |
420 | itemIndex = listView1.FocusedItem.Index;
421 |
422 | DirEntry selectedEntry = contentsInDir[itemIndex];
423 |
424 | // Create property variables
425 | string fileExt;
426 | DateTime created = selectedEntry.CreationTime;
427 | DateTime accessed = selectedEntry.LastAccessTime;
428 | DateTime modified = selectedEntry.LastWriteTime;
429 |
430 | label4.Text = listView1.FocusedItem.Text;
431 |
432 | toolStripStatusLabel2.Visible = true;
433 | label7.Text = $"{created.ToLongDateString()} - {created.ToShortTimeString()}";
434 | label9.Text = $"{modified.ToLongDateString()} - {created.ToShortTimeString()}";
435 | label11.Text = $"{accessed.ToLongDateString()} - {created.ToShortTimeString()}";
436 |
437 | if ((selectedEntry.Attributes & FileAttributes.Directory) == FileAttributes.Directory)
438 | {
439 | pictureBox1.Image = imageList1.Images[1];
440 | label5.Text = "File folder";
441 | toolStripStatusLabel2.Text = $"Created at {created}, last modified at {modified}, last accessed at {accessed}";
442 | }
443 | else
444 | {
445 | fileExt = Path.GetExtension(selectedEntry.FullPath).ToUpper().Replace(".", "").Trim();
446 | string extDesc = "";
447 | IntPtr fileIcon = IntPtr.Zero;
448 | if (fileExt != "")
449 | {
450 | extDesc = NativeMethods.GetFileTypeDescription($".{fileExt}");
451 | fileIcon = NativeMethods.GetFileTypeIcon($".{fileExt}");
452 | }
453 | else
454 | {
455 | pictureBox1.Image = imageList1.Images[0];
456 | }
457 | if (fileIcon != IntPtr.Zero)
458 | {
459 | pictureBox1.Image = (Icon.FromHandle(fileIcon)).ToBitmap();
460 | }
461 | toolStripStatusLabel2.Text = $"{(extDesc != "" ? extDesc + ". " : (fileExt != "" ? fileExt + " file. " : ""))}Created at {created}, last modified at {modified}, last accessed at {accessed}";
462 | label5.Text = (extDesc != "" ? extDesc : (fileExt != "" ? fileExt + " file" : ""));
463 | }
464 | }
465 | else if (listView1.SelectedItems.Count > 1)
466 | {
467 | toolStripStatusLabel2.Visible = true;
468 | toolStripStatusLabel2.Text = $"{listView1.SelectedItems.Count} items selected";
469 |
470 | pictureBox1.Image = null;
471 |
472 |
473 | // Configure details pane
474 | label4.Text = "Multiple selection";
475 | label5.Text = $"{listView1.SelectedItems.Count} selected items";
476 | }
477 | else
478 | {
479 | toolStripStatusLabel2.Visible = false;
480 | pictureBox1.Image = imageList1.Images[1];
481 |
482 | try
483 | {
484 | string[] pathParts = currentPath.Split(new string[] { "\\" }, StringSplitOptions.None);
485 | if (currentPath != "\\")
486 | {
487 | label4.Text = pathParts[pathParts.Length - 2];
488 | }
489 | else
490 | {
491 | label4.Text = "Image root";
492 | }
493 | label5.Text = $"{listView1.Items.Count} items";
494 | }
495 | catch (Exception)
496 | {
497 | label4.Text = currentPath;
498 | }
499 | }
500 | }
501 |
502 | private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
503 | {
504 | AboutForm about = new AboutForm();
505 | about.ShowDialog(this);
506 | }
507 |
508 | private void SelectNodeByPath(string path, bool tryToCollapse)
509 | {
510 | if (string.IsNullOrEmpty(path))
511 | return;
512 |
513 | string[] parts = path.Trim('\\').Split('\\');
514 | TreeNodeCollection nodes = treeView1.Nodes;
515 | TreeNode currentNode = null;
516 |
517 | foreach (string part in parts)
518 | {
519 | bool nodeFound = false;
520 |
521 | foreach (TreeNode node in nodes)
522 | {
523 | if (node.Text.Equals(part, StringComparison.OrdinalIgnoreCase))
524 | {
525 | node.Expand();
526 | currentNode = node;
527 | nodes = node.Nodes;
528 | nodeFound = true;
529 | break;
530 | }
531 | }
532 |
533 | if (!nodeFound)
534 | {
535 | // Node not found for this part of the path
536 | currentNode = null;
537 | break;
538 | }
539 | }
540 |
541 | // Collapse the last extended node
542 | if ((tryToCollapse) && (lastNode != null && currentNode != null && IsSubNode(currentNode, lastNode)))
543 | {
544 | lastNode.Collapse();
545 | }
546 |
547 | if (currentNode != null)
548 | {
549 | treeView1.SelectedNode = currentNode;
550 | currentNode.EnsureVisible();
551 | treeView1.Refresh();
552 | lastNode = currentNode;
553 | currentSelectedNode = currentNode;
554 | }
555 | else
556 | {
557 | MessageBox.Show($"Path '{path}' not found in the tree.");
558 | }
559 | }
560 |
561 | private bool IsSubNode(TreeNode parent, TreeNode subNode)
562 | {
563 | if (subNode == null || parent == null)
564 | return false;
565 |
566 | TreeNode currentNode = subNode;
567 | while (currentNode != null)
568 | {
569 | if (currentNode == parent)
570 | return true;
571 | currentNode = currentNode.Parent;
572 | }
573 | return false;
574 | }
575 |
576 | private void treeView1_Leave(object sender, EventArgs e)
577 | {
578 | if (currentSelectedNode != null)
579 | {
580 | treeView1.SelectedNode = currentSelectedNode;
581 | currentSelectedNode.EnsureVisible();
582 | }
583 | }
584 |
585 | private void treeView1_DrawNode(object sender, DrawTreeNodeEventArgs e)
586 | {
587 | if (e.Node == currentSelectedNode)
588 | {
589 | e.Graphics.FillRectangle(SystemBrushes.Highlight, e.Bounds);
590 | TextRenderer.DrawText(e.Graphics, e.Node.Text, treeView1.Font, e.Bounds, SystemColors.HighlightText, TextFormatFlags.VerticalCenter);
591 | }
592 | else
593 | {
594 | TextRenderer.DrawText(e.Graphics, e.Node.Text, treeView1.Font, e.Bounds, ForeColor, TextFormatFlags.VerticalCenter);
595 | }
596 | }
597 |
598 | private async void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
599 | {
600 | if (treeView1.SelectedNode != null)
601 | {
602 | if (skipAdditionalRefreshes) { return; }
603 |
604 | backHistory.Push(currentPath);
605 | nextHistory.Clear();
606 |
607 | await Task.Run(() => Invoke(new Action(() => listView1.Items.Clear())));
608 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel2.Visible = false)));
609 |
610 | currentPath = treeView1.SelectedNode.FullPath.Replace(treeView1.Nodes["root"].Text, "").Trim();
611 | if (!currentPath.EndsWith("\\"))
612 | currentPath += "\\";
613 |
614 | await ShowFiles(currentPath);
615 | await Task.Run(() => Invoke(new Action(() => textBoxPath.Text = currentPath)));
616 |
617 | toolStripStatusLabel1.Text = listView1.Items.Count + " item(s)";
618 | SetStatus("Ready");
619 | await Task.Run(() => Invoke(new Action(() => treeView1.SelectedNode = e.Node)));
620 | await Task.Run(() => Invoke(new Action(() => treeView1.Refresh())));
621 | currentSelectedNode = e.Node;
622 | }
623 | UpdateNavigationButtons();
624 | }
625 |
626 | private void Form1_SizeChanged(object sender, EventArgs e)
627 | {
628 | if (Visible)
629 | {
630 | int left = 0;
631 | left = (toolStripDropDownButton1.Width + toolStripDropDownButton2.Width + toolStripButton1.Width + toolStripSeparator1.Width + toolStripLabel1.Width);
632 | textBoxPath.Width = toolStrip1.Width - (left + toolStripButton2.Width) - 10;
633 | }
634 | }
635 |
636 | private void Form1_Load(object sender, EventArgs e)
637 | {
638 | int left = 0;
639 | left = (toolStripDropDownButton1.Width + toolStripDropDownButton2.Width + toolStripButton1.Width + toolStripSeparator1.Width + toolStripLabel1.Width);
640 | textBoxPath.Width = toolStrip1.Width - (left + toolStripButton2.Width) - 10;
641 |
642 | // Gather command-line arguments
643 | string[] args = Environment.GetCommandLineArgs();
644 | if (args.Length < 1) { return; }
645 | foreach (string arg in args)
646 | {
647 | if (arg.StartsWith("/image=", StringComparison.OrdinalIgnoreCase))
648 | {
649 | string imagePath;
650 | imagePath = arg.Replace("/image=", "").Trim();
651 |
652 | if (File.Exists(imagePath))
653 | {
654 | textBox1.Text = imagePath;
655 | }
656 | }
657 | }
658 |
659 | // Configure appearance based on system preference
660 | try
661 | {
662 | RegistryKey colorRk = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize");
663 | int colorValue = (int)colorRk.GetValue("AppsUseLightTheme");
664 | colorRk.Close();
665 | EnableDarkTitleBar(Handle, (colorValue == 0));
666 | Color bgColor = new Color();
667 | Color fgColor = new Color();
668 | switch (colorValue)
669 | {
670 | case 0:
671 | bgColor = Color.FromArgb(48, 48, 48);
672 | fgColor = Color.White;
673 | break;
674 | case 1:
675 | bgColor = Color.FromArgb(239, 239, 242);
676 | fgColor = Color.Black;
677 | break;
678 | }
679 | // Set colors of controls
680 | BackColor = bgColor;
681 | ForeColor = fgColor;
682 | treeView1.BackColor = bgColor;
683 | treeView1.ForeColor = fgColor;
684 | listView1.BackColor = bgColor;
685 | listView1.ForeColor = fgColor;
686 | toolStrip1.BackColor = bgColor;
687 | toolStrip1.ForeColor = fgColor;
688 | textBox1.BackColor = bgColor;
689 | textBox1.ForeColor = fgColor;
690 | comboBox1.BackColor = bgColor;
691 | comboBox1.ForeColor = fgColor;
692 | textBoxPath.BackColor = bgColor;
693 | textBoxPath.ForeColor = fgColor;
694 | // Set pictures of toolbar buttons
695 | if (bgColor == Color.FromArgb(48,48,48))
696 | {
697 | toolStripDropDownButton1.Image = Properties.Resources.back_btn_dark;
698 | toolStripDropDownButton2.Image = Properties.Resources.next_btn_dark;
699 | toolStripButton1.Image = Properties.Resources.up_btn_dark;
700 | toolStripButton2.Image = Properties.Resources.go_btn_dark;
701 | }
702 | else
703 | {
704 | toolStripDropDownButton1.Image = Properties.Resources.back_btn;
705 | toolStripDropDownButton2.Image = Properties.Resources.next_btn;
706 | toolStripButton1.Image = Properties.Resources.up_btn;
707 | toolStripButton2.Image = Properties.Resources.go_btn;
708 | }
709 | }
710 | catch (Exception ex)
711 | {
712 | Debug.WriteLine(ex.Message);
713 | // Set light theme
714 | EnableDarkTitleBar(Handle, false);
715 | }
716 | }
717 |
718 | private async void toolStripButton1_Click(object sender, EventArgs e)
719 | {
720 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel2.Visible = false)));
721 |
722 | backHistory.Push(currentPath);
723 | nextHistory.Clear();
724 |
725 | skipAdditionalRefreshes = true;
726 | string fullPath = currentPath.TrimEnd("\\".ToCharArray());
727 | List parts = fullPath.Split(new string[] { "\\" }, StringSplitOptions.None).ToList();
728 | parts[parts.Count - 1] = "";
729 | currentPath = string.Join("\\", parts);
730 | await Task.Run(() => Invoke(new Action(() => listView1.Items.Clear())));
731 | await ShowFiles(currentPath);
732 | await Task.Run(() => Invoke(new Action(() => textBoxPath.Text = currentPath)));
733 |
734 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel1.Text = listView1.Items.Count + " item(s)")));
735 | SetStatus("Ready");
736 | SelectNodeByPath("Image Root" + currentPath, true);
737 |
738 | await Task.Run(() => Invoke(new Action(() => treeView1.Focus())));
739 | await Task.Run(() => Invoke(new Action(() => treeView1.Refresh())));
740 |
741 | skipAdditionalRefreshes = false;
742 |
743 | await Task.Run(() => Invoke(new Action(() => toolStripButton1.Enabled = (currentPath != "\\"))));
744 |
745 | UpdateNavigationButtons();
746 | }
747 |
748 | private void textBoxPath_TextChanged(object sender, EventArgs e)
749 | {
750 | if (string.IsNullOrWhiteSpace(textBoxPath.Text)) { return; }
751 | if (currentPath != "\\")
752 | {
753 | string[] parts = textBoxPath.Text.Split(new string[] { "\\" }, StringSplitOptions.None);
754 |
755 | toolStripButton2.ToolTipText = $"Go to {parts[parts.Length - 2]}";
756 | }
757 | else
758 | {
759 | toolStripButton2.ToolTipText = "Go";
760 | }
761 | }
762 |
763 | private async void textBox1_TextChanged(object sender, EventArgs e)
764 | {
765 | if (File.Exists(textBox1.Text))
766 | {
767 | if (imageFile != textBox1.Text)
768 | {
769 | imageIndex = 1;
770 | imageFile = textBox1.Text;
771 | dirsGathered = false;
772 | skipAdditionalScans = true;
773 | toolStripStatusLabel1.Visible = false;
774 | listView1.Items.Clear();
775 | treeView1.Nodes.Clear();
776 | comboBox1.Items.Clear();
777 |
778 | backHistory.Clear();
779 | nextHistory.Clear();
780 |
781 | SetStatus("Getting files and directories of the image. Please wait...");
782 |
783 | // Add root node
784 | treeView1.Nodes.Add("root", "Image Root");
785 |
786 | GetWimIndexes(textBox1.Text);
787 | if (comboBox1.Items.Count > 0)
788 | {
789 | comboBox1.SelectedIndex = 0;
790 | }
791 | await GatherFiles(imageFile, imageIndex);
792 | currentPath = "\\";
793 | await ShowFiles(currentPath);
794 | textBoxPath.Text = currentPath;
795 | dirsGathered = true;
796 | skipAdditionalScans = false;
797 |
798 | // Expand root node
799 | treeView1.Nodes["root"].Expand();
800 |
801 | toolStripStatusLabel1.Visible = true;
802 | toolStripStatusLabel1.Text = listView1.Items.Count + " item(s)";
803 |
804 | // Hide selected info
805 | toolStripStatusLabel2.Visible = false;
806 |
807 | SetStatus("Ready");
808 |
809 | toolStrip1.Enabled = true;
810 |
811 | checkBox1.Enabled = true;
812 | }
813 | }
814 | UpdateNavigationButtons();
815 | }
816 |
817 |
818 | private void UpdateNavigationButtons()
819 | {
820 | toolStripDropDownButton1.Enabled = backHistory.Count > 0;
821 | toolStripDropDownButton2.Enabled = nextHistory.Count > 0;
822 | }
823 |
824 | private async void toolStripDropDownButton1_Click(object sender, EventArgs e)
825 | {
826 | if (backHistory.Count > 0)
827 | {
828 | // Move current path to next history
829 | nextHistory.Push(currentPath);
830 | // Get the previous path
831 | currentPath = backHistory.Pop();
832 |
833 | skipAdditionalRefreshes = true;
834 |
835 | await Task.Run(() => Invoke(new Action(() => listView1.Items.Clear())));
836 | await ShowFiles(currentPath);
837 | await Task.Run(() => Invoke(new Action(() => textBoxPath.Text = currentPath)));
838 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel1.Text = listView1.Items.Count + " item(s)")));
839 | SetStatus("Ready");
840 | SelectNodeByPath("Image Root" + currentPath, false);
841 | await Task.Run(() => Invoke(new Action(() => treeView1.Focus())));
842 | await Task.Run(() => Invoke(new Action(() => treeView1.Refresh())));
843 |
844 | skipAdditionalRefreshes = false;
845 | }
846 | UpdateNavigationButtons();
847 | }
848 |
849 | private async void toolStripDropDownButton2_Click(object sender, EventArgs e)
850 | {
851 | if (nextHistory.Count > 0)
852 | {
853 | // Move current path to back history
854 | backHistory.Push(currentPath);
855 | // Get the next path
856 | currentPath = nextHistory.Pop();
857 |
858 | skipAdditionalRefreshes = true;
859 |
860 | await Task.Run(() => Invoke(new Action(() => listView1.Items.Clear())));
861 | await ShowFiles(currentPath);
862 | await Task.Run(() => Invoke(new Action(() => textBoxPath.Text = currentPath)));
863 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel1.Text = listView1.Items.Count + " item(s)")));
864 | SetStatus("Ready");
865 | SelectNodeByPath("Image Root" + currentPath, false);
866 | await Task.Run(() => Invoke(new Action(() => treeView1.Focus())));
867 | await Task.Run(() => Invoke(new Action(() => treeView1.Refresh())));
868 |
869 | skipAdditionalRefreshes = false;
870 | }
871 | UpdateNavigationButtons();
872 | }
873 |
874 | private async void toolStripButton2_Click(object sender, EventArgs e)
875 | {
876 | if ((textBoxPath.Text != "") && (textBoxPath.Text != currentPath))
877 | {
878 | skipAdditionalRefreshes = true;
879 |
880 | backHistory.Push(currentPath);
881 | nextHistory.Clear();
882 |
883 | await Task.Run(() => Invoke(new Action(() => listView1.Items.Clear())));
884 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel2.Visible = false)));
885 |
886 | currentPath = textBoxPath.Text;
887 | if (!currentPath.EndsWith("\\"))
888 | currentPath += "\\";
889 |
890 | await ShowFiles(currentPath);
891 |
892 | await Task.Run(() => Invoke(new Action(() => toolStripStatusLabel1.Text = listView1.Items.Count + " item(s)")));
893 | SetStatus("Ready");
894 | SelectNodeByPath("Image Root" + currentPath, false);
895 |
896 | await Task.Run(() => Invoke(new Action(() => treeView1.Focus())));
897 | await Task.Run(() => Invoke(new Action(() => treeView1.Refresh())));
898 |
899 | skipAdditionalRefreshes = false;
900 |
901 | await Task.Run(() => Invoke(new Action(() => toolStripButton1.Enabled = (currentPath != "\\"))));
902 | }
903 | else if (string.IsNullOrWhiteSpace(textBoxPath.Text))
904 | {
905 | textBoxPath.Text = currentPath;
906 | }
907 | UpdateNavigationButtons();
908 | }
909 |
910 | private void checkBox1_CheckedChanged(object sender, EventArgs e)
911 | {
912 | detailsPane.Visible = checkBox1.Checked;
913 | int left = 0;
914 | left = (toolStripDropDownButton1.Width + toolStripDropDownButton2.Width + toolStripButton1.Width + toolStripSeparator1.Width + toolStripLabel1.Width);
915 | textBoxPath.Width = toolStrip1.Width - (left + toolStripButton2.Width) - 10;
916 | }
917 | }
918 | }
919 |
--------------------------------------------------------------------------------
/WIMExplorer/Icons/file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Icons/file.png
--------------------------------------------------------------------------------
/WIMExplorer/Icons/folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Icons/folder.png
--------------------------------------------------------------------------------
/WIMExplorer/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace WIMExplorer
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// Punto de entrada principal para la aplicación.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new Form1());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/WIMExplorer/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // La información general de un ensamblado se controla mediante el siguiente
6 | // conjunto de atributos. Cambie estos valores de atributo para modificar la información
7 | // asociada con un ensamblado.
8 | [assembly: AssemblyTitle("Windows Image Explorer")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Windows Image Explorer")]
13 | [assembly: AssemblyCopyright("© 2024. CodingWonders Software")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Si establece ComVisible en false, los tipos de este ensamblado no estarán visibles
18 | // para los componentes COM. Si es necesario obtener acceso a un tipo en este ensamblado desde
19 | // COM, establezca el atributo ComVisible en true en este tipo.
20 | [assembly: ComVisible(false)]
21 |
22 | // El siguiente GUID sirve como id. de typelib si este proyecto se expone a COM.
23 | [assembly: Guid("e99b488d-1f1b-41be-ac45-d29cd033d3d2")]
24 |
25 | // La información de versión de un ensamblado consta de los cuatro valores siguientes:
26 | //
27 | // Versión principal
28 | // Versión secundaria
29 | // Número de compilación
30 | // Revisión
31 | //
32 | // Puede especificar todos los valores o utilizar los números de compilación y de revisión predeterminados
33 | // mediante el carácter '*', como se muestra a continuación:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("0.6.0.2493")]
36 | [assembly: AssemblyFileVersion("0.6.0.2493")]
37 |
--------------------------------------------------------------------------------
/WIMExplorer/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Este código fue generado por una herramienta.
4 | // Versión de runtime:4.0.30319.42000
5 | //
6 | // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
7 | // se vuelve a generar el código.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WIMExplorer.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// Clase de recurso fuertemente tipado, para buscar cadenas traducidas, etc.
17 | ///
18 | // StronglyTypedResourceBuilder generó automáticamente esta clase
19 | // a través de una herramienta como ResGen o Visual Studio.
20 | // Para agregar o quitar un miembro, edite el archivo .ResX y, a continuación, vuelva a ejecutar ResGen
21 | // con la opción /str o recompile su proyecto de VS.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Devuelve la instancia de ResourceManager almacenada en caché utilizada por esta clase.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WIMExplorer.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Reemplaza la propiedad CurrentUICulture del subproceso actual para todas las
51 | /// búsquedas de recursos mediante esta clase de recurso fuertemente tipado.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 |
63 | ///
64 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
65 | ///
66 | internal static System.Drawing.Bitmap back_btn {
67 | get {
68 | object obj = ResourceManager.GetObject("back_btn", resourceCulture);
69 | return ((System.Drawing.Bitmap)(obj));
70 | }
71 | }
72 |
73 | ///
74 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
75 | ///
76 | internal static System.Drawing.Bitmap back_btn_dark {
77 | get {
78 | object obj = ResourceManager.GetObject("back_btn_dark", resourceCulture);
79 | return ((System.Drawing.Bitmap)(obj));
80 | }
81 | }
82 |
83 | ///
84 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
85 | ///
86 | internal static System.Drawing.Bitmap go_btn {
87 | get {
88 | object obj = ResourceManager.GetObject("go_btn", resourceCulture);
89 | return ((System.Drawing.Bitmap)(obj));
90 | }
91 | }
92 |
93 | ///
94 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
95 | ///
96 | internal static System.Drawing.Bitmap go_btn_dark {
97 | get {
98 | object obj = ResourceManager.GetObject("go_btn_dark", resourceCulture);
99 | return ((System.Drawing.Bitmap)(obj));
100 | }
101 | }
102 |
103 | ///
104 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
105 | ///
106 | internal static System.Drawing.Bitmap icon {
107 | get {
108 | object obj = ResourceManager.GetObject("icon", resourceCulture);
109 | return ((System.Drawing.Bitmap)(obj));
110 | }
111 | }
112 |
113 | ///
114 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
115 | ///
116 | internal static System.Drawing.Bitmap next_btn {
117 | get {
118 | object obj = ResourceManager.GetObject("next_btn", resourceCulture);
119 | return ((System.Drawing.Bitmap)(obj));
120 | }
121 | }
122 |
123 | ///
124 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
125 | ///
126 | internal static System.Drawing.Bitmap next_btn_dark {
127 | get {
128 | object obj = ResourceManager.GetObject("next_btn_dark", resourceCulture);
129 | return ((System.Drawing.Bitmap)(obj));
130 | }
131 | }
132 |
133 | ///
134 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
135 | ///
136 | internal static System.Drawing.Bitmap up_btn {
137 | get {
138 | object obj = ResourceManager.GetObject("up_btn", resourceCulture);
139 | return ((System.Drawing.Bitmap)(obj));
140 | }
141 | }
142 |
143 | ///
144 | /// Busca un recurso adaptado de tipo System.Drawing.Bitmap.
145 | ///
146 | internal static System.Drawing.Bitmap up_btn_dark {
147 | get {
148 | object obj = ResourceManager.GetObject("up_btn_dark", resourceCulture);
149 | return ((System.Drawing.Bitmap)(obj));
150 | }
151 | }
152 | }
153 | }
154 |
--------------------------------------------------------------------------------
/WIMExplorer/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 |
122 | ..\Resources\toolbars\back_btn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
123 |
124 |
125 | ..\Resources\toolbars\back_btn_dark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
126 |
127 |
128 | ..\Resources\toolbars\go_btn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
129 |
130 |
131 | ..\Resources\toolbars\go_btn_dark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
132 |
133 |
134 | ..\Resources\icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
135 |
136 |
137 | ..\Resources\toolbars\next_btn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
138 |
139 |
140 | ..\Resources\toolbars\next_btn_dark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
141 |
142 |
143 | ..\Resources\toolbars\up_btn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
144 |
145 |
146 | ..\Resources\toolbars\up_btn_dark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
147 |
148 |
--------------------------------------------------------------------------------
/WIMExplorer/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Este código fue generado por una herramienta.
4 | // Versión de runtime:4.0.30319.42000
5 | //
6 | // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
7 | // se vuelve a generar el código.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WIMExplorer.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/WIMExplorer/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/WIMExplorer/Resources/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Resources/icon.png
--------------------------------------------------------------------------------
/WIMExplorer/Resources/toolbars/back_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Resources/toolbars/back_btn.png
--------------------------------------------------------------------------------
/WIMExplorer/Resources/toolbars/back_btn_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Resources/toolbars/back_btn_dark.png
--------------------------------------------------------------------------------
/WIMExplorer/Resources/toolbars/go_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Resources/toolbars/go_btn.png
--------------------------------------------------------------------------------
/WIMExplorer/Resources/toolbars/go_btn_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Resources/toolbars/go_btn_dark.png
--------------------------------------------------------------------------------
/WIMExplorer/Resources/toolbars/next_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Resources/toolbars/next_btn.png
--------------------------------------------------------------------------------
/WIMExplorer/Resources/toolbars/next_btn_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Resources/toolbars/next_btn_dark.png
--------------------------------------------------------------------------------
/WIMExplorer/Resources/toolbars/up_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Resources/toolbars/up_btn.png
--------------------------------------------------------------------------------
/WIMExplorer/Resources/toolbars/up_btn_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/WIMExplorer/Resources/toolbars/up_btn_dark.png
--------------------------------------------------------------------------------
/WIMExplorer/WIMExplorer.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {E99B488D-1F1B-41BE-AC45-D29CD033D3D2}
8 | WinExe
9 | WIMExplorer
10 | WIMExplorer
11 | v4.8
12 | 512
13 | true
14 | true
15 |
16 |
17 |
18 |
19 | AnyCPU
20 | true
21 | full
22 | false
23 | bin\Debug\
24 | DEBUG;TRACE
25 | prompt
26 | 4
27 | true
28 |
29 |
30 | AnyCPU
31 | pdbonly
32 | true
33 | bin\Release\
34 | TRACE
35 | prompt
36 | 4
37 |
38 |
39 | app.manifest
40 |
41 |
42 |
43 | ..\packages\Joveler.DynLoader.2.3.0\lib\net46\Joveler.DynLoader.dll
44 |
45 |
46 | ..\packages\ManagedWimLib.2.5.3\lib\net46\ManagedWimLib.dll
47 |
48 |
49 | ..\packages\Microsoft.Dism.3.1.0\lib\net40\Microsoft.Dism.dll
50 |
51 |
52 |
53 | ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
54 |
55 |
56 |
57 | ..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll
58 |
59 |
60 |
61 | ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
62 |
63 |
64 | ..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll
65 |
66 |
67 | ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll
68 | True
69 | True
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 | Form
84 |
85 |
86 | AboutForm.cs
87 |
88 |
89 | Form
90 |
91 |
92 | Form1.cs
93 |
94 |
95 |
96 |
97 | AboutForm.cs
98 |
99 |
100 | Form1.cs
101 |
102 |
103 | ResXFileCodeGenerator
104 | Resources.Designer.cs
105 | Designer
106 |
107 |
108 | True
109 | Resources.resx
110 | True
111 |
112 |
113 | Designer
114 |
115 |
116 |
117 | SettingsSingleFileGenerator
118 | Settings.Designer.cs
119 |
120 |
121 | True
122 | Settings.settings
123 | True
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 | Este proyecto hace referencia a los paquetes NuGet que faltan en este equipo. Use la restauración de paquetes NuGet para descargarlos. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=322105. El archivo que falta es {0}.
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 | :: Copy WIMLIB DLLs if they haven't been copied
159 |
160 | IF NOT EXIST "x64" (
161 | md "x64"
162 | copy /y "$(SolutionDir)packages\ManagedWimLib.2.5.3\runtimes\win-x64\native\libwim-15.dll" "x64\libwim-15.dll"
163 | )
164 |
165 | IF NOT EXIST "x86" (
166 | md "x86"
167 | copy /y "$(SolutionDir)packages\ManagedWimLib.2.5.3\runtimes\win-x86\native\libwim-15.dll" "x86\libwim-15.dll"
168 | )
169 |
170 | IF NOT EXIST "arm64" (
171 | md "arm64"
172 | copy /y "$(SolutionDir)packages\ManagedWimLib.2.5.3\runtimes\win-arm64\native\libwim-15.dll" "arm64\libwim-15.dll"
173 | )
174 |
175 |
--------------------------------------------------------------------------------
/WIMExplorer/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
52 |
59 |
60 |
61 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/WIMExplorer/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/build/Build.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/build/Build.zip
--------------------------------------------------------------------------------
/res/product.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodingWonders/WIM-Explorer/27b6ef0f6e6ede2b3a1f6f56470722280c79ff5c/res/product.png
--------------------------------------------------------------------------------