source: sasview/sansview/installer.iss @ 3c965fd

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 3c965fd was 7f8cb75, checked in by Jae Cho <jhjcho@…>, 13 years ago

new release notes and version number 2.1.1

  • Property mode set to 100644
File size: 7.7 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=SansView
10AppVerName=SansView-2.1.1
11AppPublisher=(c) 2009 - 2012, University of Tennessee
12AppPublisherURL=http://danse.chem.utk.edu
13AppSupportURL=http://danse.chem.utk.edu
14AppUpdatesURL=http://danse.chem.utk.edu
15ChangesEnvironment=true
16DefaultDirName={pf}\SansView
17DefaultGroupName=DANSE\SansView-2.1.1
18DisableProgramGroupPage=yes
19LicenseFile=license.txt
20OutputBaseFilename=setupSansView
21SetupIconFile=images\ball.ico
22Compression=lzma
23SolidCompression=yes
24PrivilegesRequired=none
25UsePreviousAppDir=no
26
27
28[Registry]
29Root: HKCR;     Subkey: ".xml\OpenWithList\SansView.exe";        Flags: uninsdeletekey noerror
30Root: HKCR;     Subkey: ".txt\OpenWithList\SansView.exe";        Flags: uninsdeletekey noerror
31Root: HKCR;     Subkey: ".asc\OpenWithList\SansView.exe";        Flags: uninsdeletekey noerror
32Root: HKCR;     Subkey: ".dat\OpenWithList\SansView.exe";        Flags: uninsdeletekey noerror
33Root: HKCR;     Subkey: ".tif\OpenWithList\SansView.exe";        Flags: uninsdeletekey noerror
34Root: HKCR;     Subkey: ".abs\OpenWithList\SansView.exe";        Flags: uninsdeletekey noerror
35Root: HKCR;     Subkey: ".d1d\OpenWithList\SansView.exe";        Flags: uninsdeletekey noerror
36Root: HKCR;     Subkey: ".sans\OpenWithList\SansView.exe";       Flags: uninsdeletekey noerror
37Root: HKCR; Subkey: "applications\SansView.exe\shell\open\command";     ValueType: string; ValueName: "";       ValueData: """{app}\SansView.exe""  ""%1""";     Flags: uninsdeletevalue noerror
38Root: HKCU;     Subkey: "Software\Classes\.xml\OpenWithList\SansView.exe";       Flags: uninsdeletekey noerror
39Root: HKCU;     Subkey: "Software\Classes\.txt\OpenWithList\SansView.exe";       Flags: uninsdeletekey noerror
40Root: HKCU;     Subkey: "Software\Classes\.asc\OpenWithList\SansView.exe";       Flags: uninsdeletekey noerror
41Root: HKCU;     Subkey: "Software\Classes\.dat\OpenWithList\SansView.exe";       Flags: uninsdeletekey noerror
42Root: HKCU;     Subkey: "Software\Classes\.tif\OpenWithList\SansView.exe";       Flags: uninsdeletekey noerror
43Root: HKCU;     Subkey: "Software\Classes\.abs\OpenWithList\SansView.exe";       Flags: uninsdeletekey noerror
44Root: HKCU;     Subkey: "Software\Classes\.d1d\OpenWithList\SansView.exe";       Flags: uninsdeletekey noerror
45Root: HKCU;     Subkey: "Software\Classes\.sans\OpenWithList\SansView.exe";      Flags: uninsdeletekey noerror
46Root: HKCU; Subkey: "Software\Classes\applications\SansView.exe\shell\open\command";    ValueType: string; ValueName: "";       ValueData: """{app}\SansView.exe""  ""%1""";     Flags: uninsdeletevalue noerror
47Root: HKCR;     Subkey: ".svs"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue  noerror
48Root: HKCR;     Subkey: ".fitv";        ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue  noerror
49Root: HKCR;     Subkey: ".inv"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue  noerror
50Root: HKCR;     Subkey: ".prv"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue  noerror
51Root: HKCR; Subkey: "{app}\SansView.exe";       ValueType: string; ValueName: "";       ValueData: "{app}\SansView File";        Flags: uninsdeletekey  noerror         
52Root: HKCR; Subkey: "{app}\SansView.exe\shell\open\command";    ValueType: string; ValueName: "";       ValueData: """{app}\SansView.exe""  ""%1""";     Flags: uninsdeletevalue noerror       
53Root: HKCR; Subkey: "{app}\images\ball.ico";    ValueType: string; ValueName: "";       ValueData: "{app}\SansView.exe,0";       Flags: uninsdeletevalue noerror       
54Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment";     ValueType: expandsz; ValueName: "SANSVIEWPATH"; 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: "%SANSVIEWPATH%;{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\SansView.exe";    DestDir: "{app}";       Flags: ignoreversion
70Source: "dist\*";       DestDir: "{app}";       Flags: ignoreversion recursesubdirs createallsubdirs
71Source: "dist\plugin_models\*"; DestDir: "{userappdata}\..\.sansview\plugin_models";    Flags: recursesubdirs createallsubdirs
72Source: "dist\config\custom_config.py"; DestDir: "{userappdata}\..\.sansview\config";   Flags: recursesubdirs createallsubdirs
73;       NOTE: Don't use "Flags: ignoreversion" on any shared system files
74
75[Icons]
76Name: "{group}\SansView";       Filename: "{app}\SansView.exe"; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico"
77Name: "{group}\{cm:UninstallProgram, SansView}";         Filename: "{uninstallexe}"
78Name: "{commondesktop}\SansView-2.1.1"; Filename: "{app}\SansView.exe"; Tasks: desktopicon; WorkingDir: "{app}" ; IconFilename: "{app}\images\ball.ico"
79Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\SansView-2.1.1";  Filename: "{app}\SansView.exe"; Tasks: quicklaunchicon; WorkingDir: "{app}"; IconFilename: "{app}\images\ball.ico"
80
81
82[Run]
83Filename: "{app}\SansView.exe"; Description: "{cm:LaunchProgram, SansView}";    Flags: nowait postinstall skipifsilent
84; Install the Microsoft C++ DLL redistributable package if it is provided and the DLLs are not present on the target system.
85; Note that the redistributable package is included if the app was built using Python 2.6 or 2.7, but not with 2.5.
86; Parameter options:
87; - for silent install use: "/q"
88; - for silent install with progress bar use: "/qb"
89; - for silent install with progress bar but disallow cancellation of operation use: "/qb!"
90; 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.
91;Filename: "{app}\vcredist_x86.exe"; Parameters: "/qb!"; WorkingDir: "{tmp}"; StatusMsg: "Installing Microsoft Visual C++ 2008 Redistributable Package ..."; Check: InstallVC90CRT(); Flags: skipifdoesntexist waituntilterminated
92
93
94[Dirs]
95Name: "{app}\"; Permissions: everyone-modify   
96
97
98[Code]
99function InstallVC90CRT(): Boolean;
100begin
101    Result := not DirExists('C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375');
102end;
103
104function NeedsAddPath(): boolean;
105var
106  oldpath: string;
107  newpath: string;
108  pathArr:    TArrayOfString;
109  i:        Integer;
110begin
111  RegQueryStringValue(HKEY_CURRENT_USER,'Environment','PATH', oldpath)
112  oldpath := oldpath + ';';
113  newpath := '%SANSVIEWPATH%';
114  i := 0;
115  while (Pos(';', oldpath) > 0) do begin
116    SetArrayLength(pathArr, i+1);
117    pathArr[i] := Copy(oldpath, 0, Pos(';', oldpath)-1);
118    oldpath := Copy(oldpath, Pos(';', oldpath)+1, Length(oldpath));
119    i := i + 1;
120    // Check if current directory matches app dir
121    if newpath = pathArr[i-1]
122    then begin
123      Result := False;
124      exit;
125    end;
126  end;
127  Result := True;
128end;
129
130
131[UninstallDelete]
132; Delete directories and files that are dynamically created by the application (i.e. at runtime).
133Type: filesandordirs; Name: "{app}\.matplotlib"
134Type: files; Name: "{app}\*.*"
135; The following is a workaround for the case where the application is installed and uninstalled but the
136;{app} directory is not deleted because it has user files.  Then the application is installed into the
137; existing directory, user files are deleted, and the application is un-installed again.  Without the
138; directive below, {app} will not be deleted because Inno Setup did not create it during the previous
139; installation.
140Type: dirifempty; Name: "{app}"
141
Note: See TracBrowser for help on using the repository browser.