Replies: 1 comment 1 reply
-
|
Not an answer, but just so you know, WiX v3 is very much out of service and no longer receives security updates. I highly recommend upgrading to a supported version of WiX (v5 for a few more months or v6 for longer). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an MSI built with WiX 3.14 that installs a Windows Service using and .
By default, the service runs under LocalSystem.
After installation, users often manually update the Log On account (username + password) in Services.msc.
During a major upgrade, I need to preserve these credentials — i.e., prevent the service from being removed or recreated — while still updating the EXE.
What happens now
• On upgrade, the old service is removed and recreated.
• This resets it back to LocalSystem and wipes out the manually entered credentials.
• The new EXE installs fine, but credentials are lost.
Goal
During major upgrades:
• Keep existing service registration intact.
• Preserve user-entered credentials.
• Replace only the EXE and restart the service.
Questions
• How can I stop WiX/MSI from uninstalling/reinstalling the service during a major upgrade?
• Is skipping InstallServices (when the service exists) considered safe?
• If the EXE path changes, what’s the correct way to update only the service ImagePath without touching credentials?
• Any known clean patterns or sample WiX snippets for this?
Environment:
WiX 3.14 | Windows 10/11
Thanks in advance for any insights or working examples! 🙏
Beta Was this translation helpful? Give feedback.
All reactions