WiX4 Application after installation crashes immediately #7868
Replies: 3 comments 1 reply
-
Any error messages in eventviewer? Any errors displayed in stdout/stderr when you run it from a console window? You are probably missing a dependency. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the reply! I will go through each of the points you brought up to give more information. Any error messages in eventviewer? Note: That is the correct path to where the installed program should go. Any errors displayed in stdout/stderr when you run it from a console window? As to the part of missing a dependency if that is the case how can I find out which one it is? Thank you in advance |
Beta Was this translation helpful? Give feedback.
-
Sounds like you authored the exe but not the dll. Theres also a few other files .net apps need. |
Beta Was this translation helpful? Give feedback.
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 am following the Deployment Dojo Episode 11 HeatWave! The New Hotness for WiX v4.
I can build and run the installer no problem, but the issue I am having is when I go to launch the installed app it closes immediately.
I have a basic console application like in the episode a hello world app that waits for user input after displaying the text so it doesn't close just like in the episode.
I have search on different forums but none of the answers were helpful, the most common culprits for similar issues to mine were missing permissions, I checked and have the permission to install and run the program, or dependencies which I have none for this type of basic application
I followed the steps:
Creating a new WiX4 MSI Package.
Modify the files according to the guide.
Add the dependency of my project to the WiX project.
Check project buiding configurations made sure it was on x86 just like in the video with all the same options selected
Package.wxs
`
ExampleComponents.wxs
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> <Fragment> <ComponentGroup Id="ExampleComponents" Directory="INSTALLFOLDER"> <Component> <File Source="ConsoleApp.exe" /> </Component> </ComponentGroup> </Fragment> </Wix>
Folders.wxs
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> <Fragment> <StandardDirectory Id="ProgramFiles6432Folder"> <Directory Id="INSTALLFOLDER" Name="!(bind.Property.Manufacturer) !(bind.Property.ProductName)" /> </StandardDirectory> </Fragment> </Wix>
Beta Was this translation helpful? Give feedback.
All reactions