Skip to content

ArpEntry fails to uninstall when UninstallString uses rundll32.exe #9025

Open
wixtoolset/wix
#632
@nirbar

Description

@nirbar

WiX Version

5

.NET or MSBuild or Visual Studio Version

n/a

HeatWave Version

n/a

Windows Version

n/a

Repro Repo

No response

Repro Steps

  1. Author a bundle that installs NVIDIA CUDA:
    <?define CUDA_VERSION=12.8?>
    <Chain ParallelCache="yes" DisableSystemRestore="yes">
      <ExePackage Id="CUDA" SourceFile="cuda_12.8.1_windows_network.exe"
                  InstallArguments='-s -n nvrtc_12.8'>
        <ArpEntry Id='{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_CUDAToolkit_$(CUDA_VERSION)' Version='$(CUDA_VERSION)' Win64='yes' AdditionalUninstallArguments=" -silent -deviceinitiated" UseUninstallString="yes"/>
      </ExePackage>
    </Chain>

[WiX5-Bundle-with-CUDA.zip](https://github.com/user-attachments/files/19620718/WiX5-Bundle-with-CUDA.zip)

  1. Install the bundle
  2. Uninstall the bundle

Actual Result

Uninstall fails with "Access Denied" error
Log file says:

[0558:03FC][2025-04-06T02:53:53]e000: Error 0x80070005: Failed to configure per-machine EXE package.
[0CE8:13EC][2025-04-06T02:53:53]i000: The QuietUninstallString executable path is not in a secure location: C:\Windows\SysWOW64\RunDll32.EXE
[0CE8:13EC][2025-04-06T02:53:53]e000: Error 0x80070005: Failed to execute EXE package.
[0558:03FC][2025-04-06T02:53:53]i319: Applied execute package: CUDA, result: 0x80070005, restart: None
[0558:03FC][2025-04-06T02:53:53]e000: Error 0x80070005: Failed to execute EXE package.

Expected Result

Uninstall successfully

Acknowledgements

  • I acknowledge that this is a fully completed bug report. It is not a question or attempt to get help debugging my issue (because those should be sent to Discussions).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions