summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOdd Stranne <odd@mullvad.net>2018-03-22 11:35:30 +0100
committerLinus Färnstrand <linus@mullvad.net>2018-06-08 11:13:01 +0200
commiteb59c2eb669cad84fe27356bd058c04bfb5bdd51 (patch)
tree36fab1203447cf0c24b0dc2a25acc426809be04f
parent7bd6688f057b6e079689a7ee23c850f0f8e874fe (diff)
downloadmullvadvpn-eb59c2eb669cad84fe27356bd058c04bfb5bdd51.tar.xz
mullvadvpn-eb59c2eb669cad84fe27356bd058c04bfb5bdd51.zip
Add NSIS customization script
-rw-r--r--dist-assets/installer.nsh13
-rw-r--r--electron-builder.yml1
2 files changed, 14 insertions, 0 deletions
diff --git a/dist-assets/installer.nsh b/dist-assets/installer.nsh
new file mode 100644
index 0000000000..48973099c2
--- /dev/null
+++ b/dist-assets/installer.nsh
@@ -0,0 +1,13 @@
+!macro preInit
+ ; This macro is inserted at the beginning of the NSIS .OnInit callback
+ ; It is activated both at compile-time and runtime
+ Messagebox MB_OK "preInit"
+!macroend
+
+!macro customInstall
+ ; This macro is activated towards the end of the installation
+ ; after all files are copied, shortcuts created, etc
+ Messagebox MB_OK "customInstall"
+!macroend
+
+ \ No newline at end of file
diff --git a/electron-builder.yml b/electron-builder.yml
index 08f0e79d4b..060835b7a0 100644
--- a/electron-builder.yml
+++ b/electron-builder.yml
@@ -54,6 +54,7 @@ nsis:
perMachine: true
allowElevation: true
allowToChangeInstallationDirectory: true
+ include: dist-assets/installer.nsh
win:
target: