installer在佈署時程式時,可以先檢查是否有裝.net framework3.5 sp1這個環境程式,

沒裝的話就會幫你裝,其中有一個選項是"從應用程式的相同位置下載必要條件",

就是把.net framework3.5 sp1的程式放在我們要安裝的程式裡,如此一來就可以不用

連到網路上去慢慢下載,但是佈署時有時會遇到不明原因就不能佈署,遇到的錯誤一長串(在本文的最後有放錯誤的訊息)

後來發現解決辦法為

先開啟C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages

選裡面的DotNetFX35SP1這個資料夾

用記事本開啟Product.xml這個檔案

在 <packagefiles> 這個標籤最下面新增三行

<packagefile name="TOOLS\clwireg.exe"/>
<packagefile name="TOOLS\clwireg_x64.exe"/>
<packagefile name="TOOLS\clwireg_ia64.exe"/>

再把裡面
PackageFile Name="dotNetFX30\XPSEPSC-x86-en-US.exe"
packagefile name="dotNetFX30\XPSEPSC-amd64-en-US.exe"
這兩個後面的PublicKey改成如下
"3082010A0282010100A2DB0A8DCFC2C

1499BCDAA3A34AD23596BDB6CBE2122B794C8EAAEBFC6D526C


232118BB"

接著去下載.net framework3.5 sp1這個安裝程式(要選整個下載下來有200多MB喔,不是下載小小的啟動檔)

然後用Winrar去解壓縮它

把解壓縮出來的的6個內容

這些在解壓縮出來的資料夾的wcu\dotNetFramework\這裡的資料夾們(dotNetFX20,dotNetFX30,dotNetFX35,dotNetMSP,Tools,dotNetFx35setup.exe)

全部放到C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35SP1這個目錄裡

 

最後如果你的VisualStudio2008是繁中文版的話就要多做幾個步驟


接著對應自己的版本去下面的表格裡的網址去下載語言包各放在X86跟X64就好了

下載繁中的語言包回來會有x86跟x64兩個,x86的不用改直接放到下面的資料夾裡就好

但是x64的語言包下載回來後要把整個檔案名稱和副檔名改為

Netfx20a_x64.msi 改成 dotnetfx35langpack_x64zh-cht.exe

然後再放個下面那個x64的資料夾裡


路徑如下面(沒有的資料夾就自己創)

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35SP1\zh-CHT\DotNetFX35\x86

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35SP1\zh-CHT\DotNetFX35\x64



對了下面的網址可能要用FireFox瀏覽器才開的了,用IE有的時候會開不了





Chinese (Traditional) (繁中的用這個)
x86
http://go.microsoft.com/fwlink?LinkID=118087
路徑:zh-CHT\DotNetFX35\x86

x64
http://go.microsoft.com/fwlink?LinkID=118050
路徑:zh-CHT\DotNetFX35\x64

-----------------------------------------------------------------

Chinese (Simplified) (簡中的用這個)
x86
http://go.microsoft.com/fwlink?LinkID=118146
路徑:zh-CHS\DotNetFX35\x86

x64
http://go.microsoft.com/fwlink?LinkID=118151
路徑:zh-CHS\DotNetFX35\x64

-----------------------------------------------------------------


English (英文版的不用下載就可以用了)
x86
N/A
N/A

x64
N/A
N/A

-----------------------------------------------------------------


French
x86
http://go.microsoft.com/fwlink?LinkID=118148
路徑:fr\DotNetFX35\x86


x64
http://go.microsoft.com/fwlink?LinkID=118153
路徑:fr\DotNetFX35\x64


-----------------------------------------------------------------
German
x86
http://go.microsoft.com/fwlink?LinkID=118149
路徑:de\DotNetFX35\x86

x64
http://go.microsoft.com/fwlink?LinkID=118154
路徑:de\DotNetFX35\x64


-----------------------------------------------------------------
Italian
x86
http://go.microsoft.com/fwlink?LinkID=118097
路徑:it\DotNetFX35\x86

x64
http://go.microsoft.com/fwlink?LinkID=118115
路徑:it\DotNetFX35\x64


-----------------------------------------------------------------
Japanese
x86
http://go.microsoft.com/fwlink?LinkID=118096
路徑:ja\DotNetFX35\x86

x64
http://go.microsoft.com/fwlink?LinkID=118114
路徑:ja\DotNetFX35\x64


-----------------------------------------------------------------
Korean
x86
http://go.microsoft.com/fwlink?LinkID=118147
路徑:ko\DotNetFX35\x86

x64
http://go.microsoft.com/fwlink?LinkID=118152
路徑:ko\DotNetFX35\x64


-----------------------------------------------------------------
Portuguese – Brazil
x86
http://go.microsoft.com/fwlink?LinkID=118092
路徑:pt-BR\DotNetFX35\x86

x64
http://go.microsoft.com/fwlink?LinkID=118110
路徑:pt-BR\DotNetFX35\x64


-----------------------------------------------------------------
Russian
x86
http://go.microsoft.com/fwlink?LinkID=118090
路徑:ru\DotNetFX35\x86

x64
http://go.microsoft.com/fwlink?LinkID=118108
路徑:ru\DotNetFX35\x64


-----------------------------------------------------------------
Spanish
x86
http://go.microsoft.com/fwlink?LinkID=118101
路徑:es\DotNetFX35\x86

x64
http://go.microsoft.com/fwlink?LinkID=118119
路徑:es\DotNetFX35\x64

-----------------------------------------------------------------

 

 

最後補上一開始遇到錯誤出現的訊息:

ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\aspnet.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\aspnet_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\clr.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\clr_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\crt.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\crt_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\dw.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\dw_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\netfx20a_x64.msi' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\netfx20a_x86.msi' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\netfx_ca.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\netfx_core.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\netfx_core_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\netfx_other.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\netfx_other_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\prexp.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\winforms.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\winforms_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\x86\msxml6.msi' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\x64\msxml6.msi' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\NetFX30a_x64.msi' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\NetFX30a_x86.msi' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\RGB9RAST_x64.msi' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\RGB9RAST_x86.msi' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WCF.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WCF_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WCS.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WCS_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WF.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WF_32.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WF_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WIC_x64_enu.exe' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WIC_x86_enu.exe' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WPF1.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WPF1_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WPF2.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WPF2_32.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WPF2_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WPF_Other.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WPF_Other_32.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\WPF_Other_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\XPS.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\XPSEPSC-x86-en-US.exe' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX30\XPSEPSC-amd64-en-US.exe' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX35\x86\netfx35_x86.exe' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX35\x64\netfx35_x64.exe' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetMSP\x86\NetFX2.0-KB936704-v6000-x86_RTM_en.msu' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetMSP\x86\NetFX2.0-KB948609-v6001-x86.msu' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetMSP\x86\NetFX3.0-KB936705-v6000-x86_RTM_en.msu' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetMSP\x86\NetFX3.0-KB948610-v6001-x86.msu' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetMSP\x64\NetFX2.0-KB936704-v6000-x64_RTM_en.msu' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetMSP\x64\NetFX2.0-KB948609-v6001-x64.msu' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetMSP\x64\NetFX3.0-KB936705-v6000-x64_RTM_en.msu' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetMSP\x64\NetFX3.0-KB948610-v6001-x64.msu' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFx35setup.exe' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.
ERROR: General failure building bootstrapper

arrow
arrow
    全站熱搜

    welkingunther 發表在 痞客邦 留言(1) 人氣()