Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flcdrg/powershellwixextension

Wix Extension for running PowerShell
https://github.com/flcdrg/powershellwixextension

c-sharp powershell wix wix-extension

Last synced: 3 months ago
JSON representation

Wix Extension for running PowerShell

Awesome Lists containing this project

README

        

# PowerShellWixExtension

A Wix Extension for running PowerShell scripts

## NuGet Package

[![NuGet](https://img.shields.io/nuget/v/PowerShellWixExtension.svg?maxAge=2592)](https://www.nuget.org/packages/PowerShellWixExtension/) [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/flcdrg/PowerShellWixExtension?style=plastic)](https://ci.appveyor.com/project/DavidGardiner/powershellwixextension)

All ready to add to an existing Wix project. Grab the latest version from https://www.nuget.org/packages/PowerShellWixExtension/

## Getting Started

1. Add a reference to the PowerShellWixExtension.dll in your Wix Setup Project (NuGet package recommended)
2. Add namespace to .wxs file

```xml


```

4. To execute a .ps1 file that ships with the project

```xml

```

5. To execute inline script use

```xml



```

## Notes

### Custom sequences

You can customise when a set of scripts are run by adding your own `` element inside your `` element. eg.

```xml

NOT Installed

```

The four defined actions are:

1. `PowerShellScriptsDeferred`
2. `PowerShellScriptsElevatedDeferred`
3. `PowerShellFilesDeferred`
4. `PowerShellFilesElevatedDeferred`

### Inline Scripts

* Be aware that if your inline script uses square brackets \[ \], you'll need to escape them like [\\[] [\\]] otherwise they will be interpreted as MSI properties (unless that is what you wanted!)