-
Notifications
You must be signed in to change notification settings - Fork 1k
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
How do I check if the app is installed via Squirrel? #574
Comments
If you don't have a good solution I would like it if you could implement one |
var assembly = Assembly.GetEntryAssembly();
var updateDotExe = Path.Combine(
Path.GetDirectoryName(assembly.Location),
'..', 'Update.exe');
var isInstalled = File.Exists(updateDotExe); |
oh thank you |
…irrel#611. Trailing slash comment from Squirrel#641.
…irrel#611. Trailing slash comment from Squirrel#641.
It looks like this does the job:
|
This is a more reliable way to check, although both are problematic as update.exe can be present if the application is not installed (for example running in visual studio). Although update.exe is present, other dependent files are not (for example the releases file) if not 'installed'. |
I want to distribute my app as Squirrel edition and Standalone edition (the standalone wont be able to update)
How can I find out weather an app is installed via Squirrel or not?
My current method of determining isn't very good especially becaue you guys just used System.Execption instead of something like NonSquirrelInstallationException
The text was updated successfully, but these errors were encountered: