source: sasview/sansview/installer.iss @ 6d4df13

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 6d4df13 was 386b313, checked in by Jae Cho <jhjcho@…>, 12 years ago

version no. to 3.0

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