Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

ImageX Double-click and Right-click Mount Scripts

- - - - -

  • Please log in to reply
No replies to this topic

#1
spacesurfer

spacesurfer

    Pharmassist

  • Patrons
  • 1,668 posts
  • OS:Windows 7 x86
  • Country: Country Flag
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:

Attached File  imagex_mountrw.cmd   1.13KB   65 downloads Attached File  imagex_mountro.cmd   1.13KB   50 downloads Attached File  imagex_info.cmd   95bytes   47 downloads

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, 07 June 2007 - 05:24 PM.

_____________________________________________________________________
[Modify Office 2007 / 2010 Ribbon UI] [Javascript Guide] [Methods of Typing in Gujarati] [My Math Pages]
[Boot Windows 7 from VHD] [Multi-boot Vista/XP and other OSes with Grub Menu] [Boot XP and Vista Independently]


Gigabyte GA-P35-DS3L, Intel Core 2 Duo E6550 2.33 GHz, ASUS Radeon EAH3450 256 MB, 6 GB Corsair RAM, Maxtor 300 GB + Seagate 400 GB HDDs, Windows 7 Ultimate 64-bit
IBM T42 Intel Pentium M 1.7 GHz, 1.5 GB RAM, Radeon Mobility 7500, 160 GB HDD, Windows 7 Ultimate 32-bit


How to remove advertisement from MSFN



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN