2010-04-27 2 views

답변

0

대화 상자를 추가 할 수는 있지만 오류를 리디렉션 할 수있는 방법이 없다고 생각합니다. Studio 설치 프로젝트에서는 오류 처리 기능이 내장되어 있습니다.

InstallShield와 같은 타사 제품을 사용해야하거나 설치 프로그램 (MSI)을 직접 편집하여 원하는 기능을 사용할 수 있습니다.

1

내가 제대로 이해하는 경우 :

소프트웨어에 대한하지만, 당신은 대부분의 시간 오류가 발생할 소프트웨어의 전제 조건에 대한 오류를 처리 할 수있는 정확 하. 먼저 필수 패키지 파일의 위치로 이동해야합니다. 일반적으로 "C : \ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ Bootstrapper \ Packages \"가됩니다. 패키지 폴더를 찾고, 안으로 들어 가세요, "en"이라는 폴더가 있고 그 안에는 "package.xml"이라는 xml 파일이 있습니다. 텍스트 편집기를 열고 표시됩니다은 "InstallConditions"태그 사이

<InstallChecks> 
    <RegistryCheck Property="DotNet35SP" Key="HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5" Value="SP" /> 
</InstallChecks> 

<!-- Defines how to invoke the setup for .NET Framework redist --> 
<Commands Reboot="Defer"> 
    <Command PackageFile="dotNetFx35setup.exe" 
     Arguments=' /lang:enu /passive /norestart' 
     EstimatedInstalledBytes="30000000" 
     EstimatedTempBytes="30000000"> 

     <!-- These checks determine whether the package is to be installed --> 
     <InstallConditions> 
      <!-- This indicates .NET Framework is already installed --> 
      <BypassIf Property="DotNet35SP" Compare="ValueGreaterThanOrEqualTo" Value="1"/> 

      <!-- Block install if user does not have admin privileges --> 
      <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/> 
      <!-- Block install on less than Windows XP SP2 --> 
      <FailIf Property="VersionNT" Compare="VersionLessThan" Value="5.1.2" String="InvalidPlatformWinNT"/> 

      <!-- Block install on W2K3 with no service pack --> 
      <FailIf Property="VersionNT" Compare="VersionEqualTo" Value="5.2.0" String="InvalidPlatformWinNT"/> 

      <!-- Block install if the platform is IA-64 --> 
      <FailIf Property="ProcessorArchitecture" Compare="ValueEqualTo" Value="IA64" String="InvalidPlatformArchitecture" /> 
     </InstallConditions> 

     <ExitCodes> 
      <ExitCode Value="0" Result="Success"/> 
      <ExitCode Value="1602" Result="Fail" String="UserCancelled"/> 
      <ExitCode Value="1603" Result="Fail" String="GeneralFailure"/> 
      <ExitCode Value="3010" Result="SuccessReboot"/> 
      <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" /> 
     </ExitCodes> 

    </Command> 
</Commands> 

<!-- Defines a localizable string table for error messages--> 
<Strings> 
    <String Name="DisplayName">.NET Framework 3.5 SP1</String> 
    <String Name="Culture">en</String> 
    <String Name="AdminRequired">Administrator permissions are required to install .NET Framework 3.5 SP1. Contact your administrator.</String> 
    <String Name="InvalidPlatformWinNT">Installation of the .NET Framework 3.5 SP1 requires Windows XP SP2, Windows 2003 SP1, Windows Vista, or later. Contact your application vendor.</String> 
    <String Name="InvalidPlatformArchitecture">This version of the .NET Framework 3.5 SP1 is not supported on an IA-64 operating system. Contact your application vendor.</String> 
    <String Name="UserCancelled">The user has cancelled the installation. .NET Framework 3.5 SP1 has not been installed.</String> 
    <String Name="GeneralFailure">A failure occurred attempting to install .NET Framework 3.5 SP1.</String> 
    <String Name="DotNetFX35SP1Exe">http://go.microsoft.com/fwlink/?linkid=118076</String> 
</Strings> 

을, 당신은 "문자열"태그 사이에 전제 조건의 install.Then에 대한 조건을 추가/제거 할 수 있습니다, 당신은 오류 메시지를 사용자 정의 할 수 있습니다.

자세한 정보 : http://msdn.microsoft.com/en-us/library/ms229223.aspx

관련 문제