Jump to content
Space Surfer

ImageX Double-click and Right-click Mount Scripts

Recommended Posts

I have created a file type for ImageX files (.wim) such that when you double-click, you can get it to mount read-only, read-write automatically or to display info. Here are the registry entries that put a right-click command for Info, Mount read-only, and Mount RW. It runs the respective scripts which are available for download here:

ImageX.rar

post-692-1181835555_thumb.jpg

You need setx.exe command for it to work.

Double-click wim image for info.

Right-click --> Mount to mount image as read-only. Do again to unmount. If setx variable gets messed up, option to reset variable.

Right-click --> Mountrw to mount read-write. Do again to unmount and it will ask to commit or not.

Right-click --> Apply to apply that image. The command script for applying comes up with this file in the source. Just fill in the rest to apply.

You need to import these registry entries and modify the paths to point to the location of these command scripts.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ImageX]
@="ImageX File"
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\ImageX\DefaultIcon]
@="C:\\Program Files\\Windows AIK\\Tools\\x86\\imagex.ico,0"

[HKEY_CLASSES_ROOT\ImageX\shell]
@="Info"

[HKEY_CLASSES_ROOT\ImageX\shell\Apply]

[HKEY_CLASSES_ROOT\ImageX\shell\Apply\command]
@="\"c:\\program files\\windows aik\\tools\\x86\\imagex_dapply.cmd\" \"%1\""

[HKEY_CLASSES_ROOT\ImageX\shell\Apply\ddeexec]

[HKEY_CLASSES_ROOT\ImageX\shell\Apply\ddeexec\Application]
@="imagex_dapply"

[HKEY_CLASSES_ROOT\ImageX\shell\Apply\ddeexec\Topic]
@="System"

[HKEY_CLASSES_ROOT\ImageX\shell\Info]

[HKEY_CLASSES_ROOT\ImageX\shell\Info\command]
@="\"C:\\Program Files\\Windows AIK\\Tools\\x86\\imagex_info.cmd\" \"%1\""

[HKEY_CLASSES_ROOT\ImageX\shell\Info\ddeexec]

[HKEY_CLASSES_ROOT\ImageX\shell\Info\ddeexec\Topic]
@="System"

[HKEY_CLASSES_ROOT\ImageX\shell\Mount]

[HKEY_CLASSES_ROOT\ImageX\shell\Mount\command]
@="\"C:\\Program Files\\Windows AIK\\Tools\\x86\\imagex_mountro.cmd\" \"%1\""

[HKEY_CLASSES_ROOT\ImageX\shell\Mount\ddeexec]

[HKEY_CLASSES_ROOT\ImageX\shell\Mount\ddeexec\Application]
@="imagex_mountro"

[HKEY_CLASSES_ROOT\ImageX\shell\Mount\ddeexec\Topic]
@="System"

[HKEY_CLASSES_ROOT\ImageX\shell\Mount_RW]
@="Mount RW"

[HKEY_CLASSES_ROOT\ImageX\shell\Mount_RW\command]
@="\"C:\\Program Files\\Windows AIK\\Tools\\x86\\imagex_mountrw.cmd\" \"%1\""

[HKEY_CLASSES_ROOT\ImageX\shell\Mount_RW\ddeexec]

[HKEY_CLASSES_ROOT\ImageX\shell\Mount_RW\ddeexec\Application]
@="imagex_mountrw"

[HKEY_CLASSES_ROOT\ImageX\shell\Mount_RW\ddeexec\Topic]
@="System"

If you want to add "Capture" to the right-click menu of your drives so you can capture them, then add this registry key (and modify the paths of the scripts):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell\Imagex]
@="ImageX Capture"

[HKEY_CLASSES_ROOT\Drive\shell\Imagex\command]
@="\"C:\\Program Files\\Windows AIK\\Tools\\x86\\imagex_dcapture.cmd\" \"%1\""

Report and bugs or problems.

Edited by Space Surfer

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...