Wix installer upgrade with same “upgrade code” ID shows privilege error prompt

后端 未结 1 448
广开言路
广开言路 2021-01-23 12:28

I have developed the windows service and created the MSI installer using Wix toolset, then distributed to users. it is working as expected. Let\'s name

相关标签:
1条回答
  • 2021-01-23 12:40

    Configuration Issue: OK, now that I think I have read this properly I think you have a basic service configuration issue that prevents start of the service. The upgrade process probably removes something it shouldn't or it leaves the configuration files in an inconsistent state.

    In other words: Something is likely wrong in the service configuration files after upgrade scenarios - or something is missing - in the selection of files or registry entries.

    Most Likely: I think your service binary just isn't the right version after upgrade. Check the version number after upgrade. I bet you will find the version 1 service binary.

    Tests: There are a few tests I would try:

    • Logging: First I would follow the suggestions here: https://www.coretechnologies.com/WindowsServices/FAQ.html#DiagnoseProblems
    • Folder Diff: If the above revealed nothing, try using a clean virtual to install the first version and then run the upgrade. Copy the installation folder somewhere - now revert virtual and install version two directly (without version 1 first). If the service starts now after version 2 is installed, diff the resulting folders using a diff tool of caliber such as Beyond Compare.
    • Early REP: If you haven't already - you can try to move RemoveExistingProducts early in the InstallExecuteSequence. This is just to test whether that works or not - it is not intended as a permanent fix. The idea is that the complete removal of the old version before installing the new one could remove the inconsistency you otherwise see in the configuration files.

    The check-lists here could spark some ideas:

    • Desktop applicaton not opening after installation in client system
    • Windows Application Startup Error Exception code: 0xe0434352
    • WPF application crashes when I launch
    • https://www.coretechnologies.com/WindowsServices/FAQ.html
    0 讨论(0)
提交回复
热议问题