nuovo installer test ENG x somaschini EN e refresh x installers
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>False</ExcludeApp_Data>
|
||||
<MSDeployServiceURL />
|
||||
<DeployIisAppPath />
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>InProc</MSDeployPublishMethod>
|
||||
<EnableMSDeployBackup>False</EnableMSDeployBackup>
|
||||
<UserName />
|
||||
<_SavePWD>False</_SavePWD>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="GIMConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_USA;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GIMConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_USA;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
<EncryptedPassword />
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>False</ExcludeApp_Data>
|
||||
<MSDeployServiceURL />
|
||||
<DeployIisAppPath />
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>InProc</MSDeployPublishMethod>
|
||||
<EnableMSDeployBackup>False</EnableMSDeployBackup>
|
||||
<UserName />
|
||||
<_SavePWD>False</_SavePWD>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="GIMConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_USA;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GIMConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_USA;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
<EncryptedPassword />
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>SomaschiniUSA</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>True</ExcludeApp_Data>
|
||||
<MSDeployServiceURL>https://10.74.82.17:8172/MsDeploy.axd</MSDeployServiceURL>
|
||||
<DeployIisAppPath>Default Web Site/WebGIM</DeployIisAppPath>
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
<EnableMSDeployBackup>True</EnableMSDeployBackup>
|
||||
<UserName>steamware</UserName>
|
||||
<_SavePWD>True</_SavePWD>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="GIMConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_USA;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GIMConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_USA;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<WDPMergeOption>DonotMerge</WDPMergeOption>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)GIMConnectionString-Web.config Connection String" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAeedwGXkKPUOp+YE/vTr2QgAAAAACAAAAAAADZgAAwAAAABAAAACQS+fM7DateS+EquuzojvSAAAAAASAAACgAAAAEAAAAGLIA8ke+wQ0O0VCqm8lL1MQAAAAqsh6BaGnlMsr7uy6+GYv/xQAAABHPl+iyTy0pgDKMio//KVnsXhPvw==</EncryptedPassword>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<WDPMergeOption>DonotMerge</WDPMergeOption>
|
||||
<ExcludeApp_Data>False</ExcludeApp_Data>
|
||||
<MSDeployServiceURL>https://10.74.82.218:8172/MsDeploy.axd</MSDeployServiceURL>
|
||||
<DeployIisAppPath>Default Web Site/WebGIM</DeployIisAppPath>
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
<EnableMSDeployBackup>True</EnableMSDeployBackup>
|
||||
<UserName>administrator</UserName>
|
||||
<_SavePWD>True</_SavePWD>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="GIMConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_USA;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GIMConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GIM_USA;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)GIMConnectionString-Web.config Connection String" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile>2013-02-18T17:23:39.8554171+01:00</TimeStampOfAssociatedLegacyPublishXmlFile>
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAeedwGXkKPUOp+YE/vTr2QgAAAAACAAAAAAADZgAAwAAAABAAAADCaSvvjrhF6tNIEImUz4E+AAAAAASAAACgAAAAEAAAACgC6gIDQpdzi/aWKqL0tkkQAAAAeVnZyIZ0pDtBB4IP3q3GsBQAAADHbi2p7P93YfWSIs+/RkBUGS7liA==</EncryptedPassword>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>False</ExcludeApp_Data>
|
||||
<MSDeployServiceURL>https://winlab.steamware.net:8172/MsDeploy.axd</MSDeployServiceURL>
|
||||
<DeployIisAppPath>Default Web Site/WebGIM</DeployIisAppPath>
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
<EnableMSDeployBackup>True</EnableMSDeployBackup>
|
||||
<UserName>Administrator</UserName>
|
||||
<_SavePWD>True</_SavePWD>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile>2013-02-18T17:23:39.8554171+01:00</TimeStampOfAssociatedLegacyPublishXmlFile>
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAADfdPkbM5mUeaV6YvQx8NEwAAAAACAAAAAAADZgAAwAAAABAAAAA/tNUTMx2aPO/TMNb5PH5qAAAAAASAAACgAAAAEAAAAAJb5Iy3trKT4zmRJUqir30YAAAA9O77zB5hfNy9oJKYz0A5y3CHkv8J2KIYFAAAANq6ss3kld8PPTCBRTqOHAk4rEUl</EncryptedPassword>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<parameters>
|
||||
<setParameter name="IIS Web Application Name" value="Default Web Site/WebGIM" />
|
||||
<setParameter name="GIMConnectionString-Web.config Connection String" value="Data Source=localhost\SQLExpress;Initial Catalog=GIM;Persist Security Info=True;User id=sa;Password=ViaDante16!" />
|
||||
</parameters>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<sitemanifest>
|
||||
<IisApp path="C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\WebGIM\Projects\WebGIM\GIM_site\obj\SomaschiniUSA\Package\PackageTmp" />
|
||||
<setAcl path="C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\WebGIM\Projects\WebGIM\GIM_site\obj\SomaschiniUSA\Package\PackageTmp" setAclResourceType="Directory" />
|
||||
<setAcl path="C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\WebGIM\Projects\WebGIM\GIM_site\obj\SomaschiniUSA\Package\PackageTmp" setAclUser="anonymousAuthenticationUser" setAclResourceType="Directory" />
|
||||
<IisApp path="C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebGIM\Projects\WebGIM\GIM_site\obj\SomaschiniUSA\Package\PackageTmp" />
|
||||
<setAcl path="C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebGIM\Projects\WebGIM\GIM_site\obj\SomaschiniUSA\Package\PackageTmp" setAclResourceType="Directory" />
|
||||
<setAcl path="C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebGIM\Projects\WebGIM\GIM_site\obj\SomaschiniUSA\Package\PackageTmp" setAclUser="anonymousAuthenticationUser" setAclResourceType="Directory" />
|
||||
</sitemanifest>
|
||||
@@ -1,63 +0,0 @@
|
||||
|
||||
===========================
|
||||
Prerequisites :
|
||||
--------------------------
|
||||
To deploy this Web package, Web Deploy (msdeploy.exe) must be installed on the computer that runs the .cmd file. For information about how to install Web Deploy, see the following URL:
|
||||
http://go.microsoft.com/?linkid=9278654
|
||||
This batch file requires that the package file "GIM_site.zip" and optionally provided the parameters file "GIM_site.SetParameters.xml" in the same folder or destination folder by environment variable.
|
||||
|
||||
===========================
|
||||
Usage:
|
||||
--------------------------
|
||||
{0} [/T|/Y] [/M:ComputerName] [/U:UserName] [/P:Password] [/G:UseTempAgent] [Additional msdeploy.exe flags ...]
|
||||
|
||||
|
||||
===========================
|
||||
Required Flags:
|
||||
--------------------------
|
||||
/T:
|
||||
Calls msdeploy.exe with the "-whatif" flag, which simulates deployment. This does not deploy the package. Instead, it creates a report of what will happen when you actually deploy the package.
|
||||
/Y:
|
||||
Calls msdeploy.exe without the "-whatif" flag, which deploys the package to the current machine or a destination server. Use /Y after you have verified the output that was generated by using the /T flag.
|
||||
|
||||
Note: Do not use /T and /Y in the same command.
|
||||
|
||||
===========================
|
||||
Optional Flags:
|
||||
--------------------------
|
||||
By Default, this script deploy on the current machine where this script is called with current user credential without agent service. Only pass the following value for advance scenario.
|
||||
|
||||
/M:<Destination server name or Service URL>
|
||||
If this flag is not specified, the package is installed on the computer where the command is run. The Service URL can be in the following format:
|
||||
https://<DestinationServer>:8172/MSDeploy.axd
|
||||
This format requires that IIS 7 be installed on the destination server and that IIS 7 Web Management Service(WMSvc) and Web Deployment Handler be set up.
|
||||
The service URL can also be in the following format:
|
||||
http://<DestinationServer>/MSDeployAgentService
|
||||
This format requires administrative rights on the destination server, and it requires that Web Deploy Remote Service (MsDepSvc) be installed on the destination server. IIS 7 does not have to be installed on the destination server.
|
||||
|
||||
/U:<UserName>
|
||||
/P:<Password>
|
||||
/G:<True | False>
|
||||
Specifies that the package is deployed by creating a temporary listener on the destination server. This requires no special installation on the destination server, but it requires you to be an administrator on that server. The default value of this flag is False.
|
||||
|
||||
/A:<Basic | NTLM>
|
||||
Specifies the type of authentication to be used. The possible values are NTLM and Basic. If the wmsvc provider setting is specified, the default authentication type is Basic; otherwise, the default authentication type is NTLM.
|
||||
|
||||
/L
|
||||
Specifies that the package is deployed to local IISExpress user instance.
|
||||
|
||||
[Additional msdeploy.exe flags]
|
||||
The msdeploy.exe command supports additional flags. You can include any of these additional flags in the "$(ProjectName).Deploy.cmd" file, and the flags are passed through to msdeploy.exe during execution.
|
||||
Alternatively, you can specify additional flags by setting the "_MsDeployAdditionalFlags" environment variable. These settings are used by this batch file.
|
||||
Note: Any flag value that includes an equal sign (=) must be enclosed in double quotation marks, as shown in the following example, which will skip deploying the databases that are included in the package:
|
||||
"-skip:objectName=dbFullSql"
|
||||
|
||||
===========================
|
||||
Environment-Specific Settings:
|
||||
--------------------------
|
||||
|
||||
To customize application-specific settings for each deployment environment (for example, the IIS application name, the physical path, and any connection strings), edit the settings in the following file:
|
||||
"GIM_site.SetParameters.xml"
|
||||
===========================
|
||||
For more information on this deploy script visit: http://go.microsoft.com/fwlink/?LinkID=183544
|
||||
|
||||
@@ -1,256 +0,0 @@
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Copyright 2008 Microsoft Corporation. All rights reserved.
|
||||
@rem This is provided as sample to deploy the package using msdeploy.exe
|
||||
@rem For information about IIS Web Deploy technology,
|
||||
@rem please visit http://go.microsoft.com/?linkid=9278654
|
||||
@rem Note: This batch file assumes the package and setparametsrs.xml are in the same folder with this file
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@if %_echo%!==! echo off
|
||||
setlocal
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Please Make sure you have Web Deploy install in your machine.
|
||||
@rem Alternatively, you can explicit set the MsDeployPath to the location it is on your machine
|
||||
@rem set MSDeployPath="C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\"
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem if user does not set MsDeployPath environment variable, we will try to retrieve it from registry.
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
if "%MSDeployPath%" == "" (
|
||||
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Microsoft\IIS Extensions\MSDeploy" /s ^| findstr -i "InstallPath"`) do (
|
||||
if /I "%%h" == "InstallPath" (
|
||||
if /I "%%i" == "REG_SZ" (
|
||||
if not "%%j" == "" (
|
||||
if "%%~dpj" == "%%j" (
|
||||
set MSDeployPath=%%j
|
||||
))))))
|
||||
|
||||
if not exist "%MSDeployPath%\msdeploy.exe" (
|
||||
echo. msdeploy.exe is not found on this machine. Please install Web Deploy before execute the script.
|
||||
echo. Please visit http://go.microsoft.com/?linkid=9278654
|
||||
goto :usage
|
||||
)
|
||||
|
||||
set RootPath=%~dp0
|
||||
if /I "%_DeploySetParametersFile%" == "" (
|
||||
set _DeploySetParametersFile=%RootPath%GIM_site.SetParameters.xml
|
||||
)
|
||||
|
||||
set _ArgTestDeploy=
|
||||
set _ArgDestinationType=auto
|
||||
set _ArgComputerName=
|
||||
set _ArgUserName=
|
||||
set _ArgPassword=
|
||||
set _ArgEncryptPassword=
|
||||
set _ArgIncludeAcls=False
|
||||
set _ArgAuthType=
|
||||
set _ArgtempAgent=
|
||||
set _ArgLocalIIS=
|
||||
set _ArgLocalIISVersion=
|
||||
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Simple Parse the arguments
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
:NextArgument
|
||||
set _ArgCurrentOriginal=%1
|
||||
set _ArgCurrent=%~1
|
||||
|
||||
if /I "%_ArgCurrent%" == "" goto :GetStarted
|
||||
if /I "%_ArgCurrent%" == "/T" set _ArgTestDeploy=true&goto :ArgumentOK
|
||||
if /I "%_ArgCurrent%" == "/Y" set _ArgTestDeploy=false&goto :ArgumentOK
|
||||
if /I "%_ArgCurrent%" == "/L" set _ArgLocalIIS=true&goto :ArgumentOK
|
||||
|
||||
set _ArgFlag=%_ArgCurrent:~0,3%
|
||||
set _ArgValue=%_ArgCurrent:~3%
|
||||
|
||||
if /I "%_ArgFlag%" == "/M:" set _ArgComputerName=%_ArgValue%&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/U:" set _ArgUserName=%_ArgValue%&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/P:" set _ArgPassword=%_ArgValue%&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/E:" set _ArgEncryptPassword=%_ArgValue%&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/I:" set _ArgIncludeAcls=%_ArgValue%&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/A:" set _ArgAuthType=%_ArgValue%&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/G:" set _ArgtempAgent=%_ArgValue%&goto :ArgumentOK
|
||||
|
||||
@rem Any addition flags, pass through to the msdeploy
|
||||
set _ArgMsDeployAdditionalFlags=%_ArgMsDeployAdditionalFlags% %_ArgCurrentOriginal%
|
||||
|
||||
:ArgumentOK
|
||||
shift
|
||||
goto :NextArgument
|
||||
|
||||
:GetStarted
|
||||
if /I "%_ArgTestDeploy%" == "" goto :usage
|
||||
if /I "%_ArgDestinationType%" == "" goto :usage
|
||||
|
||||
set _Destination=%_ArgDestinationType%
|
||||
if not "%_ArgComputerName%" == "" set _Destination=%_Destination%,computerName='%_ArgComputerName%'
|
||||
if not "%_ArgUserName%" == "" set _Destination=%_Destination%,userName='%_ArgUserName%'
|
||||
if not "%_ArgPassword%" == "" set _Destination=%_Destination%,password='%_ArgPassword%'
|
||||
if not "%_ArgAuthType%" == "" set _Destination=%_Destination%,authtype='%_ArgAuthType%'
|
||||
if not "%_ArgEncryptPassword%" == "" set _Destination=%_Destination%,encryptPassword='%_ArgEncryptPassword%'
|
||||
if not "%_ArgIncludeAcls%" == "" set _Destination=%_Destination%,includeAcls='%_ArgIncludeAcls%'
|
||||
if not "%_ArgtempAgent%" == "" set _Destination=%_Destination%,tempAgent='%_ArgtempAgent%'
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem add -whatif when -T is specified
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
if /I "%_ArgTestDeploy%" NEQ "false" (
|
||||
set _MsDeployAdditionalFlags=%_MsDeployAdditionalFlags% -whatif
|
||||
)
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem add flags for IISExpress when -L is specified
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
|
||||
if /I "%_ArgLocalIIS%" == "true" (
|
||||
call :SetIISExpressArguments
|
||||
)
|
||||
if /I "%_ArgLocalIIS%" == "true" (
|
||||
if not exist "%IISExpressPath%%IISExpressManifest%" (
|
||||
echo. IISExpress is not found on this machine. Please install through Web Platform Installer before execute the script.
|
||||
echo. or remove /L flag
|
||||
echo. Please visit http://go.microsoft.com/?linkid=9278654
|
||||
goto :usage
|
||||
)
|
||||
if not exist "%IISExpressUserProfileDirectory%" (
|
||||
echo. %IISExpressUserProfileDirectory% is not exists
|
||||
echo. IISExpress is found on the machine. But the user have run IISExpress at least once.
|
||||
echo. Please visit http://go.microsoft.com/?linkid=9278654 for detail
|
||||
goto :usage
|
||||
)
|
||||
|
||||
set _MsDeployAdditionalFlags=%_MsDeployAdditionalFlags% -appHostConfigDir:%IISExpressUserProfileDirectory% -WebServerDir:"%IISExpressPath%" -webServerManifest:"%IISExpressManifest%"
|
||||
)
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem pass through the addition msdeploy.exe Flags
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
set _MsDeployAdditionalFlags=%_MsDeployAdditionalFlags% %_ArgMsDeployAdditionalFlags%
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem check the existence of the package file
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
if not exist "%RootPath%GIM_site.zip" (
|
||||
echo "%RootPath%GIM_site.zip" does not exist.
|
||||
echo This batch file relies on this deploy source file^(s^) in the same folder.
|
||||
goto :usage
|
||||
)
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Execute msdeploy.exe command line
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
call :CheckParameterFile
|
||||
echo. Start executing msdeploy.exe
|
||||
echo -------------------------------------------------------
|
||||
if not exist "%_DeploySetParametersFile%" (
|
||||
echo. "%MSDeployPath%\msdeploy.exe" -source:package='%RootPath%GIM_site.zip' -dest:%_Destination% -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -skip:objectname='dirPath',absolutepath='obj\\SomaschiniUSA\\Package\\PackageTmp\\App_Data$' %_MsDeployAdditionalFlags%
|
||||
"%MSDeployPath%\msdeploy.exe" -source:package='%RootPath%GIM_site.zip' -dest:%_Destination% -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -skip:objectname='dirPath',absolutepath='obj\\SomaschiniUSA\\Package\\PackageTmp\\App_Data$' %_MsDeployAdditionalFlags%
|
||||
) else (
|
||||
echo. "%MSDeployPath%\msdeploy.exe" -source:package='%RootPath%GIM_site.zip' -dest:%_Destination% -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -skip:objectname='dirPath',absolutepath='obj\\SomaschiniUSA\\Package\\PackageTmp\\App_Data$' -setParamFile:"%RootPath%GIM_site.SetParameters.xml" %_MsDeployAdditionalFlags%
|
||||
"%MSDeployPath%\msdeploy.exe" -source:package='%RootPath%GIM_site.zip' -dest:%_Destination% -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -skip:objectname='dirPath',absolutepath='obj\\SomaschiniUSA\\Package\\PackageTmp\\App_Data$' -setParamFile:"%RootPath%GIM_site.SetParameters.xml" %_MsDeployAdditionalFlags%
|
||||
)
|
||||
goto :eof
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Find and set IISExpress argument.
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
:SetIISExpressArguments
|
||||
|
||||
if "%IISExpressPath%" == "" (
|
||||
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Microsoft\IISExpress" /s ^| findstr -i "InstallPath"`) do (
|
||||
if /I "%%h" == "InstallPath" (
|
||||
if /I "%%i" == "REG_SZ" (
|
||||
if not "%%j" == "" (
|
||||
if "%%~dpj" == "%%j" (
|
||||
set IISExpressPath=%%j
|
||||
))))))
|
||||
|
||||
if "%IISExpressPath%" == "" (
|
||||
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\IISExpress" /s ^| findstr -i "InstallPath"`) do (
|
||||
if /I "%%h" == "InstallPath" (
|
||||
if /I "%%i" == "REG_SZ" (
|
||||
if not "%%j" == "" (
|
||||
if "%%~dpj" == "%%j" (
|
||||
set IISExpressPath=%%j
|
||||
))))))
|
||||
|
||||
if "%PersonalDocumentFolder%" == "" (
|
||||
for /F "usebackq tokens=2*" %%i in (`reg query "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Personal`) do (
|
||||
set PersonalDocumentFolder=%%j
|
||||
))
|
||||
|
||||
if "%IISExpressManifest%" == "" (
|
||||
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Microsoft\IISExpress" /s ^| findstr -i "Manifest"`) do (
|
||||
if /I "%%h" == "Manifest" (
|
||||
if /I "%%i" == "REG_SZ" (
|
||||
if not "%%j" == "" (
|
||||
set IISExpressManifest=%%j
|
||||
)))))
|
||||
|
||||
if "%IISExpressManifest%" == "" (
|
||||
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\IISExpress" /s ^| findstr -i "Manifest"`) do (
|
||||
if /I "%%h" == "Manifest" (
|
||||
if /I "%%i" == "REG_SZ" (
|
||||
if not "%%j" == "" (
|
||||
set IISExpressManifest=%%j
|
||||
)))))
|
||||
|
||||
set IISExpressUserProfileDirectory="%PersonalDocumentFolder%\IISExpress\config"
|
||||
|
||||
goto :eof
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem CheckParameterFile -- check if the package's setparamters.xml exists or not
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
:CheckParameterFile
|
||||
echo =========================================================
|
||||
if exist "%_DeploySetParametersFile%" (
|
||||
echo SetParameters from:
|
||||
echo "%_DeploySetParametersFile%"
|
||||
echo You can change IIS Application Name, Physical path, connectionString
|
||||
echo or other deploy parameters in the above file.
|
||||
) else (
|
||||
echo SetParamterFiles does not exist in package location.
|
||||
echo Use package embedded defaultValue to deploy.
|
||||
)
|
||||
echo -------------------------------------------------------
|
||||
goto :eof
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Usage
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
:usage
|
||||
echo =========================================================
|
||||
if not exist "%RootPath%GIM_site.deploy-readme.txt" (
|
||||
echo Usage:%~nx0 [/T^|/Y] [/M:ComputerName] [/U:userName] [/P:password] [/G:tempAgent] [additional msdeploy flags ...]
|
||||
echo Required flags:
|
||||
echo /T Calls msdeploy.exe with the "-whatif" flag, which simulates deployment.
|
||||
echo /Y Calls msdeploy.exe without the "-whatif" flag, which deploys the package to the current machine or destination server
|
||||
echo Optional flags:
|
||||
echo. By Default, this script deploy to the current machine where this script is invoked which will use current user credential without tempAgent.
|
||||
echo. Only pass these arguments when in advance scenario.
|
||||
echo /M: Msdeploy destination name of remote computer or proxy-URL. Default is local.
|
||||
echo /U: Msdeploy destination user name.
|
||||
echo /P: Msdeploy destination password.
|
||||
echo /G: Msdeploy destination tempAgent. True or False. Default is false.
|
||||
echo /A: specifies the type of authentication to be used. The possible values are NTLM and Basic. If the wmsvc provider setting is specified, the default authentication type is Basic
|
||||
otherwise, the default authentication type is NTLM.
|
||||
echo /L: Deploy to Local IISExpress User Instance.
|
||||
|
||||
echo.[additional msdeploy flags]: note: " is required for passing = through command line.
|
||||
echo "-skip:objectName=setAcl" "-skip:objectName=dbFullSql"
|
||||
echo.Alternative environment variable _MsDeployAdditionalFlags is also honored.
|
||||
echo.
|
||||
echo. Please make sure MSDeploy is installed in the box http://go.microsoft.com/?linkid=9278654
|
||||
echo.
|
||||
echo In addition, you can change IIS Application Name, Physical path,
|
||||
echo connectionString and other deploy parameters in the following file:
|
||||
echo "%_DeploySetParametersFile%"
|
||||
echo.
|
||||
echo For more information about this batch file, visit http://go.microsoft.com/fwlink/?LinkID=183544
|
||||
) else (
|
||||
start notepad "%RootPath%GIM_site.deploy-readme.txt"
|
||||
)
|
||||
echo =========================================================
|
||||
goto :eof
|
||||
Binary file not shown.
Reference in New Issue
Block a user