Will

Slides:



Advertisements
Similar presentations
Installation/Setup creation tools Stuart Eggerton Canberra ADUG Meeting 12 April 2005.
Advertisements

EIONET Training Beginners Zope Course Miruna Bădescu Finsiel Romania Copenhagen, 27 October 2003.
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia.
.NET Session Prepared By : Manu Sharma IBE Team. Topics Types of.NET Applications.NET Framework CLR Garbage Collection Importance of.NET.
Building Localized Applications with Microsoft.NET Framework and Visual Studio.NET Achim Ruopp International Program Manager Microsoft Corp.
Open XML SDK for Microsoft Office
Authoring Languages and Web Authoring Software 4.01 Examine web page development and design.
Why.NET? Various languages struggling to interoperate with each other Developers undergoing huge learning curves to shift from one language to another.
Advantage Data Dictionary. agenda Creating and Managing Data Dictionaries –Tables, Indexes, Fields, and Triggers –Defining Referential Integrity –Defining.
Jason Himmelstein, MVP Senior Technical Director,
Introducing the Common Language Runtime for.NET. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution.
Introducing the Common Language Runtime. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution engine.
Becky Bertram SharePoint MVP
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Virtual techdays INDIA │ august 2010 Building ASP.NET applications using SQL Server Compact Chaitanya Solapurkar │ Partner Technical Consultant,
OnBase Module Deployment
OFC302 Building Smart Document Solutions in Word & Excel Martin Sawicki Lead Program Manager.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)
ITE 370. Deployment Deployment is the process used to distribute a finished application (or component) to be installed on other computers.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
Win & Web App Installers with WiX
Lecture Roger Sutton CO530 Automation Tools 5: Class Libraries and Assemblies 1.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
CIS NET Applications1 Chapter 2 –.NET Component- Oriented Programming Essentials.
Understanding Code Compilation and Deployment Lesson 4.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
Importing outside DLLs into.Net platform and using them By Anupama Atmakur.
Nilotpal Bhattacharya Partner Technical Consultant| Microsoft.
IE 411/511: Visual Programming for Industrial Applications
Section 1: Introducing Group Policy What Is Group Policy? Group Policy Scenarios New Group Policy Features Introduced with Windows Server 2008 and Windows.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Scalable Game Development William Roberts Senior Game Engineer
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.
Dudok de Wit David.  Documents management in a deskless company  SharePoint Online as a solution  Redesigning the documentary organization  Interoperability.
Office Business Applications Workshop Defining Business Process and Workflows.
What’s New in SharePoint 2010 SharePoint 2010 Development Primer New Developer Tools for SharePoint 2010 SharePoint 2010 Integration with PowerShell.
Dissecting the Windows CE Build Process James Y. Wilson Principal Engineer, Windows Embedded MVP CalAmp, Inc. James Y. Wilson Principal Engineer, Windows.
ADD-IN EXPRESS World-class Office extensions with little coding.
GLite build and integration system Building and Packaging Robert HARAKALY
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida 1 Application Deployment Stephen W. Meeley.
Plug-in Architectures Presented by Truc Nguyen. What’s a plug-in? “a type of program that tightly integrates with a larger application to add a special.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Microsoft ® Official Course Module 6 Managing Software Distribution and Deployment by Using Packages and Programs.
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
Eliminate Team Build Headaches with Unit Tests, WiX and Virtualization Benjamin Day
Win & Web App Installers with WiX Benjamin Day Level: Intermediate.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Packaging and Deploying Windows Applications
CST 1101 Problem Solving Using Computers
CMIT100 Chapter 14 - Programming.
Outline SOAP and Web Services in relation to Distributed Objects
Visual Studio Tools for Office 2005
CE-105 Spring 2007 Engr. Faisal ur Rehman
Deploying and Configuring SSIS Packages
Outline SOAP and Web Services in relation to Distributed Objects
Getting Started with the Data ONTAP PowerShell Toolkit
.NET and .NET Core 2. .NET Runtimes Pan Wuming 2017.
Building Cross Platform PowerShell Modules
Module 1: Getting Started
09 | Script and manifest modules
Chapter 10: Supporting and Maintaining Desktop Applications
Module 11: Application Settings and Deployment
CRM 2016 Solutions and Package Deployer
Grow Your Script From Simple to Module
Presentation transcript:

Will

Who am I? Started coding and scripting in C, C++, BASH Started in IT in 2000 while co-oping in college. Korn Shell and PERL on AIX Written Production solutions in PERL,KSH,BASH, and VB Script Started with PowerShell v1 in Lead group from 2 out of 8 to 8 out of 11 engineers using PowerShell.

What is a Module? Collection of functionalities. Common nouns in cmdlets and functions. Members are not restricted like with snap-ins. Four types of modules Binary (.dlls).NET compiled code Script (.psm1) collection of advanced functions Manifest (.psd1) no root module, nested modules Dynamic (non persistent) uses New-Module

Structure of a Script Module Files Script module file.psm1 –required Manifest file.psd1 Script files.ps1 Format files.format.ps1xml Help files.txt(v2/v3).cab/.xml(v3) Application libraries.dll Script module file Member definitions or execution of other script files Manifest file Contains script modules file to execute Required components: PowerShell, CLR versions, other modules Metadata: Author, Description Other components to load

One file vs. Multiple files One File Multiple Files Pros Fewer files to manage No/Fewer updates to manifest Easier to deploy Cons Distributed development is hard Larger the module, the bigger the file Pros Work in smaller units No reloading module when changing single function Easier distributed development Cons More files to maintain Update manifest and script module every time you add member

One file vs. Multiple files

Where to Install PSMODULEPATH C:\Windows\System32\WindowsPowerShell\v1.0\Module s C:\Users\(username)\Documents\WindowsPowerShell\M odules Your path Non-Shared: Program files\CompanyName\Application\Module Shared: Program Files\Common Files\Module Where it makes sense C:\Program Files (x86)\CompanyName\PSModules

Lesson Learned Be consistent. Function names, parameter names. Common parameters are used the same way. If it’s dangerous, assume that instructions/help won’t be read. Set defaults to help with control execution. -WhatIf is your friend Borrow from the community We have a large, enthusiastic community; and they’re really smart

Deployment Options XCOPY,ZIP MSI Pros Copy the folder to the location. Zip the entire folder for distribution. No special tools required. Cons Deployment may require scripting. Version requires inspecting the contents. Can’t update PSMODULEPATH. Pros Single installation file. Can create folder path. Can perform other actions. Silent install allows for easier deployments. Versioning maintained by Windows Installer. Cons Requires tools and knowledge to build MSI.

Building MSIs Free and paid tools available. Visual Studio-$$ Includes two options to build MSIs with wizards, but limited flexibility. Option to buy additional tools. WIX – free Flexible and powerful, but can have a steep learning curve. Can integrate with VS.

WIX

Resources URLs Writing PowerShell Modules us/library/windows/desktop/dd878310(v=vs.85).aspx us/library/windows/desktop/dd878310(v=vs.85).aspx WIX toolset