spacesurfer Posted June 7, 2007 Share Posted June 7, 2007 (edited) 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.cmdYou 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 June 7, 2007 by spacesurfer Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now