!define FLUIDBOOKNAME "$name"\r
!define REG_UNINSTALL "Software\Microsoft\Windows\CurrentVersion\Uninstall\$fname"\r
\r
+Unicode true\r
+\r
; The name of the installer\r
Name "${FLUIDBOOKNAME}"\r
\r
\r
; Put file there\r
SetOverwrite ifnewer\r
- File /a /r "$fdir\*"\r
+ File /r "$fdir\*"\r
\r
; Create shortcut\r
CreateShortCut "$SMPROGRAMS\${FLUIDBOOKNAME}.lnk" "$INSTDIR\$fname.exe" "--disable-crash-handler=true" "$INSTDIR\package.nw\icon.ico"\r
if (!$this->config->pdfName) {
$this->config->pdfName = 'document.pdf';
}
+ $this->config->pdfName = CubeIT_Text::removeAccents($this->config->pdfName);
+
if ($res !== false) {
$this->vdir->copy($res, 'data/' . $this->config->pdfName);
}
$tmp = cubeFiles::tempnam() . '.nsi';\r
file_put_contents($tmp, $this->nsi);\r
$makensis = new CubeIT_CommandLine('/usr/local/bin/makensis');\r
+ $makensis->setArg(null,'-V4');\r
$makensis->setArg(null, $tmp);\r
$makensis->execute();\r
$makensis->debug();\r
+ if (!file_exists($this->getPathBase('exe'))) {\r
+ die('Error while building the installer : ' . $this->getPathBase('exe') . ' // ' . $makensis->commande . ' // ' . $makensis->output);\r
+ }\r
\r
$this->signInstaller();\r
\r
+ if (!file_exists($this->getPathBase('exe'))) {\r
+ die('Error during the signing process : ' . $this->getPathBase('exe'));\r
+ }\r
+\r
return $this->getURLBase('exe');\r
}\r
\r