MSFN Forum: Add Right click .wim Windows 7 - MSFN Forum

Jump to content


  • 5 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • You cannot start a new topic
  • You cannot reply to this topic

Add Right click .wim Windows 7 Working with Windows 8 and UAC ON or OFF

#41 User is offline   TheWalrus 

  • N.W.O.
  • PipPipPipPipPip
  • Group: Members
  • Posts: 911
  • Joined: 11-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 April 2012 - 08:18 AM

Thanks. I bloody fail at this stuff big time :wacko:


#42 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,752
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 April 2012 - 08:46 AM

BTW
I tried with single backslash and it does not add key. must use \\
Also if you have UAC turned on it might need admin shield like my example for Dism

#43 User is offline   TheWalrus 

  • N.W.O.
  • PipPipPipPipPip
  • Group: Members
  • Posts: 911
  • Joined: 11-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 12 April 2012 - 02:51 PM

View PostmaxXPsoft, on 08 April 2012 - 08:06 AM, said:

UPDATED for Imagex from Program files with AIK

;4/8/2012 To use Imagex from Program files location use this registry instead.
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\IMAGEX compress export\command]
; @="\"C:\\Program Files\\Windows AIK\\Tools\\amd64\\imagex\" /export \"%1\" * \"%1\".new"

question: why does %programfiles% doesn't work here?

#44 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,752
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 April 2012 - 03:44 AM

View PostTheWalrus, on 12 April 2012 - 02:51 PM, said:

View PostmaxXPsoft, on 08 April 2012 - 08:06 AM, said:

UPDATED for Imagex from Program files with AIK

;4/8/2012 To use Imagex from Program files location use this registry instead.
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\IMAGEX compress export\command]
; @="\"C:\\Program Files\\Windows AIK\\Tools\\amd64\\imagex\" /export \"%1\" * \"%1\".new"

question: why does %programfiles% doesn't work here?

Because the key is a REG_SZ which does not normally expand them variables to full path.

#45 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,397
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 27 June 2012 - 02:20 AM

Many thanks for this nice registry settings!
However, when I use TuneUp Utilities 2012, this key is removed:

[HKEY_CLASSES_ROOT\WIMfile\Shell\.Wim]


And I can't no more use .wimrightclick.

I think it's because there is some Subcommands. Weird!

But if I add this key:

[HKEY_CLASSES_ROOT\WIMfile\Shell\.Wim\command]


All works fine and TuneUp Utilities doesn't remove previous key!

Same trouble explained and solved here using TuneUp Utilities to clean the registry:

http://www.msfn.org/...ost__p__1002319

Regards

This post has been edited by myselfidem: 27 June 2012 - 02:21 AM


#46 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,752
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 June 2012 - 11:26 AM

View Postmyselfidem, on 27 June 2012 - 02:20 AM, said:

[HKEY_CLASSES_ROOT\WIMfile\Shell\.Wim\command]


All works fine and TuneUp Utilities doesn't remove previous key!

by just adding .Wim\command even if blank it don't remove? Strange
I'll look at this

#47 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,397
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 27 June 2012 - 11:41 AM

Yes, just adding the key without value, works fine and TuneUp Utilities doesn't remove the previous key: [HKEY_CLASSES_ROOT\WIMfile\Shell\.Wim]

*Edit: I mean like this
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\WIMfile\Shell\.Wim]
"MUIVerb"="Windows Imaging Format (WIM)"
"SubCommands"="[ Mkdir zMountdir ];[ Mkdir zPackage ];.Wim Info;DISM log file;Mount # 1 R/W | if boot.wim is PE;Mount # 2 R/W | if boot.wim is Default;Mount # 3 R/W;Mount # 4 R/W;Mount # 5 R/W;Get-Drivers To Desktop;Get-Packages To Desktop;Get-Features To Desktop;Add-Driver's;Add-Package *.cab *.msu;Unmount + Save zMountDir;Unmount NO SAVE zMountDir;Cleanup + Delete zMountDir;IMAGEX .Wim Info;IMAGEX compress export"
"icon"="isoburn.exe"

[HKEY_CLASSES_ROOT\WIMfile\Shell\.Wim\command]



Regards

This post has been edited by myselfidem: 27 June 2012 - 03:44 PM


#48 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,752
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 June 2012 - 06:11 PM

Updated today

After reading the MS webpage again I just added the command key because of this.
Add the Command subkey, and a value:

HKEY_CLASSES_ROOT
   txtile
      shell
         test.verb
            Command


#49 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,397
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 29 June 2012 - 02:30 AM

Many thanks maxXPsoft.

I can download the new file on:

http://www.msfn.org/...t-full-sp1-iso/

Could you update the link inside this thread! Thanks in advance.
Regards

#50 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,752
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 June 2012 - 07:31 AM

; 6/28/12 Fix minor issue with Shell\.Wim\command found by myselfidem

Download .wimrightclick - Install.zip here

This post has been edited by maxXPsoft: 29 June 2012 - 08:03 AM


#51 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 16 September 2012 - 10:03 AM

Hey Veeger, check this out.

Snip pops a VB window for entering an image index #. Then pushes the $INDEX variable into the DISM command. Probably a few readers out there with more than 5 images in their AIO's.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\DISM_MOUNT]
"MUIVerb"="DISM_MOUNT"
"icon"="cmd.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\DISM_MOUNT\command]
@="cmd /k start /b powershell -command \"clear-host;[void][System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic');$INDEX = [Microsoft.VisualBasic.Interaction]::InputBox('Enter Image Index #', 'Which image to mount', '1');$PROMPT = [Microsoft.VisualBasic.Interaction]::MsgBox('Ready to mount image ?', 'OKCancel,Question', 'Last Chance to Cancel');switch ($PROMPT) {'OK'{Dism /mount-wim /wimfile:D:\\sources\\boot.wim /index:$INDEX /mountdir:C:\\zMountDir}'Cancel'{exit}}\""




I was going to write my own DISM shell ext until Urie mentioned yours, so now I'm abandoning the idea. If you want it you can have it, just need to remove the hard-coded boot.wim.

http://forums.mydigi...tension-Tool%99

#52 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,693
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 September 2012 - 03:25 PM

Although off topic, Max are you thinking of adapting this for the current Dism in W8 perhaps? As I have used it on a W8 build & doesn't
work correctly as previous! For instance the wim/info fails.

#53 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,752
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 September 2012 - 09:30 AM

View PostMrJinje, on 16 September 2012 - 10:03 AM, said:

Snip pops a VB window for entering an image index #. Then pushes the $INDEX variable into the DISM command. Probably a few readers out there with more than 5 images in their AIO's.



View PostMAVERICKS CHOICE, on 16 September 2012 - 03:25 PM, said:

Although off topic, Max are you thinking of adapting this for the current Dism in W8 perhaps? As I have used it on a W8 build & doesn't
work correctly as previous! For instance the wim/info fails.


Let me look at both things and see if I can make them work.
Was tough getting Win 7 to elevate the dism without anything else and took me a little while to figure out.

#54 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 17 September 2012 - 10:48 PM

Terrible documentation of all this by Microsoft, here is an example of how to create flyouts. Start with a shell > verb, give it a null "SubCommands" and you can the create sub-folders (again Shell >Verb) with SubCommands in them as such. Took me a while to figure out and the sample I learned from was not very straight-forward about it.


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\Shell\DISM_FLYOUT]
"SubCommands"=""
"Position"="top"
"icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\Background\Shell\DISM_FLYOUT\Shell\DISM_Commands]
"MUIVerb"="DISM_Commands"
"SubCommands"="Mkdir zMountdir zPackage;Unmount + Save zMountDir;Unmount NO SAVE zMountDir;Cleanup + Delete zMountDir"
"icon"="cmd.exe"
"Position"="Top"

[HKEY_CLASSES_ROOT\Directory\Background\Shell\DISM_FLYOUT\Shell\DISM_Mount]
"MUIVerb"="DISM_Mount"
"SubCommands"="Mount # 1 R/W | if boot.wim is PE;Mount # 2 R/W | if boot.wim is Default;Mount # 3 R/W;Mount # 4 R/W;Mount # 5 R/W"
"Position"="bottom"
"icon"="cmd.exe"




Can you confirm that all we need is the RUNASADMIN 'CompatFlag' and the "HasLUAShield"="" to properly elevate. Haven't tested yet with SLMGR.vbs, but this looks cleaner than including the elevate powertoy like I've been doing.

This post has been edited by MrJinje: 18 September 2012 - 12:26 AM


#55 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,752
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 September 2012 - 10:02 AM

View PostMrJinje, on 17 September 2012 - 10:48 PM, said:

Can you confirm that all we need is the RUNASADMIN 'CompatFlag' and the "HasLUAShield"="" to properly elevate. Haven't tested yet with SLMGR.vbs, but this looks cleaner than including the elevate powertoy like I've been doing.

On windows 7 that was all I needed to do to make this work and prompt for the elevate. http://www.msfn.org/...post__p__959826
Win 8 probably be harder to figure out.

I have the stuff added you suggested. New version uploaded
; 9/17/12 Modify Mounting of Image suggestion by MrJinje is now 'Mount R/W = Enter Image Index #'
That was easy

Attached File  .wimrightclick.png (29.21K)
Number of downloads: 2

#56 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,693
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 September 2012 - 02:53 AM

View PostMrJinje, on 17 September 2012 - 10:48 PM, said:

Terrible documentation of all this by Microsoft, here is an example of how to create flyouts. Start with a shell > verb, give it a null "SubCommands" and you can the create sub-folders (again Shell >Verb) with SubCommands in them as such. Took me a while to figure out and the sample I learned from was not very straight-forward about it.


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\Shell\DISM_FLYOUT]
"SubCommands"=""
"Position"="top"
"icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\Background\Shell\DISM_FLYOUT\Shell\DISM_Commands]
"MUIVerb"="DISM_Commands"
"SubCommands"="Mkdir zMountdir zPackage;Unmount + Save zMountDir;Unmount NO SAVE zMountDir;Cleanup + Delete zMountDir"
"icon"="cmd.exe"
"Position"="Top"

[HKEY_CLASSES_ROOT\Directory\Background\Shell\DISM_FLYOUT\Shell\DISM_Mount]
"MUIVerb"="DISM_Mount"
"SubCommands"="Mount # 1 R/W | if boot.wim is PE;Mount # 2 R/W | if boot.wim is Default;Mount # 3 R/W;Mount # 4 R/W;Mount # 5 R/W"
"Position"="bottom"
"icon"="cmd.exe"




Can you confirm that all we need is the RUNASADMIN 'CompatFlag' and the "HasLUAShield"="" to properly elevate. Haven't tested yet with SLMGR.vbs, but this looks cleaner than including the elevate powertoy like I've been doing.


That seems to be the problem every action for W8 images has to be with Admin Priv!!

#57 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,397
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 19 September 2012 - 04:10 AM

@maxXPsoft

I think you can change inside:.wimrightclick Readme 1st.htm (line 2):

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


With:
<html xmlns="http://www.w3.org/1999/xhtml">


Regards

This post has been edited by myselfidem: 19 September 2012 - 06:55 AM


#58 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 19 September 2012 - 06:46 AM

I've found that when I elevate on Windows 8, I lose access to my shared map drive in Virtual Box. I can confirm this by running "as administrator" explorer.exe from the command line that the mapped drive does not exist under my full admin token (but does when I use Secpol.msc to auto-elevate requests without prompt), anybody else notice that ?

#59 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,752
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 September 2012 - 10:52 AM

View Postmyselfidem, on 19 September 2012 - 04:10 AM, said:

<html xmlns="http://www.w3.org/1999/xhtml">


Ok I fixed for next

Using Windows 8 Pro here

With Windows 8 Add Right click .wim works as expected with UAC OFF

With UAC ON
Most things work like making the folders and mounting/dismount images. There is a slight delay before it pops the VB window
.wim info is working cause I can see it flash wim info but don't pause
Creates the driver/packages .txt file but they are empty
Won't delete folders although i have Full control
Imagex stuff I'll have to adapt to use dism in Win 8 instead

#60 User is offline   urie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 517
  • Joined: 30-July 03

Posted 19 September 2012 - 12:34 PM

View PostmaxXPsoft, on 18 September 2012 - 10:02 AM, said:

View PostMrJinje, on 17 September 2012 - 10:48 PM, said:

Can you confirm that all we need is the RUNASADMIN 'CompatFlag' and the "HasLUAShield"="" to properly elevate. Haven't tested yet with SLMGR.vbs, but this looks cleaner than including the elevate powertoy like I've been doing.

On windows 7 that was all I needed to do to make this work and prompt for the elevate. http://www.msfn.org/...post__p__959826
Win 8 probably be harder to figure out.

I have the stuff added you suggested. New version uploaded
; 9/17/12 Modify Mounting of Image suggestion by MrJinje is now 'Mount R/W = Enter Image Index #'
That was easy

Attached File  .wimrightclick.png (29.21K)
Number of downloads: 2



Van, Mount R/W = Enter Image Index # ids fine if they actually know what the images are we had this long while back and had to post image indexes of x86 and x64.
I know they should use wim.info but not everyone will :(

This post has been edited by urie: 19 September 2012 - 12:35 PM


Share this topic:


  • 5 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy