{"id":17022460,"url":"https://github.com/flcdrg/powershellwixextension","last_synced_at":"2025-08-18T20:35:04.528Z","repository":{"id":17379905,"uuid":"20151884","full_name":"flcdrg/PowerShellWixExtension","owner":"flcdrg","description":"Wix Extension for running PowerShell","archived":false,"fork":false,"pushed_at":"2024-04-25T08:11:58.000Z","size":1791,"stargazers_count":28,"open_issues_count":8,"forks_count":12,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-05-01T19:47:33.829Z","etag":null,"topics":["c-sharp","powershell","wix","wix-extension"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flcdrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-05-25T10:29:22.000Z","updated_at":"2024-06-19T22:51:32.021Z","dependencies_parsed_at":"2022-09-07T18:43:35.016Z","dependency_job_id":"b54f67b4-9864-428f-a75a-69834287806e","html_url":"https://github.com/flcdrg/PowerShellWixExtension","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flcdrg%2FPowerShellWixExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flcdrg%2FPowerShellWixExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flcdrg%2FPowerShellWixExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flcdrg%2FPowerShellWixExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flcdrg","download_url":"https://codeload.github.com/flcdrg/PowerShellWixExtension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858016,"owners_count":20359261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","powershell","wix","wix-extension"],"created_at":"2024-10-14T07:10:23.428Z","updated_at":"2025-03-17T09:31:27.511Z","avatar_url":"https://github.com/flcdrg.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerShellWixExtension\n\nA Wix Extension for running PowerShell scripts\n\n## NuGet Package\n\n[![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)\n\nAll ready to add to an existing Wix project. Grab the latest version from https://www.nuget.org/packages/PowerShellWixExtension/\n\n## Getting Started\n\n1. Add a reference to the PowerShellWixExtension.dll in your Wix Setup Project (NuGet package recommended)\n2. Add namespace to .wxs file\n\n```xml\n    \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n    \u003cWix xmlns=\"http://schemas.microsoft.com/wix/2006/wi\" xmlns:powershell=\"http://schemas.gardiner.net.au/PowerShellWixExtensionSchema\"\u003e\n```\n\n4. To execute a .ps1 file that ships with the project\n\n```xml\n   \u003cpowershell:File Id=\"PSFile1\" File=\"[#TestPs1]\" Arguments=\"\u0026quot;First Argument\u0026quot; 2\"/\u003e\n```\n\n5. To execute inline script use\n\n```xml\n    \u003cpowershell:Script Id=\"Script2\"\u003e\n      \u003c![CDATA[\n        # Write-Host \"Number 2\";\n\n        for ($i = 1; $i -le 100; $i++) \n        {\n          Write-Progress -Activity \"Activity\" -Status \"Status $i% complete\" -CurrentOperation \"Operation $i\" -PercentComplete $i\n          Start-Sleep -Milliseconds 5 \n        }\n\n        ]]\u003e\n    \u003c/powershell:Script\u003e\n```\n\n## Notes\n\n### Custom sequences\n\nYou can customise when a set of scripts are run by adding your own `\u003cCustom /\u003e` element inside your `\u003cInstallExecuteSequence /\u003e` element. eg.\n\n```xml\n      \u003cInstallExecuteSequence\u003e\n        \u003cCustom Action=\"PowerShellScriptsDeferred\" After=\"RegisterUser\"\u003eNOT Installed\u003c/Custom\u003e\n      \u003c/InstallExecuteSequence\u003e\n```\n\nThe four defined actions are:\n\n1. `PowerShellScriptsDeferred`\n2. `PowerShellScriptsElevatedDeferred`\n3. `PowerShellFilesDeferred`\n4. `PowerShellFilesElevatedDeferred`\n\n### Inline Scripts\n\n* 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!)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflcdrg%2Fpowershellwixextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflcdrg%2Fpowershellwixextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflcdrg%2Fpowershellwixextension/lists"}