--- /dev/null
+!include "fileFunc.nsh"\r
+\r
+!define launcher_appExe "nvdaLauncher.exe"\r
+\r
+SetCompressor /SOLID LZMA\r
+SilentInstall silent\r
+RequestExecutionLevel user\r
+\r
+Name "NVDA"\r
+VIProductVersion "0.0.0.0" ;Needs to be here so other version info shows up\r
+VIAddVersionKey "ProductName" "${PRODUCT}"\r
+VIAddVersionKey "LegalCopyright" "Copyright 2006 - 2011 NVDA Contributors"\r
+VIAddVersionKey "FileDescription" "NVDA launcher file"\r
+VIAddVersionKey "ProductVersion" "${VERSION}"\r
+\r
+page instfiles\r
+\r
+section "install"\r
+SetAutoClose true\r
+initPluginsDir\r
+CreateDirectory "$PLUGINSDIR\app"\r
+setOutPath "$PLUGINSDIR\app"\r
+file /R "${NVDADistDir}\"\r
+${GetParameters} $0\r
+Banner::destroy\r
+execWait "$PLUGINSDIR\app\nvda.exe $0"\r
+SectionEnd\r
env.AddPostAction(installer, [signExec])\r
env.Alias("installer", installer)\r
\r
+launcher = env.Command(outputDir.File("%s_launcher.exe" % outFilePrefix), ["launcher/nvdaLauncher.nsi", portableDist],\r
+ [[makensis, "/V2",\r
+ "/DVERSION=$version", '/DPUBLISHER="$publisher"',\r
+ "/DNVDADistDir=${SOURCES[1].abspath}", "/XOutFile ${TARGET.abspath}",\r
+ "$SOURCE"]])\r
+if certFile:\r
+ env.AddPostAction(launcher, [signExec])\r
+env.Alias("launcher", launcher)\r
+\r
clientArchive = env.SzArchive(outputDir.File("%s_controllerClient.zip" % outFilePrefix), clientDir, relativeToSourceDir=True)\r
env.Alias("client", clientArchive)\r
\r