WiX installer unable to find dll #8981
-
I'm a bit stumped. I am trying to make an installer for a Windows Service, something I thought would be pretty straightforward. I followed these two tutorials: I followed the tutorial for making the windows service and ran it. SUCCESS, I have a service that provides me with top quality dad jokes. It runs from a single-file exe that I published to when installed and started from Powershell. The installer tutorial seems to be a little bit out of date as I needed to swap Directory out for StandardDirectory, but apart from that it pretty much build without an issue. I then ran the msi and it seemed to be working fine until I got an error:
This led me on a bit of a wild goose chase until I checked the Event Logs. Under the Application logs I found this:
And under the System logs it seems that it's timing out:
I've tried everything under the sun that I can think of to ensure that the exe is in fact self-contained, but given that the Service runs without issue from the exe when run in Powershell I suspect there may be a different issue. Any help on this would be greatly appreciated! Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
It seems like you're installing only the executable file rather than the entire folder. |
Beta Was this translation helpful? Give feedback.
-
I'm curious, why are you doing this: <!-- Remove all files from the INSTALLFOLDER on uninstall -->
<RemoveFile Id="ALLFILES" Name="*.*" On="both" /> and why are you defining <StandardDirectory Id="TARGETDIR" /> |
Beta Was this translation helpful? Give feedback.
-
Ahh, I don't think of those as "tutorials". That's just some Microsoft documentation. 😄 But thanks for pointing to it. It has a number of bugs that should be cleaned up. We'll try to work with Microsoft to fix it up.
That's great news. It took a long while to get as much as is there and as you point out it needs more content. That is definitely on our roadmap, along with several other documentation projects (like a better migration guide for WiX v3 users coming to "contemporary WiX").
Thanks for the feedback. We'll take in advisement.
Again, useful feedback. The WiX Toolset supports the full breadth of the Windows Installer which in turn can support the full breadth of functionality in Windows. It's a daunting amount of functionality to document, so feedbakc helps us prioritize which parts to cover first.
We still feel like there is A LOT more to do, so it is good to hear that what we have is helpful and how we can possibly tweek sprints 4 & 5. Plus, we need to go help Microsoft fix up their documentation too. :) |
Beta Was this translation helpful? Give feedback.
-
Still find the book Wix 3.6: A Developer's Guide to Windows Installer XML very useful. From 2012 so outdated with some changes in Wix 4 but MSI is very old so still very relevant. |
Beta Was this translation helpful? Give feedback.
It seems like you're installing only the executable file rather than the entire folder.
Try adding the folder using Files element.
Make sure to exclude the main executable from the
Files
element since you're including it explicitly in anotherComponent