Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wix v4 #42

Open
Steve0212a opened this issue Apr 11, 2023 · 2 comments
Open

Wix v4 #42

Steve0212a opened this issue Apr 11, 2023 · 2 comments

Comments

@Steve0212a
Copy link

I have tried to use your extension with the newly released Wix v4 (https://wixtoolset.org/docs/releasenotes/), but I am getting compile errors.

I upgraded a working v3 project, but when I try to compile the MSI in v4, I get the following error.
error WIX0200: The Fragment element contains an unhandled extension element 'Script'. Please ensure that the extension for elements in the 'http://schemas.gardiner.net.au/PowerShellWixExtensionSchema' namespace has been provided.

Here is my fragment (with a few things blanked out)

	<Fragment>
		<powershell:Script Id="xxx" Elevated="yes">
			<![CDATA[Get-ChildItem Cert:\LocalMachine\My | Where-Object {$_.Subject -match 'xxx' } | Remove-Item]]>
		</powershell:Script>

		...

	</Fragment>

Do you plan on supporting Wix v4?

thx

@flcdrg
Copy link
Owner

flcdrg commented Apr 11, 2023

Yes, it would be good to support v4. I'd welcome any contributions towards this.

@Steve0212a
Copy link
Author

I do not have the expertise, but hopefully someone can help.

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants