Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


spacesurfer

ImageX Double-click and Right-click Mount Scripts

1 post in this topic

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_mountrw.cmd imagex_mountro.cmd imagex_info.cmd

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.

(Any improvements are welcomed.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.WIM]
@="ImageX"

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

[HKEY_CLASSES_ROOT\ImageX\DefaultIcon]
@="F:\\ImageX\\imagex.ico,0"

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

[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\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\Topic]
@="System"

(Edit the paths to your script location.)

Edited by spacesurfer
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.