source: sasview/sasview/installer.iss @ 25f223b

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 25f223b was 25f223b, checked in by krzywon, 9 years ago

Modified setup.py to look for defaults.json instead of defaults.xml when
loading the data loader Registry.

  • Property mode set to 100644
File size: 7.8 KB
Line 
1
2; Script generated by the Inno Setup Script Wizard
3
4; and local_config.py located in this directory.
5 ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
6[Setup]
7
8ChangesAssociations=yes
9AppName=SasView
10AppVerName=SasView-3.0.0
11AppPublisher=(c) 2009 - 2013, UTK, UMD, NIST, ORNL, ISIS, ESS and ILL
12AppPublisherURL=http://www.sasview.org
13AppSupportURL=http://www.sasview.org
14AppUpdatesURL=http://www.sasview.org
15ChangesEnvironment=true
16DefaultDirName={pf}\SasView
17DefaultGroupName=.\SasView-3.0.0
18DisableProgramGroupPage=yes
19LicenseFile=license.txt
20OutputBaseFilename=setupSasView
21SetupIconFile=images\ball.ico
22Compression=lzma
23SolidCompression=yes
24PrivilegesRequired=none
25UsePreviousAppDir=no
26
27
28[Registry]
29Root: HKCR;     Subkey: ".xml\OpenWithList\SasView.exe";         Flags: uninsdeletekey noerror
30Root: HKCR;     Subkey: ".txt\OpenWithList\SasView.exe";         Flags: uninsdeletekey noerror
31Root: HKCR;     Subkey: ".asc\OpenWithList\SasView.exe";         Flags: uninsdeletekey noerror
32Root: HKCR;     Subkey: ".dat\OpenWithList\SasView.exe";         Flags: uninsdeletekey noerror
33Root: HKCR;     Subkey: ".abs\OpenWithList\SasView.exe";         Flags: uninsdeletekey noerror
34Root: HKCR;     Subkey: ".d1d\OpenWithList\SasView.exe";         Flags: uninsdeletekey noerror
35Root: HKCR;     Subkey: ".sans\OpenWithList\SasView.exe";        Flags: uninsdeletekey noerror
36Root: HKCR;     Subkey: ".nxs\OpenWithList\SasView.exe";         Flags: uninsdeletekey noerror
37Root: HKCR; Subkey: "applications\SasView.exe\shell\open\command";      ValueType: string; ValueName: "";       ValueData: """{app}\SasView.exe""  ""%1""";      Flags: uninsdeletevalue noerror
38Root: HKCU;     Subkey: "Software\Classes\.xml\OpenWithList\SasView.exe";        Flags: uninsdeletekey noerror
39Root: HKCU;     Subkey: "Software\Classes\.txt\OpenWithList\SasView.exe";        Flags: uninsdeletekey noerror
40Root: HKCU;     Subkey: "Software\Classes\.asc\OpenWithList\SasView.exe";        Flags: uninsdeletekey noerror
41Root: HKCU;     Subkey: "Software\Classes\.dat\OpenWithList\SasView.exe";        Flags: uninsdeletekey noerror
42Root: HKCU;     Subkey: "Software\Classes\.abs\OpenWithList\SasView.exe";        Flags: uninsdeletekey noerror
43Root: HKCU;     Subkey: "Software\Classes\.d1d\OpenWithList\SasView.exe";        Flags: uninsdeletekey noerror
44Root: HKCU;     Subkey: "Software\Classes\.sans\OpenWithList\SasView.exe";       Flags: uninsdeletekey noerror
45Root: HKCU;     Subkey: "Software\Classes\.nxs\OpenWithList\SasView.exe";        Flags: uninsdeletekey noerror
46Root: HKCU; Subkey: "Software\Classes\applications\SasView.exe\shell\open\command";     ValueType: string; ValueName: "";       ValueData: """{app}\SasView.exe""  ""%1""";      Flags: uninsdeletevalue noerror
47Root: HKCR;     Subkey: ".svs"; ValueType: string;      ValueName: "";  ValueData: "{app}\SasView.exe";  Flags: uninsdeletevalue  noerror
48Root: HKCR;     Subkey: ".fitv";        ValueType: string;      ValueName: "";  ValueData: "{app}\SasView.exe";  Flags: uninsdeletevalue  noerror
49Root: HKCR;     Subkey: ".inv"; ValueType: string;      ValueName: "";  ValueData: "{app}\SasView.exe";  Flags: uninsdeletevalue  noerror
50Root: HKCR;     Subkey: ".prv"; ValueType: string;      ValueName: "";  ValueData: "{app}\SasView.exe";  Flags: uninsdeletevalue  noerror
51Root: HKCR; Subkey: "{app}\SasView.exe";        ValueType: string; ValueName: "";       ValueData: "{app}\SasView File";         Flags: uninsdeletekey  noerror         
52Root: HKCR; Subkey: "{app}\SasView.exe\shell\open\command";     ValueType: string; ValueName: "";       ValueData: """{app}\SasView.exe""  ""%1""";      Flags: uninsdeletevalue noerror       
53Root: HKCR; Subkey: "{app}\images\ball.ico";    ValueType: string; ValueName: "";       ValueData: "{app}\SasView.exe,0";        Flags: uninsdeletevalue noerror       
54Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment";     ValueType: expandsz; ValueName: "SASVIEWPATH";  ValueData: "{app}";      Flags: uninsdeletevalue noerror
55; Write to PATH (below) is disabled; need more tests
56;Root: HKCU; Subkey: "Environment";     ValueType: expandsz; ValueName: "PATH"; ValueData: "%SASVIEWPATH%;{olddata}";    Check: NeedsAddPath()
57
58
59[Languages]
60Name: "english";        MessagesFile: "compiler:Default.isl"
61
62
63[Tasks]
64Name: "desktopicon";    Description: "{cm:CreateDesktopIcon}";  GroupDescription: "{cm:AdditionalIcons}";       Flags: unchecked
65Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}";     GroupDescription: "{cm:AdditionalIcons}";
66
67
68[Files]
69Source: "dist\SasView.exe";     DestDir: "{app}";       Flags: ignoreversion
70Source: "dist\*";       DestDir: "{app}";       Flags: ignoreversion recursesubdirs createallsubdirs
71Source: "dist\plugin_models\*"; DestDir: "{userdesktop}\..\.sasview\plugin_models";     Flags: recursesubdirs createallsubdirs
72Source: "dist\config\custom_config.py"; DestDir: "{userdesktop}\..\.sasview\config";    Flags: recursesubdirs createallsubdirs
73Source: "dist\default_categories.json";    DestDir: "{userdesktop}\..\.sasview";        DestName: "serialized_cat.json";
74;       NOTE: Don't use "Flags: ignoreversion" on any shared system files
75
76[Icons]
77Name: "{group}\SasView";        Filename: "{app}\SasView.exe";  WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico"
78Name: "{group}\{cm:UninstallProgram, SasView}";  Filename: "{uninstallexe}"
79Name: "{commondesktop}\SasView-3.0.0";  Filename: "{app}\SasView.exe";  Tasks: desktopicon; WorkingDir: "{app}" ; IconFilename: "{app}\images\ball.ico"
80Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\SasView-3.0.0";   Filename: "{app}\SasView.exe";  Tasks: quicklaunchicon; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico"
81
82
83[Run]
84Filename: "{app}\SasView.exe";  Description: "{cm:LaunchProgram, SasView}";     Flags: nowait postinstall skipifsilent
85; Install the Microsoft C++ DLL redistributable package if it is provided and the DLLs are not present on the target system.
86; Note that the redistributable package is included if the app was built using Python 2.6 or 2.7, but not with 2.5.
87; Parameter options:
88; - for silent install use: "/q"
89; - for silent install with progress bar use: "/qb"
90; - for silent install with progress bar but disallow cancellation of operation use: "/qb!"
91; Note that we do not use the postinstall flag as this would display a checkbox and thus require the user to decide what to do.
92;Filename: "{app}\vcredist_x86.exe"; Parameters: "/qb!"; WorkingDir: "{tmp}"; StatusMsg: "Installing Microsoft Visual C++ 2008 Redistributable Package ..."; Check: InstallVC90CRT(); Flags: skipifdoesntexist waituntilterminated
93
94
95[Dirs]
96Name: "{app}\"; Permissions: everyone-modify   
97
98
99[Code]
100function InstallVC90CRT(): Boolean;
101begin
102    Result := not DirExists('C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375');
103end;
104
105function NeedsAddPath(): boolean;
106var
107  oldpath: string;
108  newpath: string;
109  pathArr:    TArrayOfString;
110  i:        Integer;
111begin
112  RegQueryStringValue(HKEY_CURRENT_USER,'Environment','PATH', oldpath)
113  oldpath := oldpath + ';';
114  newpath := '%SASVIEWPATH%';
115  i := 0;
116  while (Pos(';', oldpath) > 0) do begin
117    SetArrayLength(pathArr, i+1);
118    pathArr[i] := Copy(oldpath, 0, Pos(';', oldpath)-1);
119    oldpath := Copy(oldpath, Pos(';', oldpath)+1, Length(oldpath));
120    i := i + 1;
121    // Check if current directory matches app dir
122    if newpath = pathArr[i-1]
123    then begin
124      Result := False;
125      exit;
126    end;
127  end;
128  Result := True;
129end;
130
131
132[UninstallDelete]
133; Delete directories and files that are dynamically created by the application (i.e. at runtime).
134Type: filesandordirs; Name: "{app}\.matplotlib"
135Type: files; Name: "{app}\*.*"
136; The following is a workaround for the case where the application is installed and uninstalled but the
137;{app} directory is not deleted because it has user files.  Then the application is installed into the
138; existing directory, user files are deleted, and the application is un-installed again.  Without the
139; directive below, {app} will not be deleted because Inno Setup did not create it during the previous
140; installation.
141Type: dirifempty; Name: "{app}"
142
Note: See TracBrowser for help on using the repository browser.