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% |