Comments (3)
Did you add the code from step 3 from the REAME.md to your project?
public static int Main(string[] args)
{
SquirrelAwareApp.HandleEvents(
onInitialInstall: OnInstall,
onAppUpdate: OnUpdate,
onAppUninstall: OnUninstall,
onFirstRun: OnFirstRun);
// ...
}
private static void OnInstall(Version obj)
{
using var mgr = new UpdateManager("https://the.place/you-host/updates");
mgr.CreateUninstallerRegistryEntry();
mgr.CreateShortcutForThisExe(ShortcutLocation.StartMenu | ShortcutLocation.Desktop);
}
// ...
from clowd.squirrel.
In order for shortcuts to be created automatically, the following must be true:
- Your binary must be marked as SquirrelAware via assembly manifest
- You must handle OnInstall and execute
CreateShortcutForThisExe
as remco mentioned.
If you are already doing those two things, the next thing to try is to run the following command in an installed app:
%localappdata%\YourApp\Update.exe --createShortcut=YourApp.exe --shortcut-locations=Desktop
And then post the log file here (you can find it at at %localappdata%\YourApp\Squirrel-Shortcut.log
)
If that still doesn't work, and you have a sample app, I am happy to take a look
from clowd.squirrel.
I apologise for the inconvenience, I did indeed miss the CreateShortcutForThisExe()
in the program. I'll test this now and hopefully get it working. Thanks @caesay for checking out our program and giving us further pointers!
from clowd.squirrel.
Related Issues (20)
- Did the installer detect that the version being installed is an old version? HOT 3
- Win32splash renders in wrong location HOT 4
- Can it support custom download paths at runtime (needed for offline environments)? HOT 6
- File or Directory not found HOT 4
- Progress dialog title has a random process name HOT 3
- Install dependencies silently and w/o admin rights HOT 3
- .NET Framework support? HOT 5
- Error -532462766 occurred while running setup HOT 3
- Mark a directory incomplete when staging updates HOT 2
- Tool Squirrel.exe/Update.exe is reported as trojan HOT 1
- Code contracts are deprecated and should be replaced HOT 1
- Refactor GitlabSource to support public GraphQL api
- Run after install HOT 5
- Possible to sync AssemblyInfo? HOT 2
- Runtime support for aspnetcore-runtime-8.0.0-win-x86? HOT 2
- App only starts after install HOT 4
- Github Releases New Update HOT 1
- Rollback and previous version HOT 3
- Install date is always today HOT 4
- .NET dependency retrieval fails HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clowd.squirrel.