PowerShell Install of Web Deploy 3.6 for Hosting Servers - powershell

I need to install Web Deploy 3.6 for Hosting Servers. Normally you would use the Web Platform Installer, but I need to deploy this using PowerShell. I have found the download for Web Deploy 3.6 and can use PowerShell to install the .MSI of that, but that is different that Web Deploy 3.6 for Hosting Servers.
Does anyone know where I can download Web Deploy 3.6 for Hosting Servers or know how to use PowerShell to install via the Web Platform Installer?

I have located the answer. The Web Platform Installer has an API so you can call the .exe with PowerShell akin to this:
& "C:\Program Files\Microsoft\Web Platform Installer\WebPICMD.exe" /List /ListOption:Available
There are install options as noted here: https://learn.microsoft.com/en-us/iis/install/web-platform-installer/web-platform-installer-v4-command-line-webpicmdexe-rtw-release

Related

Powershell - Install an application

How would I run a program installer (in C:\Downloads) using a Powershell V1 script?
I do not have control over the Powershell version so please do not ask me to update to newer version.
If I do it manually, there will be a few options for me to choose before installing. I also have to specify the location for the application.
If I have to do it via scripts, how do I set which options to choose and specify the location?
I have searched the application support page and they do not have anything I need for the installation of the software via scripts.
I am not a very skilled person when it comes to scripting as I just started out months ago.
Do you know about Chocolatey? It's a Windows package manager that allows you to install Windows applications using CLI.
To install Chrome for example:
choco install googlechrome
You can find all the available packages here.

install Sitecore update packages with Powershell

We create Sitecore .update packages using TDS and Visual Studio. The update packages can be installed using /sitecore/admin/updateinstallationwizard.aspx. Is there a way to install these packages using Powershell?
Thanks
It depends on the tooling you want to use.
If you can work with Sitecore PowerShell Extensions, it has a convenient Install-UpdatePackage cmdlet (not the Install-Package - this one works with regular Sitecore packages exclusively) that can deploy them in your environment. You can read more about it in our GitBook
You can also create those using the Get-UpdatePackageDiff and Export-UpdatePackage if you do not have access to TDS.
Now to do this on the server directly that's just something that you would run from the Web UI using SPE ISE, but to upload those from your dev environment you can utilise the SPE Remoting again as described in this Gitbook page
If you don't have or want to have SPE deployed on your server you can utilise Sitecore Ship and automate that in Windows PowerShell without the use of Sitecore PowerShell Extensions. The functionality of Sitecore Ship module is limited to doing the task of deploying Sitecore Update packages but this might be just what you want.
You can use for Sitecore Powershell command:
Install-Package [[-Path] ] [-InstallMode ] [-MergeMode ]
More details can be found here:
https://sitecorepowershell.gitbooks.io/sitecore-powershell-extensions/content/appendix/commands/Install-Package.html

How to set up UCMA 4 development environment without interfering with the working Lync Server?

I am trying to install UCMA 4.0 SDK and it looks like one of the prerequisites is a Lync Server 2013 (Bootstrapper Prerequisites Installer Package, Core Components).
Is this supposed to be a fully configured server ? I have a running Lync Server on the Network... on a server, hovewer, I don't want to develop on it. Will the Lync Server installed during installation of the SDK be just a couple of required libs and stuff or is it supposed to be a working Server, i.e. will it interfere with the running Server in the Network ?
Is there maybe a how-to-setup-ucma-dev-environment-for-noobs tutorial out there ?
No you do not need a full Lync/Skype environment to install the UCMA SDK and develop locally, however will need to have a properly configured application server that is registered with your Lync environment to be able to run your UCMA application.
And no the SDK will not deploy Lync.
To be honest to develop a UCMA app all you really need is the Microsoft.RTc.Collaboration.dll usually found in C:\Program Files\Microsoft UCMA 4.0\SDK\Core\Bin once the SDK is installed.
If you are going to run as development server, install visual studio first.
Run UCMA 4.0
Install Core components by navigating to the following path and run OCSCore.msi
C:\ProgramData\Microsoft\Lync Server 2013\Deployment\cache\4.0.7577.0\Setup\
After that, go the following path (Cd C:\Program Files\Microsoft Lync Server 2013\Deployment) and run bootstrapper from command prompt>>
Bootstrapper.exe /BootstrapLocalMgmt /MinCache
After all the steps, you can start provisioning for your application.

IIS cookbook to install web site

While running chef-client for AN IIS installation to install a new web site, I am getting this error: "Unable to find package iis_site." How does the iis_site resource work?
you have to add depends "windows" to your metadata.rb file
you also have to download windows cookbook and dependencies, and upload it to your org.
knife cookbook site download windows
knife cookbook upload windows
Using the depends "windows" will allow you to use various resources that come from the windows cookbook, including the IIS_SITE resource.

TFS 2010 - Nightly Builds of WiX MSI for WebApplication/Windows Service and install to web server

Can you please enlighten me on my task?
My task is to create a nightly builds of MSI (done in WiX) and install it to our web server using powershell.
TFSBuild server build an MSI
Run Powershell to uninstall and install the newly build MSI.
Run Powershell to Start the windows service.
The WiX MSI contains WindowsService and a Web Application.
Below are list of what i have done so far:
Solution.sln : Configuration Manager and "x86|debug" (check all the files that needs to be built '.wixproj' already checked)
Created a build definition and set "x86|debug" for configurations to build and set projects to build is my solution file.
but after the build has completed, there is no MSI files on the binaries build folder on the build server. :(
Thanks in advance.
Few pointers:
Have you installed Wix on the buildserver?
Which version of Team Build are you using? 2010 has the preference here as the tooling has progressed a lot since 2008.
Did you configure to run msbuild in auto or x86 mode (auto can result in 64-bit which has some issues with the latest stable version of wix) link link
Is your build agent running on a 64 bit server? If so, you either need to run the build agent under an administrative account or do some mucking around in the registry to fix issues with Wix. link
To install the build using Powershell, I personally prefer TFSDeployer, which can monitor your build output and trigger powershell scripts based on the build outcome. It takes away the deployment responsibility from the build server and saves a lot of headaches around security and account configurations.