Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Running Setup.exe pops up a console window #82

Closed
solita-tuomaska opened this issue May 30, 2022 · 5 comments
Closed

Running Setup.exe pops up a console window #82

solita-tuomaska opened this issue May 30, 2022 · 5 comments
Labels
question Further information is requested

Comments

@solita-tuomaska
Copy link

When running the Setup.exe (either for the first time or not) it briefly flashes a console window for Squirrel.exe during the installation process. This could hurt user confidence especially with the red error text appearing in the window. Is this a known issue and/or are there workarounds to make it not appear? Attached a screenshot that I managed to catch before it disappeared with project details hidden:

squirrel-window

Version used: 2.9.40

This could be related to #75 but the description sounds different enough.

@caesay
Copy link
Member

caesay commented May 30, 2022

Thanks for reporting this - I have not seen this. Something looks seriously broken here, as the screenshot you are showing here is the Squirrel.exe package builder, and that should not even be present when running setup.

There are three separate exe's, Squirrel.exe (as pictured here) helps to build release packages. Update.exe is responsible for installing your program and helping with updates. Setup.exe is just a small self-extractor that extracts Update.exe and runs it.

Can you tell me a bit more about how you are building your update packages? are you copying Squirrel.exe into them yourself? Can you share the command line you used to create the package?

@solita-tuomaska
Copy link
Author

Thanks for the quick response! It pointed us to the right direction, for some reason in our app's .nuspec file we were indeed packaging the Squirrel.exe. I guess we never noticed this being a mistake with older Squirrel.Windows versions or if it was added there for a reason.

In any case problem solved, thank you

@caesay caesay added the question Further information is requested label May 31, 2022
@solita-tuomaska
Copy link
Author

Found the reason why we had the Squirrel.exe packed in, this is from the Squirrel (both this and original) FAQ:

I've Distributed a Broken Copy of Update.exe. How can I fix this?
Sometimes, you might ship a broken copy of Update.exe that succeeds the initial install, but doesn't do what you want for some reason. To fix this, you can force an update of the Update.exe by including a copy of Squirrel.exe in your app update package. If Squirrel sees this, it will copy in this latest version to the local app installation.

Now I'm wondering if this functionality still exists in this fork?

@caesay
Copy link
Member

caesay commented May 31, 2022

Yes this behavior is the default in this fork. Update.exe will be updated every time you update your app. Check the main readme for more info.

@caesay caesay closed this as completed May 31, 2022
@solita-tuomaska
Copy link
Author

Oh I see, thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants