Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msi installer fails on clean windows install #394

Closed
pm100 opened this issue Oct 31, 2020 · 12 comments
Closed

msi installer fails on clean windows install #394

pm100 opened this issue Oct 31, 2020 · 12 comments
Labels
enhancement New feature or request
Milestone

Comments

@pm100
Copy link
Contributor

pm100 commented Oct 31, 2020

The msi installer binary does not install vcruntime140.dll so app wont start

Download of the vc redist and install fixes it but really the msi should do this

@extrawurst
Copy link
Owner

extrawurst commented Nov 1, 2020

could you look into this? can we do this using cargo wix? It would be required for releasing 0.11 with a msi installer

@extrawurst extrawurst added the enhancement New feature or request label Nov 1, 2020
@extrawurst extrawurst added this to the v0.11 milestone Nov 1, 2020
@pm100
Copy link
Contributor Author

pm100 commented Nov 1, 2020

Yes, I am working on it - I posted a feature / bug request to the cargo-wix team. Its really a generic issue. I filed a bug here just so it didnt get lost.

I set up a clean new windows system to see what would happen in various scenarios, hence this one and the hooks one. I was kind of intended to use the hooks one to do a deep fix of windows hooks, but fixing the panic is a good idea of course. Once I have a clearer idea of the best solution I will raise another issue.

@pm100
Copy link
Contributor Author

pm100 commented Nov 1, 2020

for the wix issue right now you can simply have a release note that syas you must install

https://aka.ms/vs/16/release/vc_redist.x64.exe

or

https://aka.ms/vs/16/release/vc_redist.x86.exe

@extrawurst
Copy link
Owner

@pm100 cool. can you link the issue we are depending on?

@pm100
Copy link
Contributor Author

pm100 commented Nov 1, 2020

volks73/cargo-wix#114

@extrawurst
Copy link
Owner

@pm100 where are we on this?

@pm100
Copy link
Contributor Author

pm100 commented Nov 7, 2020

@extrawurst cargo-wix wont make any change so we have 3 choices

  • leave it as a release note
  • change the build for the MSI binary to be static linked (so take out the no-build flag)
  • change the wix setup in gitui build to include vcruntime

I have tested the second option and it works fine. The package size increases from 2mb to 7mb, but then that would also happen in we did the third choice

I started on the third choice when I reported the bug originally. I havent got it to work to my satisfaction yet. And stopped once option 2 came up

@extrawurst
Copy link
Owner

I think option 3 is the least intrusive, lets add the wix config file to the repo and bundle up the runtime with the installer. maybe you can find another project to find inspiration how they do it. we can't be the only one doing this.

@pm100
Copy link
Contributor Author

pm100 commented Nov 7, 2020

OK, I already looked around a lot, msft recently changed how they package the runtime so a lot of suggestions no longer work. And the team that did cargo-wix didnt even realize this was an issue :-)

I will make it go but it will take a while.

@extrawurst
Copy link
Owner

@pm100 was this fixed by #431 ?

@pm100
Copy link
Contributor Author

pm100 commented Dec 8, 2020

yes

@extrawurst
Copy link
Owner

fixed in #431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants