* Updated nl_NL translation from Rob van Nieuwkerk.
+ * Fix various problems with specification of install directory
+ on Windows (#643, #705).
+
2015-11-27 Carl Hetherington <cth@carlh.net>
* Add config and server list to the batch converter's menus (#765).
!include "Sections.nsh"
""", file=f)
+ if bits == 64:
+ program_files = "$PROGRAMFILES64"
+ else:
+ program_files = "$PROGRAMFILES"
+
if debug:
- print('InstallDir "$PROGRAMFILES\\DCP-o-matic 2 Debug"', file=f)
+ print('InstallDir "%s\\DCP-o-matic 2 Debug"' % program_files, file=f)
else:
- print('InstallDir "$PROGRAMFILES\\DCP-o-matic 2"', file=f)
+ print('InstallDir "%s\\DCP-o-matic 2"' % program_files, file=f)
print("""
!insertmacro MUI_PAGE_WELCOME
if bits == 64:
print("""
-${If} ${RunningX64}
- DetailPrint "Installer running on 64-bit host"
- ; disable registry redirection (enable access to 64-bit portion of registry)
- SetRegView 64
- ; change install dir
- StrCpy $INSTDIR "$PROGRAMFILES64\DCP-o-matic 2"
-${EndIf}
+; disable registry redirection (enable access to 64-bit portion of registry)
+SetRegView 64
""", file=f)
print("""