Fix shell integration: #9

Use only HKCU.
Fix names.
Add aditional command in context menu.
This commit is contained in:
Enyby committed 2018-11-08 07:17:06 +02:00
1 parent 68ce3870bd
commit cba8663f9a
1 file changed
+8 -8
+8 -8
View File
@@ -3,14 +3,14 @@
ECHO APK-Info shell integration...
ECHO.
REG ADD "HKCR\.apk" /ve /t REG_SZ /d "APK-Info" /f >nul 2>nul
REG ADD "HKCR\APK-Info\DefaultIcon" /ve /t REG_SZ /d "\"%cd%\APK-Info.exe\"" /f >nul 2>nul
REG ADD "HKCR\APK-Info\shell\APKInfo" /ve /t REG_SZ /d "APK-Info" /f >nul 2>nul
REG ADD "HKCR\APK-Info\shell\APKInfo\command" /ve /t REG_SZ /d "\"%cd%\APK-Info.exe\" \"%%1\"" /f >nul 2>nul
REG ADD "HKCU\SOFTWARE\Classes\.apk" /ve /t REG_SZ /d "APK-Info" /f >nul 2>nul
REG ADD "HKCU\SOFTWARE\Classes\APK-Info\DefaultIcon" /ve /t REG_SZ /d "\"%cd%\APK-Info.exe\"" /f >nul 2>nul
REG ADD "HKCU\SOFTWARE\Classes\APK-Info\shell\APKInfo" /ve /t REG_SZ /d "APK-Info" /f >nul 2>nul
REG ADD "HKCU\SOFTWARE\Classes\APK-Info\shell\APKInfo\command" /ve /t REG_SZ /d "\"%cd%\APK-Info.exe\" \"%%1\"" /f >nul 2>nul
for %%H in (HKCU) do (
REG ADD "%%H\SOFTWARE\Classes\.apk" /ve /t REG_SZ /d "APK-Info" /f >nul 2>nul
REG ADD "%%H\SOFTWARE\Classes\APK-Info\DefaultIcon" /ve /t REG_SZ /d "\"%cd%\APK-Info.exe\"" /f >nul 2>nul
REG ADD "%%H\SOFTWARE\Classes\APK-Info\shell\open" /ve /t REG_SZ /d "APK-Info" /f >nul 2>nul
REG ADD "%%H\SOFTWARE\Classes\APK-Info\shell\open\command" /ve /t REG_SZ /d "\"%cd%\APK-Info.exe\" \"%%1\"" /f >nul 2>nul
REG ADD "%%H\SOFTWARE\Classes\SystemFileAssociations\.apk\Shell\APK-Info\Command" /ve /t REG_SZ /d "\"%cd%\APK-Info.exe\" \"%%1\"" /f >nul 2>nul
)
ECHO APK-Info shell integration completed!
ECHO.