source: installation_files/windows/installer.py @ 7525

Last change on this file since 7525 was 7525, checked in by nariman, 11 years ago

Added vcredist_x86.exe

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1def create_config(product_version,
2                  anuga_folder,
3                  anuga_viewer_folder,
4                  python,
5                  numpy,
6                  scientific_python,
7                  matplotlib,
8                  netcdf,
9                  mingw):
10        """
11        Short description:
12        """
13       
14        file = open('config.nsh', 'w')
15
16        file.write('''!ifndef __CONFIG_NSH
17!define __CONFIG_NSH
18; custom config
19; definitions should be quite self-explaining
20
21; global definitions
22!define ProductName "ANUGA"
23''')       
24        file.write('!define ProductVersion "' + product_version + '"\n')
25        file.write('!define Company "Geoscience Australia"\n')
26        file.write('!define Website "https://datamining.anu.edu.au/anuga"\n')
27        file.write('!define ExecutableName "AnugaSetup-' + product_version + '.exe"\n\n')
28        file.write('''; distribution file sources (for compiling the installer)
29!define WelcomeFinishBitmap "wf.bmp"
30!define HeaderBitmap "header.bmp"
31!define InstallerIcon "installer.ico"
32!define FileSource "files"
33
34''')   
35        file.write('!define AnugaFolder "' + anuga_folder + '"\n')
36        file.write('!define AnugaViewerFolder "' + anuga_viewer_folder + '"\n')
37        file.write('!define PythonInst "' + python + '"\n')
38        file.write('!define NumpyInst "' + numpy + '"\n')
39        file.write('!define ScientificInst "' + scientific_python + '"\n')
40        file.write('!define MatplotlibInst "' + matplotlib + '"\n')
41        file.write('!define NetCDFFolder "' + netcdf + '"\n')
42        file.write('!define MinGWInst "' + mingw + '"\n')
43        file.write('!define MVCRPInst "vcredist_x86.exe"\n\n')
44        file.write('''; registry and advanced information for the installation routine
45!define AnugaViewerDefaultFolder "$PROGRAMFILES\Anuga Viewer"
46!define NetCDFDefaultFolder "$COMMONFILES\NetCDF"
47
48!define ViewerExtension ".sww"
49!define ViewerExtensionAlias "Anuga.Animation"
50
51!define UninstallerRegistryKey "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ProductName}"
52!define UninstallerExecutableName "Uninst_Anuga.exe"
53
54!endif''')
55
56        file.close()
57
58
Note: See TracBrowser for help on using the repository browser.