none
cab的安裝未成功 RRS feed

  • 問題

  • 大傢好,我是大陸的朋友

     

    能夠正常運行的程序,打包成cab文件後,在PDA裏安裝,提示:“cab文件安裝未成功”
    在模擬器裏面安裝,也失敗,說明不是機器的問題。

    設置成壓縮和不壓縮都不行
    版本號也在範圍內

    是用VS2005裏針對WM5.0做cab文件的

    請問高手,有可能是什麽問題?
    得到答案,立即給分

    2008年3月10日 下午 01:34

解答

  • 謝謝大傢

    我已經解決了,把一個wmp.dll從"com自註冊"改為“不註冊”就OK了
    這是給windows media player用的,還不知道這樣設置後,會不會影響視頻的播放

     

    特別感謝以上各位

     

    2008年3月13日 上午 01:47

所有回覆

  • Hi,

    有詳細的錯誤訊息嗎?目前這樣看不出來;你的cab檔有做甚麼特殊設定嗎?

    2008年3月10日 下午 02:06
    版主
  • 測試步驟:

    另外建一個Cab Project,先只加入檔案,不要做其他設定,看安裝結果成功或失敗

    逐一的把設定加上去,再看安裝結果成功或失敗

     

    你就可以知道是那個設定或步驟的問題,如果不知如何解決再貼上來

     

    我猜你應該到處貼問題,因為這裡沒有算分數,不過標示答案是好習慣,參見我的簽名...

    2008年3月11日 上午 07:05
  •  

    Hi Eric,

     

    將cab檔透過ActiveSync 傳到 device 是否可以成功安裝呢?

    如果可以的話,你可以透過RAPI將cab檔傳送到device並在device裏launch 起來安裝。

     

    林泰宏 Terry Lin 
    技術支援工程師 Support Engineer
    Developer Support Team
    Global Technical Support Center - Taiwan

    技術支援服務首頁: http://support.microsoft.com

    技術支援專線: 0800-008-833(市話專用)/ 02-2999-8833

    2008年3月11日 上午 08:33
  • 首先謝謝大傢 臺灣這邊的論壇果然氣氛甚好啊

     

    遺憾,沒有詳細的錯誤信息啊,就是能夠正常運行的程序在VS2005里自動生成cab,也沒有做特殊設定

    居然不能夠在機器上麵安裝

     

    我是通過ActiveSync復製到機器上麵,安裝就失敗

     

    葉佰蒼老師說到很對,我是到處髮帖了,呵呵

     

    只加入檔案,不要做其他設定

    安裝結果就失敗啊  鬱悶中

    2008年3月11日 下午 03:19
  • 我建立一個簡單的程序,打包就沒有問題
    但是我想打包的這個比較復雜點兒的程序就有問題

    我找到了inf文件,貼上來,請大傢幫我分析

    [Version]
    Signature="$Windows NT$"
    Provider="siem"
    CESignature="$Windows CE$"

    [CEStrings]
    AppName="GZcab"
    InstallDir=%CE1%\%AppName%

    [Strings]
    Manufacturer="siem"

    [CEDevice]
    VersionMin=4.0
    VersionMax=5.99
    BuildMax=0xE0000000

    [DefaultInstall]
    CEShortcuts=Shortcuts
    AddReg=RegKeys
    CopyFiles=Files.Common1,Files.Common2,Files.Common3,Files.Common4,Files.Common5,Files.Common6,Files.Common7,Files.Common8,Files.Common9,Files.Common10,Files.Common11,Files.Common12,Files.Common13,Files.Common14,Files.Common15,Files.Common16,Files.Common17,Files.Common18,Files.Common19,Files.Common20,Files.Common21,Files.Common22,Files.Common23,Files.Common24,Files.Common25,Files.Common26,Files.Common27,Files.Common28,Files.Common29,Files.Common30,Files.Common31,Files.Common32,Files.Common33
    CESelfRegister=wmp.dll

    [SourceDisksNames]
    1=,"Common1",,"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceProcess\2.0.0.0__b03f5f7f11d50a3a\"
    2=,"Common2",,"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\"
    3=,"Common3",,"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\"
    4=,"Common4",,"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\"
    5=,"Common5",,"C:\WINDOWS\assembly\GAC_MSIL\System.DirectoryServices\2.0.0.0__b03f5f7f11d50a3a\"
    6=,"Common6",,"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing.Design\2.0.0.0__b03f5f7f11d50a3a\"
    7=,"Common7",,"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\"
    8=,"Common8",,"C:\WINDOWS\system32\"
    9=,"Common9",,"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\"
    10=,"Common10",,"C:\WINDOWS\assembly\GAC_MSIL\System.DirectoryServices.Protocols\2.0.0.0__b03f5f7f11d50a3a\"
    11=,"Common11",,"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration.Install\2.0.0.0__b03f5f7f11d50a3a\"
    12=,"Common12",,"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\"
    13=,"Common13",,"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\"
    14=,"Common14",,"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\"
    15=,"Common15",,"C:\WINDOWS\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\"
    16=,"Common16",,"C:\WINDOWS\assembly\GAC_MSIL\System.Web.RegularExpressions\2.0.0.0__b03f5f7f11d50a3a\"
    17=,"Common17",,"E:\嵌入式开发\code\MyProject05\08.3.11\GZ\Controls\bin\Debug\"
    18=,"Common18",,"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Remoting\2.0.0.0__b77a5c561934e089\"
    19=,"Common19",,"C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\"
    20=,"Common20",,"C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualC\8.0.0.0__b03f5f7f11d50a3a\"
    21=,"Common21",,"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\"
    22=,"Common22",,"C:\WINDOWS\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\"
    23=,"Common23",,"E:\嵌入式开发\code\MyProject05\08.3.11\GZ\HostingLibrary\bin\Debug\"
    24=,"Common24",,"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\"
    25=,"Common25",,"C:\WINDOWS\assembly\GAC_MSIL\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\"
    26=,"Common26",,"D:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Client\v2.0\"
    27=,"Common27",,"E:\嵌入式开发\code\MyProject05\08.3.11\GZ\Controls\Interop\"
    28=,"Common28",,"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization.Formatters.Soap\2.0.0.0__b03f5f7f11d50a3a\"
    29=,"Common29",,"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\"
    30=,"Common30",,"C:\WINDOWS\assembly\GAC_MSIL\System.Security\2.0.0.0__b03f5f7f11d50a3a\"
    31=,"Common31",,"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\"
    32=,"Common32",,"C:\WINDOWS\assembly\GAC_MSIL\System.Data.SqlXml\2.0.0.0__b77a5c561934e089\"
    33=,"Common33",,"E:\嵌入式开发\code\MyProject05\08.3.11\GZ\GZ\obj\Debug\"

    [SourceDisksFiles]
    "System.ServiceProcess.dll"=1
    "System.dll"=2
    "System.Design.dll"=3
    "System.EnterpriseServices.dll"=4
    "System.DirectoryServices.dll"=5
    "System.Drawing.Design.dll"=6
    "System.Drawing.dll"=7
    "wmp.dll"=8
    "System.Web.dll"=9
    "System.DirectoryServices.Protocols.dll"=10
    "System.Configuration.Install.dll"=11
    "System.Data.dll"=12
    "System.Xml.dll"=13
    "System.EnterpriseServices.tlb"=14
    "System.Transactions.dll"=15
    "System.Web.RegularExpressions.dll"=16
    "Controls.dll"=17
    "System.Runtime.Remoting.dll"=18
    "System.Windows.Forms.dll"=19
    "Microsoft.VisualC.dll"=20
    "mscorlib.DLL"=21
    "Accessibility.dll"=22
    "HostingLibrary.dll"=23
    "mscorlib.tlb"=24
    "System.Deployment.dll"=25
    "System.Data.OracleClient.dll"=26
    "WMPLib.dll"=27
    "System.Runtime.Serialization.Formatters.Soap.dll"=28
    "System.Web.Services.dll"=29
    "System.Security.dll"=30
    "System.Configuration.dll"=31
    "System.Data.SqlXml.dll"=32
    "GZ.exe"=33

    [DestinationDirs]
    Shortcuts=0,%CE2%\Start Menu
    Files.Common1=0,"%InstallDir%"
    Files.Common2=0,"%InstallDir%"
    Files.Common3=0,"%InstallDir%"
    Files.Common4=0,"%InstallDir%"
    Files.Common5=0,"%InstallDir%"
    Files.Common6=0,"%InstallDir%"
    Files.Common7=0,"%InstallDir%"
    Files.Common8=0,"%InstallDir%"
    Files.Common9=0,"%InstallDir%"
    Files.Common10=0,"%InstallDir%"
    Files.Common11=0,"%InstallDir%"
    Files.Common12=0,"%InstallDir%"
    Files.Common13=0,"%InstallDir%"
    Files.Common14=0,"%InstallDir%"
    Files.Common15=0,"%InstallDir%"
    Files.Common16=0,"%InstallDir%"
    Files.Common17=0,"%InstallDir%"
    Files.Common18=0,"%InstallDir%"
    Files.Common19=0,"%InstallDir%"
    Files.Common20=0,"%InstallDir%"
    Files.Common21=0,"%InstallDir%"
    Files.Common22=0,"%InstallDir%"
    Files.Common23=0,"%InstallDir%"
    Files.Common24=0,"%InstallDir%"
    Files.Common25=0,"%InstallDir%"
    Files.Common26=0,"%InstallDir%"
    Files.Common27=0,"%InstallDir%"
    Files.Common28=0,"%InstallDir%"
    Files.Common29=0,"%InstallDir%"
    Files.Common30=0,"%InstallDir%"
    Files.Common31=0,"%InstallDir%"
    Files.Common32=0,"%InstallDir%"
    Files.Common33=0,"%InstallDir%"

    [Files.Common1]
    "System.ServiceProcess.dll","System.ServiceProcess.dll",,0

    [Files.Common2]
    "System.dll","System.dll",,0

    [Files.Common3]
    "System.Design.dll","System.Design.dll",,0

    [Files.Common4]
    "System.EnterpriseServices.dll","System.EnterpriseServices.dll",,0

    [Files.Common5]
    "System.DirectoryServices.dll","System.DirectoryServices.dll",,0

    [Files.Common6]
    "System.Drawing.Design.dll","System.Drawing.Design.dll",,0

    [Files.Common7]
    "System.Drawing.dll","System.Drawing.dll",,0

    [Files.Common8]
    "wmp.dll","wmp.dll",,0

    [Files.Common9]
    "System.Web.dll","System.Web.dll",,0

    [Files.Common10]
    "System.DirectoryServices.Protocols.dll","System.DirectoryServices.Protocols.dll",,0

    [Files.Common11]
    "System.Configuration.Install.dll","System.Configuration.Install.dll",,0

    [Files.Common12]
    "System.Data.dll","System.Data.dll",,0

    [Files.Common13]
    "System.Xml.dll","System.Xml.dll",,0

    [Files.Common14]
    "System.EnterpriseServices.tlb","System.EnterpriseServices.tlb",,0

    [Files.Common15]
    "System.Transactions.dll","System.Transactions.dll",,0

    [Files.Common16]
    "System.Web.RegularExpressions.dll","System.Web.RegularExpressions.dll",,0

    [Files.Common17]
    "Controls.dll","Controls.dll",,0

    [Files.Common18]
    "System.Runtime.Remoting.dll","System.Runtime.Remoting.dll",,0

    [Files.Common19]
    "System.Windows.Forms.dll","System.Windows.Forms.dll",,0

    [Files.Common20]
    "Microsoft.VisualC.dll","Microsoft.VisualC.dll",,0

    [Files.Common21]
    "mscorlib.DLL","mscorlib.DLL",,0

    [Files.Common22]
    "Accessibility.dll","Accessibility.dll",,0

    [Files.Common23]
    "HostingLibrary.dll","HostingLibrary.dll",,0

    [Files.Common24]
    "mscorlib.tlb","mscorlib.tlb",,0

    [Files.Common25]
    "System.Deployment.dll","System.Deployment.dll",,0

    [Files.Common26]
    "System.Data.OracleClient.dll","System.Data.OracleClient.dll",,0

    [Files.Common27]
    "WMPLib.dll","WMPLib.dll",,0

    [Files.Common28]
    "System.Runtime.Serialization.Formatters.Soap.dll","System.Runtime.Serialization.Formatters.Soap.dll",,0

    [Files.Common29]
    "System.Web.Services.dll","System.Web.Services.dll",,0

    [Files.Common30]
    "System.Security.dll","System.Security.dll",,0

    [Files.Common31]
    "System.Configuration.dll","System.Configuration.dll",,0

    [Files.Common32]
    "System.Data.SqlXml.dll","System.Data.SqlXml.dll",,0

    [Files.Common33]
    "GZ.exe","GZ.exe",,0


    [Shortcuts]

    [RegKeys]

     

    2008年3月11日 下午 03:49
  • 你這些檔案通通包成一個cab嗎?

     

    看起來是做multimedia連結server的系統 ^_^

     

    裡面有些desktop用的檔案,可能沒辦法裝在Device上頭...

    2008年3月11日 下午 06:45
  • 嗨!

    之前我也遇過這樣的問題,

    最後發現是中文字的關係,

    你要不要先試試看,

    把所有的中文字都改成英文的,

    記得包括程式集的捷徑名稱。

    2008年3月12日 上午 01:07
  • 葉佰蒼老師好眼力

    是做multimedia連結server的系統

    我用一個簡單的程式打包成cab沒問題,將葛復雜的程式打包就有問題了

    我以為是DLL程序集的問題,按炤那個簡單程序的樣子刪除了很多DLL程序集

    還是不能夠在PDA上麵安裝

     

    快瘋掉了!

    還有,已經改成英文了,還是有問題啊

    2008年3月12日 上午 03:04
  • 謝謝大傢

    我已經解決了,把一個wmp.dll從"com自註冊"改為“不註冊”就OK了
    這是給windows media player用的,還不知道這樣設置後,會不會影響視頻的播放

     

    特別感謝以上各位

     

    2008年3月13日 上午 01:47
  • 我小時候也做過類似的東西 Stick out tongue

     

    應該不會有問題..

    你包的wmp.dll應該是desktop版本的,在device的\windows裡面也有一個wmp.dll,是ROM上面的檔案

    2008年3月13日 上午 02:57
  •  Jan Yeh 寫信:

    我小時候也做過類似的東西

     

    應該不會有問題..

    你包的wmp.dll應該是desktop版本的,在device的\windows裡面也有一個wmp.dll,是ROM上面的檔案

     

    是的葉老師,你說的一點兒也沒錯
    我把那個desktop版的設置一下,或者屏蔽掉就OK了
    那個Device掉wmp.dll我畱着
    應該不影響運行視頻

    2008年3月13日 上午 03:26