Skip to content

Commit efe75ee

Browse files
committed
Add README to nuspec
1 parent a23202c commit efe75ee

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

.github/workflows/main.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ jobs:
1818
Release_html_url: ${{ steps.create_release.outputs.html_url}}
1919
Release_upload_url: ${{ steps.create_release.outputs.upload_url}}
2020

21+
permissions:
22+
contents: write
23+
2124
steps:
22-
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
23-
with:
24-
config: ${{ vars.PERMISSIONS_CONFIG }}
25+
# - uses: GitHubSecurityLab/actions-permissions/monitor@v1
26+
# with:
27+
# config: ${{ vars.PERMISSIONS_CONFIG }}
2528

2629
- name: Checkout
2730
uses: actions/checkout@v4

PowerShellWixExtension.nuspec

+2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1515
<tags>WiX PowerShell MSI Installer WixToolset XML</tags>
1616
<releaseNotes>$releasenotes$</releaseNotes>
17+
<readme>docs\README.md</readme>
1718
</metadata>
1819
<files>
1920
<file src="NuGet\content\*.*" target="content" />
2021
<file src="NuGet\tools\**\*.*" target="tools" />
2122
<file src="LICENSE.txt" />
2223
<file src="MSRL-LICENSE.txt" />
24+
<file src="README.md" target="docs\" />
2325
</files>
2426

2527
</package>

README.md

+16-15
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
1-
PowerShellWixExtension
2-
======================
1+
# PowerShellWixExtension
32

43
A Wix Extension for running PowerShell scripts
54

6-
NuGet Package
7-
-------------
5+
## NuGet Package
6+
87
[![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)
98

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

12-
Getting Started
13-
---------------
11+
## Getting Started
12+
1413
1. Add a reference to the PowerShellWixExtension.dll in your Wix Setup Project (NuGet package recommended)
1514
2. Add namespace to .wxs file
16-
```
15+
16+
```xml
1717
<?xml version="1.0" encoding="UTF-8"?>
1818
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:powershell="http://schemas.gardiner.net.au/PowerShellWixExtensionSchema">
1919
```
2020

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

23-
```
23+
```xml
2424
<powershell:File Id="PSFile1" File="[#TestPs1]" Arguments="&quot;First Argument&quot; 2"/>
2525
```
2626

2727
5. To execute inline script use
28-
```
28+
29+
```xml
2930
<powershell:Script Id="Script2">
3031
<![CDATA[
3132
# Write-Host "Number 2";
@@ -39,21 +40,21 @@ Getting Started
3940
]]>
4041
</powershell:Script>
4142
```
42-
43-
Notes
44-
-----
43+
44+
## Notes
4545

4646
### Custom sequences
4747

48-
You can customise when a set of scripts are run by adding your own <Custom /> element inside your <InstallExecuteSequence /> element. eg.
48+
You can customise when a set of scripts are run by adding your own `<Custom />` element inside your `<InstallExecuteSequence />` element. eg.
4949

50-
```
50+
```xml
5151
<InstallExecuteSequence>
5252
<Custom Action="PowerShellScriptsDeferred" After="RegisterUser">NOT Installed</Custom>
5353
</InstallExecuteSequence>
54-
````
54+
```
5555

5656
The four defined actions are:
57+
5758
1. `PowerShellScriptsDeferred`
5859
2. `PowerShellScriptsElevatedDeferred`
5960
3. `PowerShellFilesDeferred`

0 commit comments

Comments
 (0)