How to fix ICE57.Per-User installation

后端 未结 2 782
既然无缘
既然无缘 2021-01-18 12:56

Our application writes some settings to the registry into the HKCU hive during runtime. I want to delete this settings during uninstall. Here is code:

  <         


        
2条回答
  •  粉色の甜心
    2021-01-18 13:15

    I've got an answer on wix-users mailing list. Here is Peter Shirtcliffe's answer:

    ProgramFiles is a per-machine location. You can only access it when elevated. If you want to install program code in a per-user installation, you should install to %LocalAppData%\Programs.

    Remove the condition entirely. The component will be installed but will have no effect until you uninstall the application. At that point, when the component is removed, the registrykey will be removed also.

提交回复
热议问题