summaryrefslogtreecommitdiffstats
path: root/build/nsis/setup.nsi
diff options
context:
space:
mode:
Diffstat (limited to 'build/nsis/setup.nsi')
-rw-r--r--build/nsis/setup.nsi23
1 files changed, 22 insertions, 1 deletions
diff --git a/build/nsis/setup.nsi b/build/nsis/setup.nsi
index bcba92458d4..a36de7a7929 100644
--- a/build/nsis/setup.nsi
+++ b/build/nsis/setup.nsi
@@ -10,10 +10,21 @@
!define NAME "OpenBB Terminal"
!define COMPANY "OpenBB"
!define APPFILE "OpenBBTerminal.exe"
- !define VERSION "3.0.0rc1"
+ !define VERSION "3.0.0rc2"
!define SLUG "${NAME} v${VERSION}"
;--------------------------------
+; Info for Installer.exe
+ VIProductVersion 3.0.0.0
+ VIAddVersionKey ProductName "OpenBB Terminal"
+ VIAddVersionKey Comments "An installer for OpenBB Terminal. For additional details, visit OpenBB.co"
+ VIAddVersionKey CompanyName OpenBB.co
+ VIAddVersionKey FileDescription "OpenBB Terminal Program"
+ VIAddVersionKey FileVersion 3.0.0.0
+ VIAddVersionKey ProductVersion 3.0.0.0
+ VIAddVersionKey InternalName "OpenBB Terminal"
+
+;--------------------------------
; General
Name "${NAME}"
OutFile "${NAME} Setup.exe"
@@ -31,6 +42,10 @@
!define MUI_ABORTWARNING
!define MUI_WELCOMEPAGE_TITLE "${SLUG} Setup"
!define UninstId "OpenBBTerminal" ; You might want to use a GUID here
+ !define MUI_FINISHPAGE_RUN
+ !define MUI_FINISHPAGE_RUN_NOTCHECKED
+ !define MUI_FINISHPAGE_RUN_TEXT "Start OpenBB Terminal"
+ !define MUI_FINISHPAGE_RUN_FUNCTION "StartOpenBB"
;--------------------------------
; Pages
@@ -73,6 +88,12 @@ Var STR_CONTAINS_VAR_3
Var STR_CONTAINS_VAR_4
Var STR_RETURN_VAR
+
+Function StartOpenBB
+ Exec "$InstDir\OpenBBTerminal.exe"
+FunctionEnd
+
+
Function StrContains
Exch $STR_NEEDLE
Exch 1