Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- optionSet.Add("Usage: Squirrel.exe command [OPTS]");
- optionSet.Add("Manages Squirrel packages");
- optionSet.Add("");
- optionSet.Add("Commands");
- optionSet.Add("install=", "Install the app whose package is in the specified directory", delegate(string v)
- {
- updateAction = UpdateAction.Install;
- target = v;
- });
- optionSet.Add("check=", "Download the releases information specified by the URL and write new results to stdout as JSON. Does not download the actual packages", delegate(string v)
- {
- updateAction = UpdateAction.CheckForUpdates;
- target = v;
- });
- optionSet.Add("uninstall", "Uninstall the app the same dir as Update.exe", delegate(string v)
- {
- updateAction = UpdateAction.Uninstall;
- });
- optionSet.Add("download=", "Download the releases specified by the URL and write new results to stdout as JSON", delegate(string v)
- {
- updateAction = UpdateAction.Download;
- target = v;
- });
- optionSet.Add("update=", "Update the application to the latest remote version specified by URL", delegate(string v)
- {
- updateAction = UpdateAction.Update;
- target = v;
- });
- optionSet.Add("releasify=", "Update or generate a releases directory with a given NuGet package", delegate(string v)
- {
- updateAction = UpdateAction.Releasify;
- target = v;
- });
- optionSet.Add("createShortcut=", "Create a shortcut for the given executable name", delegate(string v)
- {
- updateAction = UpdateAction.Shortcut;
- target = v;
- });
- optionSet.Add("removeShortcut=", "Remove a shortcut for the given executable name", delegate(string v)
- {
- updateAction = UpdateAction.Deshortcut;
- target = v;
- });
- optionSet.Add("updateSelf=", "Copy the currently executing Update.exe into the default location", delegate(string v)
- {
- updateAction = UpdateAction.UpdateSelf;
- target = v;
- });
- optionSet.Add("processStart=", "Start an executable in the latest version of the app package", delegate(string v)
- {
- updateAction = UpdateAction.ProcessStart;
- processStart = v;
- }, true);
- optionSet.Add("processStartAndWait=", "Start an executable in the latest version of the app package", delegate(string v)
- {
- updateAction = UpdateAction.ProcessStart;
- processStart = v;
- shouldWait = true;
- }, true);
- optionSet.Add("");
- optionSet.Add("Options:");
- optionSet.Add("h|?|help", "Display Help and exit", delegate(string _)
- {
- });
- optionSet.Add("r=|releaseDir=", "Path to a release directory to use with releasify", delegate(string v)
- {
- releaseDir = v;
- });
- optionSet.Add("p=|packagesDir=", "Path to the NuGet Packages directory for C# apps", delegate(string v)
- {
- packagesDir = v;
- });
- optionSet.Add("bootstrapperExe=", "Path to the Setup.exe to use as a template", delegate(string v)
- {
- bootstrapperExe = v;
- });
- optionSet.Add("g=|loadingGif=", "Path to an animated GIF to be displayed during installation", delegate(string v)
- {
- backgroundGif = v;
- });
- optionSet.Add("i=|icon", "Path to an ICO file that will be used for icon shortcuts", delegate(string v)
- {
- icon = v;
- });
- optionSet.Add("setupIcon=", "Path to an ICO file that will be used for the Setup executable's icon", delegate(string v)
- {
- setupIcon = v;
- });
- optionSet.Add("n=|signWithParams=", "Sign the installer via SignTool.exe with the parameters given", delegate(string v)
- {
- signingParameters = v;
- });
- optionSet.Add("s|silent", "Silent install", delegate(string _)
- {
- silentInstall = true;
- });
- optionSet.Add("b=|baseUrl=", "Provides a base URL to prefix the RELEASES file packages with", delegate(string v)
- {
- baseUrl = v;
- }, true);
- optionSet.Add("a=|process-start-args=", "Arguments that will be used when starting executable", delegate(string v)
- {
- processStartArgs = v;
- }, true);
- optionSet.Add("l=|shortcut-locations=", "Comma-separated string of shortcut locations, e.g. 'Desktop,StartMenu'", delegate(string v)
- {
- shortcutArgs = v;
- });
- optionSet.Add("no-msi", "Don't generate an MSI package", delegate(string v)
- {
- noMsi = true;
- });
- optionSet.Add("updateOnly", "For createShortcut, should we only update an existing link", delegate(string v)
- {
- updateOnly = true;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement