[Shell Extension]Display APK icons from explorer

Search This thread

allangoing

Member
Oct 27, 2009
46
72
sites.google.com
I was going to do something like this with Droid Explorer, maybe i'll just find a way to include it in droid explorer, if the license allows me to distribute it.
yeap, sure, if you like, just add my name into your list :D
Actually it's very easy if you know how to do a icon handler COM object, tell me if you are interested in the detail.
 
Last edited:

allangoing

Member
Oct 27, 2009
46
72
sites.google.com
The error message box which said "cannot write to registry" is what I added for debugging purpose, I forgot to remove it when I compile the release, sorry guys!
if you see this message, it proves registry success, and you should see the icons.
it's updated now, without the meaningless msgbox, download
 
Last edited:

pentace

Senior Member
Oct 25, 2006
402
1
The error message box which said "cannot write to registry" is what I added for debugging purpose, I forgot to remove it when I compile the release, sorry guys!
if you see this message, it proves registry success, and you should see the icons.
it's updated now, without the meaningless msgbox, download[\url]


I still dont see the icons on windows 7 64 bit. any thoughts?
if that errors is supposed to be there . then it looks like everything should have worked.
 

camalot

Retired Recognized Developer
Jul 25, 2007
643
138
47
Hickory Hills IL
de.codeplex.com
yeap, sure, if you like, just add my name into your list :D
Actually it's very easy if you know how to do a icon handler COM object, tell me if you are interested in the detail.

I was toying around with this a while back, but sort of got side tracked. I have started working on it again, working off your source as sort of a base. Making minor changes to somethings, like using regular expressions to search for the icon path in the badging, disposing of the streams, things like that. I will absolutely add you to the list of contributors once I have it in a release, thanks.
 

FatBoyExtraordinaire

Senior Member
Jun 24, 2008
1,597
8
Philadelphia
What OS are you running? you may need to run the batch file as administrator if your running on vista/7. Shift+Right Click on the batch file and click "Run as administrator"

I'm using Vista Home Premium and it simply won't give me the option of running it as admin, even though I'm the only account on my computer and it's an admin account. I tried what you posted and that's a no go as well. I gotta be doing something wrong right?
 

camalot

Retired Recognized Developer
Jul 25, 2007
643
138
47
Hickory Hills IL
de.codeplex.com
I'm using Vista Home Premium and it simply won't give me the option of running it as admin, even though I'm the only account on my computer and it's an admin account. I tried what you posted and that's a no go as well. I gotta be doing something wrong right?

Ok, i'm on an XP machine right now so I can not help much with the vista thing. But, with that said, what exactly happens when you run the batch file?
 

bfreexxx

Senior Member
Apr 6, 2009
90
0
California
can't move or delete apk's

after applying the registry change to Win7, i can no longer move or delete .apk files. and i still have a generic icon. can you produce a fix for the deleting or moving?
 

FatBoyExtraordinaire

Senior Member
Jun 24, 2008
1,597
8
Philadelphia
Ok, i'm on an XP machine right now so I can not help much with the vista thing. But, with that said, what exactly happens when you run the batch file?

When I try to run the batch file, the Dos Screen read as follows:

"
C:\Users\FatBoyExtraordinaire\Documents\APK Icon>regasm.exe /codebase apkshellex
t.dll
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.42
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.

RegAsm : error RA0000 : An error occurred while writing the registration information to the registry. You must have administrative credentials to perform this task. Contact your system administrator for assistance

C:\Users\FatBoyExtraordinaire\Documents\APK Icon>pause
Press any key to continue . . . "
 

allangoing

Member
Oct 27, 2009
46
72
sites.google.com
Hi,
I got a update, suppose fixed the lock issue, please redo the reg.bat, and reboot, have a try.
all user need admin authority to run reg.bat. on Vista or 7 you need to use "run as administrator" command from context menu.
currently works on XP 32bits and 64bit, I cannot get correct icon on Vista, still digging..
download here
good luck!
 

camalot

Retired Recognized Developer
Jul 25, 2007
643
138
47
Hickory Hills IL
de.codeplex.com
Hi,
I got a update, suppose fixed the lock issue, please redo the reg.bat, and reboot, have a try.
all user need admin authority to run reg.bat. on Vista or 7 you need to use "run as administrator" command from context menu.
currently works on XP 32bits and 64bit, I cannot get correct icon on Vista, still digging..
download here
good luck!

I will try to dig and see if i can figure this out too later today. I was unable to get it to work on 32bit windows 7 yesterday when I was playing with it. The extension was registered and all the registry entries were there. just wasn't displaying the icon.

I will have the first release of droid explorer with this added today as well.
 

Mighty07

Member
Jun 30, 2009
28
1
Hey allangoing,

That is really cool! :)

I was doing something similar but for linux/gnome.
I kinda get all the info i need from the .apk but using a external tool, but your shellext seems it doesn't use it.
Can you share some tips on how to extract the info from the apk?

Thanks!
 
Last edited:

bfreexxx

Senior Member
Apr 6, 2009
90
0
California
can't move or delete apk's

Hi,
I got a update, suppose fixed the lock issue, please redo the reg.bat, and reboot, have a try.
all user need admin authority to run reg.bat. on Vista or 7 you need to use "run as administrator" command from context menu.
currently works on XP 32bits and 64bit, I cannot get correct icon on Vista, still digging..
download here
good luck!

still not working. still can't move or delete .apk files. thanks for the effort. keep trying! :)
 

camalot

Retired Recognized Developer
Jul 25, 2007
643
138
47
Hickory Hills IL
de.codeplex.com
Hey allangoing,

That is really cool! :)

I was doing something similar but for linux/gnome.
I kinda get all the info i need from the .apk but using a external tool, but your shellext seems it doesn't use it.
Can you share some tips on how to extract the info from the apk?

Thanks!

It's using the aapt tool to get the info. It gets the badging info using aapt, then it gets the icon image from the apk and creates a windows icon from it.
 

xile6

Senior Member
Dec 2, 2008
1,709
215
Dallas
Hi,
I got a update, suppose fixed the lock issue, please redo the reg.bat, and reboot, have a try.
all user need admin authority to run reg.bat. on Vista or 7 you need to use "run as administrator" command from context menu.
currently works on XP 32bits and 64bit, I cannot get correct icon on Vista, still digging..
download here
good luck!

That worked for me on windows xp thanks needed it as the other version didnt work
 

Top Liked Posts

  • There are no posts matching your filters.
  • 51
    9/2/2011 UPDATE:
    V2.1 release, fix the explorer no response when first time adb start.
    If you find no response when installing, try reconnect your device
    Any feedback is welcome!
    --------------------------------------------------------------------------------------------------------------------------------------
    8/24/2011 UPDATE:
    V2.0 can install the app directly from context menu, do not forget to connect your phone first.
    Please read the wiki page first
    --------------------------------------------------------------------------------------------------------------------------------------
    Sorry for let you waiting so long, here are some UPDATE:

    Working well on win7 32bit & 64bit, please see the wiki page on http://code.google.com/p/apkshellext/
    Now it requires .net framework 4, there is a download link on wiki page.

    Thanks to dds.feng, he reminded me that I have this project pending, and he brings an important patch.

    Good luck everyone.

    ------------------------------------------------------------------------------------------------------------------------------------
    Hi, All
    I found it's difficult to find a correct apk file among names when I want to install one to my lovely G1, then I did a windows extension.

    you need .NET framework 2.0 or above installed.
    download the dll here http://code.google.com/p/apkshellext/downloads/list

    Works Only on XP 32bit and possibly on win7 32bit.
    Doesn't work on x64 platform for now. It's ok if you want a try:p


    extract all stuff in the zip,
    excute reg.bat,
    after register successfully, you will got, probably you need a reboot:cool:


    snapshot.JPG

    Windows_7_snapshot.jpg


    please feedback directly on the project page or mail: guo.jingang@gmail.com

    It's created with VStudio 2008 express and c#, you can also find the source on project page.

    I will keep updating this. Good luck!
    5
    Auto-Installer

    I updated my auto installer to the lastest version (2.3)

    download here :

    http://goo.gl/fwKWNQ
    3
    Automatic DLL Installer

    I Updated the .EXE automatic installer with new version to v2.0

    make sure .Net Framework 4 is installed and unLocked

    Automatic installer v0.2

    X64 : Download Here

    X86 : download here

    all thanks to thread starter
    2
    for me don't work win7 X64 sp1

    Try copy and paste the following in place of the install script. This automatically gives the script (bat file) admin privileges without the necessity of right clicking and running as admin (to which many people are having dramas with).

    Also try downloading an application called FileTypes this allows you to unassociate the apk extension from that which it is currently associated and possibly the very reason for blocking the view of the apk's icons in Windows explorer. What that means is that if you have the apk associated with say 7zip then the icon will no longer display in Windows explorer. You need to first unassociate apk and then the icons display perfectly.
    Further to this, you may do some registry hacks to make the apk display using the apkextension posted in this thread AS WELL AS your favorite archiving app. PM me the archive app WinRAR,WinZIP, 7Zip or what ever and I will make you a reg file that you can run to allow everything to work (note I will need to know what version of Windows and 32bit or 64bit as well).

    Here is the script code:
    Note: I have only added the parts in bold
    Code:
     @ ECHO off
    [B]:checkPrivileges 
    NET FILE 1>NUL 2>NUL
    if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges ) 
    :getPrivileges 
    if '%1'=='ELEV' (shift & goto gotPrivileges)  
    setlocal DisableDelayedExpansion
    set "batchPath=%~0"
    setlocal EnableDelayedExpansion
    ECHO Set UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs" 
    ECHO UAC.ShellExecute "!batchPath!", "ELEV", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs" 
    "%temp%\OEgetPrivileges.vbs" 
    exit /B 
    :gotPrivileges 
    :START
    setlocal & pushd[/B]
    ECHO ################################################
    ECHO ##            APK Shell Extension             ##
    ECHO ##                                            ##
    ECHO ##     http://apkshellext.googlecode.com      ##
    ECHO ################################################
    
    SYSTEMINFO | FIND /i "x64-based pc"
    
    IF %ERRORLEVEL%==0 (
      ECHO.
      ECHO NOTE: You are using 64bit OS, For WIN7 User, you need "RUN AS ADMINISTRATOR" to run install!
      ECHO.
      "%windir%\Microsoft.NET\Framework64\v4.0.30319\regasm.exe" /codebase "%~dp0\apkshellext.dll"
    ) ELSE (
      ECHO You are using 32bit OS
      "%windir%\Microsoft.NET\Framework\v4.0.30319\regasm.exe" /codebase "%~dp0\apkshellext.dll"
    )
    
    ECHO Done!
    ECHO.
    ECHO /-------------------------------------------------------------------\
    ECHO  apkshellext is an open-source project,
    ECHO  Please visit http://apkshellext.googlecode.com for more information
    ECHO \-------------------------------------------------------------------/
    
    PAUSE
      [user=279333]@ECHO[/user] ON
    2
    Hi guys i updated the Automatic installer

    now it is Multi-X ( 23bit and 64bit )

    download : here

    Edit : guys how did you do the context menu ??