2010-02-12 1 views

답변

4

가 여기 반은 승리를의 .Net :

Function GetDotnet ;// looks for local copy before downloading, returns path in $0 
    Pop $0 
    ${If} ${FileExists} "$InitDir\dotnetfx35.exe" 
     StrCpy $0 "$InitDir\dotnetfx35.exe" 
    ${ElseIf} ${FileExists} "$InitDir\dotnetfx35setup.exe" 
     StrCpy $0 "$InitDir\dotnetfx35setup.exe" 
    ${Else}   
     Call DownloadDotnet 
     StrCpy $0 $0 
    ${EndIf} 
    Push $0 
FunctionEnd 

Function DownloadDotnet ;// downloads .Net, returns download path in $0 
    NSISDL::download "${DotnetDownloadUrl}" "${TempDir}\dotnetfx35setup.exe" 
    Pop $0 
    ${If} $0 == "cancel" 
     Quit  
    ${EndIf} 
    StrCpy $0 "${TempDir}\dotnetfx35setup.exe" 
    Push $0 
FunctionEnd 

Function InstallDotnet ;// kicks off the .Net installer 
    Pop $0 
    Push $1 
    ExecWait '"$0" /norestart' $1  
FunctionEnd 
0
+0

설치 중에 파일을 다운로드하고 DirectX 또는 .NET Framework를 8MB 설치 프로그램에 포함하지 않겠습니다. – Kevin

+0

여기에 참조 된 파일은 전체 설치 프로그램이 아닌 ** 웹 ** 설치 프로그램입니다. – Dave