Squirrel documentation은 패키지의 모든 EXE에 대한 바로 가기를 만드는 것이 기본 동작이라고 설명합니다.
동일한 documentation page은 기본 동작을 재정의하려면 EXE Squirrel 중 하나 이상을 인식하고 원하는대로 Squirrel 이벤트 처리기를 구현해야한다고 설명합니다.
당신이 더 추가하여 당신이 다람쥐에 대한 바로 가기가 알고 싶은 한 EXE는 그 AssemblyInfo.cs
에 다음과 같은합니다
static bool ShowTheWelcomeWizard;
...
static int Main(string[] args)
{
// NB: Note here that HandleEvents is being called as early in startup
// as possible in the app. This is very important! Do _not_ call this
// method as part of your app's "check for updates" code.
using (var mgr = new UpdateManager(updateUrl))
{
// Note, in most of these scenarios, the app exits after this method
// completes!
SquirrelAwareApp.HandleEvents(
onInitialInstall: v => mgr.CreateShortcutForThisExe(),
onAppUpdate: v => mgr.CreateShortcutForThisExe(),
onAppUninstall: v => mgr.RemoveShortcutForThisExe(),
onFirstRun:() => ShowTheWelcomeWizard = true);
}
}
:
[assembly: AssemblyMetadata("SquirrelAwareVersion", "1")]
는 그런 다음 EXE에 그런 다람쥐 이벤트를 구현