File tree 3 files changed +24
-18
lines changed
3 files changed +24
-18
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,13 @@ jobs:
18
18
Release_html_url : ${{ steps.create_release.outputs.html_url}}
19
19
Release_upload_url : ${{ steps.create_release.outputs.upload_url}}
20
20
21
+ permissions :
22
+ contents : write
23
+
21
24
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 }}
25
28
26
29
- name : Checkout
27
30
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 14
14
<requireLicenseAcceptance >false</requireLicenseAcceptance >
15
15
<tags >WiX PowerShell MSI Installer WixToolset XML</tags >
16
16
<releaseNotes >$releasenotes$</releaseNotes >
17
+ <readme >docs\README.md</readme >
17
18
</metadata >
18
19
<files >
19
20
<file src =" NuGet\content\*.*" target =" content" />
20
21
<file src =" NuGet\tools\**\*.*" target =" tools" />
21
22
<file src =" LICENSE.txt" />
22
23
<file src =" MSRL-LICENSE.txt" />
24
+ <file src =" README.md" target =" docs\" />
23
25
</files >
24
26
25
27
</package >
Original file line number Diff line number Diff line change 1
- PowerShellWixExtension
2
- ======================
1
+ # PowerShellWixExtension
3
2
4
3
A Wix Extension for running PowerShell scripts
5
4
6
- NuGet Package
7
- -------------
5
+ ## NuGet Package
6
+
8
7
[ ![ 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 )
9
8
10
9
All ready to add to an existing Wix project. Grab the latest version from https://www.nuget.org/packages/PowerShellWixExtension/
11
10
12
- Getting Started
13
- ---------------
11
+ ## Getting Started
12
+
14
13
1 . Add a reference to the PowerShellWixExtension.dll in your Wix Setup Project (NuGet package recommended)
15
14
2 . Add namespace to .wxs file
16
- ```
15
+
16
+ ``` xml
17
17
<?xml version =" 1.0" encoding =" UTF-8" ?>
18
18
<Wix xmlns =" http://schemas.microsoft.com/wix/2006/wi" xmlns : powershell =" http://schemas.gardiner.net.au/PowerShellWixExtensionSchema" >
19
19
```
20
20
21
21
4 . To execute a .ps1 file that ships with the project
22
22
23
- ```
23
+ ``` xml
24
24
<powershell : File Id =" PSFile1" File =" [#TestPs1]" Arguments =" " First Argument" 2" />
25
25
```
26
26
27
27
5 . To execute inline script use
28
- ```
28
+
29
+ ``` xml
29
30
<powershell : Script Id =" Script2" >
30
31
<![CDATA[
31
32
# Write-Host "Number 2";
@@ -39,21 +40,21 @@ Getting Started
39
40
]]>
40
41
</powershell : Script >
41
42
```
42
-
43
- Notes
44
- -----
43
+
44
+ ## Notes
45
45
46
46
### Custom sequences
47
47
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.
49
49
50
- ```
50
+ ``` xml
51
51
<InstallExecuteSequence >
52
52
<Custom Action =" PowerShellScriptsDeferred" After =" RegisterUser" >NOT Installed</Custom >
53
53
</InstallExecuteSequence >
54
- ````
54
+ ```
55
55
56
56
The four defined actions are:
57
+
57
58
1 . ` PowerShellScriptsDeferred `
58
59
2 . ` PowerShellScriptsElevatedDeferred `
59
60
3 . ` PowerShellFilesDeferred `
You can’t perform that action at this time.
0 commit comments