In win10pe you can use WinNTSetup to mount an iso file by using R-mouse click on Select location of Windows installation files.
It is based on making use of ImDisk Virtual Disk driver that also has Configuration Control Panel applet to Mount and Remove ISO files in win10pe.
More Info in ImDisk subforum and in How to make Win10XPE
PE_ImDisk_2020-09-14_075926.jpg
Thanks,
Imdisk is a good solution, but when i saw your post, i already start a hardway just like "Wonko the Sane"'s suggestion.
After spend some hours, I got the native ISO mount work without explorer.exe:
1.create a miso.ps1 file, this file used to run mount iso powershell command:
Param(
[string]$fileName
)
$fileName
Mount-DiskImage -ImagePath $fileName -StorageType:ISO
2. modify the PE registry, clear the HKLM\SOFTWARE\Classes\.iso, only keep the default value.
modify the HKLM\SOFTWARE\Classes\Windows.IsoFile, final result should like:
[HKEY_CLASSES_ROOT\Windows.IsoFile\shell\mount]
[HKEY_CLASSES_ROOT\Windows.IsoFile\shell\mount\command]
@="x:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -file \"x:\\windows\\miso.ps1\" \"%1\""
[HKEY_CLASSES_ROOT\Windows.IsoFile\shell\open]
[HKEY_CLASSES_ROOT\Windows.IsoFile\shell\open\command]
@="x:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -file \"x:\\windows\\miso.ps1\" \"%1\""
3. modify startnet.cmd, add one line:
powershell.exe -Command set-executionpolicy -executionpolicy Unrestricted
Use any graphic file explorer(I have tested total commander) double click some .ISO file will mount that iso as a virtual cdrom.
Edited by n_g, 14 September 2020 - 09:16 AM.