1
0
mirror of synced 2024-11-05 01:49:15 +00:00

Added Run / Run at startup options to setup

This commit is contained in:
Mark van Renswoude 2021-03-07 10:52:15 +01:00
parent 69a93f68d5
commit 0e27fec1e9
3 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>$(localappdata)\MassiveKnob\Plugins\VoiceMeeter\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>

View File

@ -11,6 +11,7 @@ using SimpleInjector;
namespace MassiveKnob namespace MassiveKnob
{ {
// TODO (should have) global exception handler - AppDomain.CurrentDomain.UnhandledException
public static class Program public static class Program
{ {
[STAThread] [STAThread]

View File

@ -41,6 +41,7 @@ Name: optionalplugins\voicemeeter; Description: "VoiceMeeter actions"; Types: fu
[Tasks] [Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "runatstartup"; Description: "{cm:AutoStartProgram,{#AppName}}"; GroupDescription: "{cm:AutoStartProgramGroupDescription}"; Flags: unchecked
[Files] [Files]
; Main application ; Main application
@ -73,8 +74,11 @@ Name: "{localappdata}\MassiveKnob\Plugins"
Name: "{commonprograms}\{#AppName}"; Filename: "{app}\{#AppExeName}" Name: "{commonprograms}\{#AppName}"; Filename: "{app}\{#AppExeName}"
Name: "{commondesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Tasks: desktopicon Name: "{commondesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Tasks: desktopicon
[Registry]
Root: HKCU; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "MassiveKnob"; ValueData: "{app}\{#AppExeName}.exe"; Tasks: runatstartup;
[Run] [Run]
;Filename: "{app}\{#AppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(AppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent Filename: "{app}\{#AppExeName}"; Description: "{cm:LaunchProgram,{#AppName}}"; Flags: nowait postinstall skipifsilent
[Code] [Code]
// .NET version detection credit goes to: // .NET version detection credit goes to: