簡體   English   中英

Installshield LE Visual Studio 2012先決條件

[英]Installshield LE Visual Studio 2012 Prerequisites

在Visual Studio 2012中嘗試使用InstallShield LE項目構建部署包時,我們如何指定先決條件。 我看到項目的“需求”部分是輔助的,但似乎這只會給安裝程序提供繼續安裝的功能,或者根據是否存在某些先決條件。 看起來它似乎沒有作為安裝的一部分實際安裝任何先決條件的功能。 作為我的安裝包的一部分,我希望安裝IIS 7.5 Express和SQL Server Compact 3.5 SP2。

使用Visual Studio 2010安裝項目時,我們可以將必備軟件安裝為安裝包的一部分。

在InstallShield的產品頁面上,它說LE版本支持:

“安裝先決條件在執行安裝之前檢查並安裝先決條件。”

我在搞什么?

看看(2)指定應用程序數據| 再分發。 您將找到大量的安裝程序先決條件。

http://community.flexerasoftware.com/showthread.php?200816-Installing-IIS-as-a-Prerequisite-on-x64-OSs有一種方法可以設置安裝WAM的新的必備文件(.PRQ)和IIS。 我把這些代碼放在這里給后代:

PRQ文件

<?xml version="1.0" encoding="UTF-8"?>
<SetupPrereq>
    <operatingsystemconditions>
        <operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="4" ProductType="1"></operatingsystemcondition>
        <operatingsystemcondition MajorVersion="6" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="4" ProductType="2|3"></operatingsystemcondition>
        <operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="4" ProductType="2|3"></operatingsystemcondition>
    </operatingsystemconditions>
    <files>
        <file LocalFile=".\Microsoft IIS\InstallWASandIIS.bat" CheckSum="3205F5B453D8E5FA8795280455BC6B97" FileSize="0,1983"></file>
    </files>
    <execute file="InstallWASandIIS.bat" returncodetoreboot="-1"></execute>
    <properties Id="{9724DBFD-9103-404F-BD53-6B29358C85EF}" Description="This prerequisite installs Windows Process Activation Services (WAS) and Microsoft Internet Information Services (IIS) on Windows 7 x64, Windows Server 2008 x64 and Windows Server 2008 R2 x64 operating systems for MET/TEAM."></properties>
    <behavior Reboot="32"></behavior>
</SetupPrereq>

BAT檔案

@echo off cls

@回聲。 @echo Windows進程激活服務(WAS)和Microsoft Internet信息@echo服務(IIS)必須安裝在此計算機上才能夠托管
@echo MET / TEAM網站。 如果此計算機上已安裝WAS和IIS,
@echo此過程只是確保安裝所有必需的組件。 @回聲。 @回聲。 @echo安裝Windows進程激活服務 - 請等待start / w%WINDIR%\\ sysnative \\ pkgmgr /l:%TEMP%\\InstallWAS.log / iu:IIS-WebServerRole; WAS-WindowsActivationService; WAS-ProcessModel; WAS-NetFxEnvironment; WAS -ConfigurationAPI;

如果不是ERRORLEVEL 0(@echo。
@echo安裝Windows進程激活服務時出錯 - ERRORLEVEL%@ echo請參閱日志文件%TEMP%\\ InstallWAS.log
@echo了解更多信息。 @回聲。 暫停退出)

@回聲。 @echo安裝Microsoft Internet信息服務 - 請等待... start / w%WINDIR%\\ sysnative \\ pkgmgr /l:%TEMP%\\InstallIIS.log / iu:IIS-WebServerRole; IIS-WebServer; IIS-CommonHttpFeatures; IIS- StaticContent; IIS-DefaultDocument; IIS-DirectoryBrowsing; IIS-HttpErrors; IIS-HttpRedirect; IIS-ApplicationDevelopment; IIS-ASPNET; IIS-NetFxExtensibility; IIS-ISAPIExtensions; IIS-ISAPIFilter; IIS-HealthAndDiagnostics; IIS-HttpLogging; IIS-RequestMonitor; IIS-HttpTracing; IIS-CustomLogging; IIS的安全性; IIS-BasicAuthentication; IIS-WindowsAuthentication; IIS-URLAuthorization; IIS-的requestFiltering; IIS的性能; IIS-HttpCompressionStatic; IIS-WebServerManagementTools; IIS-ManagementConsole; IIS-ManagementScriptingTools;是 - WindowsActivationService; WAS-中processModel; WAS-NetFxEnvironment; WAS-ConfigurationAPI; 如果不是ERRORLEVEL 0(@echo。
@echo安裝Microsoft Internet Information Services時出錯 - %ERRORLEVEL%@ echo請參閱日志文件%TEMP%\\ InstallIIS.log
@echo了解更多信息。 @回聲。 暫停退出)

@回聲。
@echo安裝成功! @回聲。 出口

感謝ACordner,無論你現在在哪里:-)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM