• Stars
    star
    141
  • Rank 258,916 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Windows Installer PowerShell Module

Windows Installer PowerShell Module

Build Status: develop GitHub Release: Latest GitHub Releases: All PowerShell Gallery

Exposes Windows Installer functionality to PowerShell, providing means to query installed product and patch information, and to query views on packages.

Description

PowerShell is a powerful command shell that pipes objects - not just text. Because of this ability, you can string practically unrelated commands together in many different ways to work on different types of objects, all built on .NET. You can use all the properties and methods of those objects passed through the pipeline instead of being limited by the text sent to you as with traditional command shells.

This Windows Installer module for PowerShell provides cmdlets ("command-lets") - similar to functions - to query package states, patches registered and applied to products, and more. You can use it to query Windows Installer products and patches installed on your system.

get-msiproductinfo | where { $_.Name -like '*Visual Studio*' }

You can even use it to determine which products installed a particular file on your system.

get-msicomponentinfo `
    | where { $_.Path -like 'C:\Program Files\*\Common7\IDE\devenv.exe'} `
    | get-msiproductinfo

You can also install, repair, and uninstall products and patches complete with progress information, and warnings and errors direct to the pipeline.

install-msiproduct .\example.msi -destination (join-path $env:ProgramFiles Example)

Installation

Starting with 3.0, the easiest way to install the module with Windows 10 or the Windows Management Framework 5.0 or newer is by using the PackageManagement module.

# Specifying the provider is recommended, though may be "psgallery" on Windows 10 RTM.
install-package msi -provider PowerShellGet

You can also download the NuGet and Windows Installer packages directly from Releases.

License

The Windows Installer PowerShell module is licensed under the MIT License.

More Repositories

1

gh-label

GitHub CLI extension for label management
Go
50
star
2

vscode-guid

Insert GUIDs in different formats directly into the editor
TypeScript
25
star
3

gh-projects

GitHub CLI extension to manage GitHub Projects (V2).
Go
16
star
4

vim-msbuild

Vim plugin for MSBuild project support
Vim Script
12
star
5

StringTokenizer

C#
7
star
6

gh-template

GitHub CLI extension to clone and format a template repository. Create new repos from templates to get up and running quickly e.g., `gh template clone my-crate --template heaths/template-rustlang`.
Go
7
star
7

gh-users

GitHub CLI extension to list users for a repository
Shell
6
star
8

sdb2xml

Shim Database Converter
C#
6
star
9

Caffeine

Keeps your display or machine awake, and prevents or suspends non-critical shutdowns.
C#
5
star
10

RestartManager

Managed Windows Restart Manager API
C#
5
star
11

go-vssetup

Go bindings for Visual Studio Setup Configuration
Go
3
star
12

gpx

PowerShell module for working with GPS Exchange (GPX) files.
PowerShell
3
star
13

azure-samples-kek

Azure SDK sample for client-side encryption and decryption of blobs
C#
2
star
14

profile

PowerShell Profile
PowerShell
2
star
15

msi-wasm

Open MSI in browser using WASM sample
Rust
2
star
16

vssetup-docker

Base Docker image for debugging and testing Visual Studio installer queries
Dockerfile
2
star
17

msitrace

Trace Windows Installer installations
Rust
2
star
18

heaths.github.io

Heath Stewart's Blog
HTML
2
star
19

gh-codeowners

GitHub CLI extension to lint CODEOWNERS
Go
2
star
20

go-console

Go console APIs provide a testable abstraction over IO streams and support for color schemes.
Go
1
star
21

dotnet-certs

.NET global tool to manage certificates.
C#
1
star
22

vssetup-rs

Utility classes for enumerating Microsoft Visual Studio setup instances
Rust
1
star
23

KeyVaultProxy

Sample showing how to use an HttpPipelinePolicy to proxy secrets, keys, and certificates from Azure Key Vault.
C#
1
star
24

CustomProperties

Shims system property stores to provide custom and standard properties for system file types
C++
1
star
25

vscode-msi

Windows Installer Package Viewer for Visual Studio Code
TypeScript
1
star
26

gh-merge-json

GitHub CLI extension to merge JSON responses to return valid JSON when passing --paginate to gh api.
Go
1
star
27

msica-rs

Rust for Windows Installer Custom Actions
Rust
1
star
28

azure-sdk-for-net

Microsoft Azure SDK for .NET
1
star