Git Product home page Git Product logo

providerhostedappinstaller's Introduction

ProviderHostedAppInstaller

SharePoint Provider Hosted App Installer using PowerShell It will install a SharePoint Provider Hosted App which was build using Visual Studio, the folder structure could look like this:

Folder Structure

Meeting Manager Outlook Add-in.xml Solutions2Share.MeetingManager.Solutions2Share.MeetingManager.app Solutions2Share.Solutions.MeetingManager.OutlookWeb.deploy-readme.txt Solutions2Share.Solutions.MeetingManager.OutlookWeb.deploy.cmd Solutions2Share.Solutions.MeetingManager.OutlookWeb.SetParameters.xml Solutions2Share.Solutions.MeetingManager.OutlookWeb.SourceManifest.xml Solutions2Share.Solutions.MeetingManager.OutlookWeb.zip Solutions2Share.Solutions.MeetingManagerInvitationsWeb.deploy-readme.txt Solutions2Share.Solutions.MeetingManagerInvitationsWeb.deploy.cmd Solutions2Share.Solutions.MeetingManagerInvitationsWeb.SetParameters.xml Solutions2Share.Solutions.MeetingManagerInvitationsWeb.SourceManifest.xml Solutions2Share.Solutions.MeetingManagerInvitationsWeb.zip Solutions2Share.Solutions.MeetingManagerWeb.deploy-readme.txt Solutions2Share.Solutions.MeetingManagerWeb.deploy.cmd Solutions2Share.Solutions.MeetingManagerWeb.SetParameters.xml Solutions2Share.Solutions.MeetingManagerWeb.SourceManifest.xml Solutions2Share.Solutions.MeetingManagerWeb.zip

Just add this PowerShell to the same directory: Install-ProviderHostedApp-Config.xml Install-ProviderHostedApp.ps1 WebDeploy_2_10_amd64_en-US.msi

Customize XML

Please customize the XML file which includes

  • ServiceAccount, the account the app will run with. A domain account will be enough: contoso\meetingmanager
  • The FQDN DNS name where the App will be available later on. Make sure it has been already created: meetingmanager.contoso.com
  • InstallationDirectory: C:\Program Files\Solutions2Share\Meeting Manager
  • AllowOAuthoverHTT =true
  • SPSite: https://portal2016.contoso.com
  • ClientID
  • DBServer including instance: Contoso-SQL\SP2016
  • DBServerPort and Port: 1433
  • DBPrefix Database name prefix: PRD_App_
  • Databasename Type Valid Type = Generic or for Solutions2Share MM, MMHF, IM, IMHF
  • Databasename Name="MeetingManager" Type="MM"
  • Databasename Name="MeetingManagerHangfire" Type="MMHF"
  • Databasename Name="InvitationManagerConfig" Type="IM"
  • Databasename Name="InvitationManagerHangfire" Type="IMHF"

Run Installation

Use PowerShell with admin priviliges. Make sure that you've customized the XML in the previous step PS D:\ProviderHostedAppInstaller\ .\Install-ProviderHostedApp.ps1 -InputFile "D:\ProviderHostedAppInstaller\Install-ProviderHostedApp-Config.xml"

More

Please also see this: https://www.hobmaier.net/2018/01/sharepoint-provider-hosted-app-installer.html

providerhostedappinstaller's People

Contributors

hobmaier avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

providerhostedappinstaller's Issues

Change IIS Authentication

Make sure to disable anonymous authentication
Enable Windows Authentication

This will be optional as this could be part of the installation source (web.config)

SelfSigned Certificate does not work with SharePoint

The way how PowerShell cmdlet New-SelfSignedCertificate doesn't work for the App Trust.
I thought I'll create a working Self-Signed Certificate and create it with the command above, but it doesn't work either. So looking for an alternative.

Bugs

  • Database Prefix not applied correctly
  • Error in Register-SPAppPrincipal, some ";" characters too much
  • Error in URL if using Subwebs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.