feat(bundler): extend webview2 installation options, closes #2882 #2452#4466
feat(bundler): extend webview2 installation options, closes #2882 #2452#4466lucasfernog merged 14 commits intodevfrom
Conversation
|
@FabianLars can you review this one? |
|
I tested the installing of the new modes but i'm having issues running the apps in my VM :( probably too old |
|
Okay i don't have much time today so i only report what happens and won't look into why it happens.
|
|
|
Don't worry about testing it today, it can wait till next week. Also don't investigate too much the why, I just wanted some help double checking it. Will keep working on it later. |
|
I updated the comment with win7 results. And here's the log: msi.log
|
|
Hey we don't use |
|
Yes to both. no idea how tho, it was a clean build 🤔 idk maybe windows is trolling me again, sorry for the noise ✌️ |
bb0b4ad to
3661ba9
Compare
|
Changed the updater MSI to use DownloadBootstrapper if |
|
Maybe one of your dependencies is copying the dll to the target folder @FabianLars let me know if you still hit this issue and maybe share a cargo.toml/cargo.lock to use. |
|
I think my windows is broken (again). if I manually move the target folder into the trash (which i did) it somehow ends up in the new target folder again. P.S. and yes this is somewhat reproducible, but it only happens on my main machine so I guess it's time for the monthly windows reinstallation 😂 |
|
Ah ok. I'll add an option for silent installation, but I don't know what else I can do to resolve #4389 |
Adapted from #2452 (comment) <CustomAction Id='DownloadAndInvokeBootstrapper' Directory="INSTALLDIR" Execute="deferred" ExeCommand='powershell.exe -NoProfile -windowstyle hidden Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" ; Start-Process -FilePath "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" -ArgumentList ('/install') -Wait' Return='check'/>Or with silent installation (which i guess is preferred): <CustomAction Id='DownloadAndInvokeBootstrapper' Directory="INSTALLDIR" Execute="deferred" ExeCommand='powershell.exe -NoProfile -windowstyle hidden Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" ; Start-Process -FilePath "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" -ArgumentList ('/silent', '/install') -Wait' Return='check'/>Tested only on windows 10, but it should work on win7 too, not that it really matters when the download itself doesn't work 🤷 |
a3c4583 to
ae2fa1f
Compare
|
@FabianLars I pushed the silent option and changed the default to be DownloadBootstrapper. But i tried the powershell change and I didn't see any benefits. In my Windows 11 sandbox it started showing the powershell window (it didn't before) and I couldn't see any difference with |
|
Did you copy paste the line i posted as-is? Because for me (on win10) it doesn't show the powershell window and it did wait on the correct installer step. I can't remember if i tested the version with the silent flag too, or only the passive variant, gonna retest. Do you want to see a screen recording? :P |
|
I tried it several times, only once it didn't show the powershell window. Weird. |
|
Or do you mean the really short >0.1second flash? Because that i can see, but it's the same for the old version. |
|
Yeah the flash is still there and I couldn't see the -Wait being effective - but that's probably just me being dumb. |
da6af6d to
838cdeb
Compare
|
This PR is now ready. I wanted to prevent the powershell window flash but we can do that later if it's even possible. |
|
Just so we're on the same page, i recorded it without the silent option. The UAC prompt kinda messes up the recording, but it should be clear enough. Old.Installer.mp4New.Installer.-.Non-Silent.mp4 |
|
It's weird because on my sandbox the installer was also waiting for the webview installation to finish - but I'm glad it's consistent now. |
Has this problem been solved? I have the same problem |

What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___)Other information
This PR enhances the WiX installer options for webview2 installation:
The default webview2 install option is now to embed the webview2 bootstrapper to fix installers on Windows 7.