From efe75ee01465e7d8c5af7a1450b2b2502abbdb17 Mon Sep 17 00:00:00 2001 From: David Gardiner Date: Thu, 25 Apr 2024 13:11:01 +0930 Subject: [PATCH] Add README to nuspec --- .github/workflows/main.yml | 9 ++++++--- PowerShellWixExtension.nuspec | 2 ++ README.md | 31 ++++++++++++++++--------------- 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dbf40e9..d41f4f3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,10 +18,13 @@ jobs: Release_html_url: ${{ steps.create_release.outputs.html_url}} Release_upload_url: ${{ steps.create_release.outputs.upload_url}} + permissions: + contents: write + steps: - - uses: GitHubSecurityLab/actions-permissions/monitor@v1 - with: - config: ${{ vars.PERMISSIONS_CONFIG }} + # - uses: GitHubSecurityLab/actions-permissions/monitor@v1 + # with: + # config: ${{ vars.PERMISSIONS_CONFIG }} - name: Checkout uses: actions/checkout@v4 diff --git a/PowerShellWixExtension.nuspec b/PowerShellWixExtension.nuspec index e507a28..29c5639 100644 --- a/PowerShellWixExtension.nuspec +++ b/PowerShellWixExtension.nuspec @@ -14,12 +14,14 @@ false WiX PowerShell MSI Installer WixToolset XML $releasenotes$ + docs\README.md + diff --git a/README.md b/README.md index ec819a9..cbcb022 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,32 @@ -PowerShellWixExtension -====================== +# PowerShellWixExtension A Wix Extension for running PowerShell scripts -NuGet Package -------------- +## 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 ---------------- +## 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 ------ + +## Notes ### Custom sequences -You can customise when a set of scripts are run by adding your own element inside your element. eg. +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`