View Single Post
Old 12-27-06, 05:07 AM   #1 (permalink)
thevery
Aximsite Prospect
 
Join Date: Mar 2006
Location: Spb, Russia
Posts: 19
Device: SE k750i
Carrier: North-West GSM
Thanked 0 Times in 0 Posts
Icon3 Howto: install .cab files from PC :)

Maybe it's not new..
Idea is very simple - create appropriate .ini file and call ceappmgr.exe
(unfortunately, the idea is not mine)
How to use this:
Copy text to .bat or .cmd file (or simply download it), run and enjoy :D
Now .cab file can be installed by right-click and selecting "Install to PPC":

Feedback is welcome

for windows XP
http://ftp.support.softspb.com/~ildar/xp_install.cmd
Code:
rem PPC cab's installer from PC!
rem idea and first edition by djet
rem optimization and vista edition by thevery (ildar@softspb.com)
rem for windows XP
@echo off
set INSTALL_SCRIPT=Cab2PPC_Installer.cmd
set spacer=" "
set ASYNC_install_dir=%programfiles%\Microsoft ActiveSync

REG ADD HKCR\Cab2PPC\shell\CabInstaller /ve /d "Install to PPC" /f
REG ADD HKCR\Cab2PPC\shell\CabInstaller\command /ve /d \""%ASYNC_install_dir%\%INSTALL_SCRIPT%"\"%spacer%\"%%1\" /f
REG ADD HKCR\.cab /ve /d Cab2PPC /f

echo @echo off >%temp%\%INSTALL_SCRIPT%
echo echo [CEAppManager] ^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo Version = 1.0 ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo Component = %%~n1 ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo. ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo [%%~n1] ^>^> cabinstaller.ini^ >> %temp%\%INSTALL_SCRIPT%
echo echo Description = %%~n1 ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo CabFiles = %%~n1%%~x1 ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo. ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo start /wait "CabInstaller" "%ASYNC_install_dir%\ceappmgr.exe" "%%~d1%%~p1cabinstaller.ini"^ >> %temp%\%INSTALL_SCRIPT%
echo del /q cabinstaller.ini^ >> %temp%\%INSTALL_SCRIPT%

move "%temp%\%INSTALL_SCRIPT%" "%ASYNC_install_dir%\%INSTALL_SCRIPT%"
for windows vista:
http://ftp.support.softspb.com/~ildar/vista_install.cmd
Code:
rem PPC cab's installer from PC!
rem idea and first edition by djet
rem optimization and vista edition by thevery (ildar@softspb.com)
rem for windows vista
@echo off
set INSTALL_SCRIPT=Cab2PPC_Installer.cmd
set spacer=" "

REG ADD HKCR\Cab2PPC\shell\CabInstaller /ve /d "Install to PPC" /f
REG ADD HKCR\Cab2PPC\shell\CabInstaller\command /ve /d \""%windir%\WindowsMobile\%INSTALL_SCRIPT%"\"%spacer%\"%%1\" /f
REG ADD HKCR\.cab /ve /d Cab2PPC /f

echo @echo off  > %temp%\%INSTALL_SCRIPT%
echo echo [CEAppManager] ^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo Version = 1.0 ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo Component = %%~n1 ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo. ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo [%%~n1] ^>^> cabinstaller.ini^ >> %temp%\%INSTALL_SCRIPT%
echo echo Description = %%~n1 ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo CabFiles = %%~n1%%~x1 ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo echo. ^>^> cabinstaller.ini >> %temp%\%INSTALL_SCRIPT%
echo start /wait "CabInstaller" "%windir%\WindowsMobile\ceappmgr.exe" "%%~d1%%~p1cabinstaller.ini"^ >> %temp%\%INSTALL_SCRIPT%
echo del /q cabinstaller.ini^ >> %temp%\%INSTALL_SCRIPT%

move %temp%\%INSTALL_SCRIPT% %windir%\WindowsMobile\%INSTALL_SCRIPT%
__________________
Ildar R. Karimov
Spb Software House
thevery is offline   Reply With Quote