1

After this was fixed: https://github.com/wixtoolset/issues/issues/7139

I pulled the github source and compiled it, but still get an error for the Custom Actions regarding the Binary Reference:

error WIX0094: The identifier 'Binary:Wix4UtilCA_X86' could not be found. Ensure you have typed the reference correctly and that all the necessary inputs are provided to the linker.

This is the XML Code:

        <CustomAction Id="RegisterPSCmd" Property="RegisterPowerShellProperty" Value="&quot;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe&quot; -NoLogo -NonInteractive -InputFormat None -NoProfile -File &quot;C:\Windows\PCache\WSA0727-Notepad++_8.4.1_G\Deploy-Application.ps1&quot; &quot;-DeploymentType Install&quot;" Execute="immediate" />

        <CustomAction Id="RegisterPSCmdUninstall" Property="RegisterPowerShellPropertyUninstall" Value="&quot;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe&quot; -NoLogo -NonInteractive -InputFormat None -NoProfile -File &quot;C:\Windows\PCache\WSA0727-Notepad++_8.4.1_G\Deploy-Application.ps1&quot; &quot;-DeploymentType Uninstall&quot;" Execute="immediate" />

        <CustomAction Id="RegisterPowerShellProperty" DllEntry="WixQuietExec64" Execute="deferred" Return="check" Impersonate="no" BinaryRef="Wix4UtilCA_X86" />

        <CustomAction Id="RegisterPowerShellPropertyUninstall" DllEntry="WixQuietExec64" Execute="deferred" Return="check" Impersonate="no" BinaryRef="Wix4UtilCA_X86" />

I tried to build with "-ext WixUtilExtension.dll" but it said that it doesn't find the DLL.

TylerH
  • 20,799
  • 66
  • 75
  • 101

1 Answers1

1

WixUtilExtension.dll has been replaced by NuGet package WixToolset.Util.wixext in WiX v4. Use a PackageReference with an explicit Version.

Bob Arnson
  • 21,377
  • 2
  • 40
  • 47