source: sasview/sansview/scripts/installer_new.iss @ 25cba72

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 25cba72 was c4af24f, checked in by Gervaise Alina <gervyh@…>, 13 years ago

test installer.iss

  • Property mode set to 100644
File size: 4.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=SansView
10AppVerName=SansView-1.9.2dev_AUG
11AppPublisher=(c) 2009, 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-Dev
17DefaultGroupName=DANSE\SansView-1.9.2dev_AUG
18DisableProgramGroupPage=yes
19LicenseFile=license.txt
20OutputBaseFilename=setupSansView
21SetupIconFile=C:\Documents and Settings\galina\workspace\trunk\sansview\images\ball.ico
22Compression=lzma
23SolidCompression=yes
24PrivilegesRequired=none
25
26
27[Registry]
28Root: HKCR;     Subkey: ".xml"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
29Root: HKCR;     Subkey: ".txt"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
30Root: HKCR;     Subkey: ".asc"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
31Root: HKCR;     Subkey: ".dat"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
32Root: HKCR;     Subkey: ".tif"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
33Root: HKCR;     Subkey: ".abs"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
34Root: HKCR;     Subkey: ".d1d"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
35Root: HKCR;     Subkey: ".sans";        ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
36Root: HKCR;     Subkey: ".svs"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
37Root: HKCR;     Subkey: ".fitv";        ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
38Root: HKCR;     Subkey: ".inv"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
39Root: HKCR;     Subkey: ".prv"; ValueType: string;      ValueName: "";  ValueData: "{app}\SansView.exe";         Flags: uninsdeletevalue
40Root: HKCR; Subkey: "{app}\C:\Documents and Settings\galina\workspace\trunk\sansview\images\ball.ico";  ValueType: string; ValueName: "";       ValueData: "{app}\SansView.exe,0"
41Root: HKCR; Subkey: "{app}\SansView.exe\shell\open\command";    ValueType: string; ValueName: "";       ValueData: """{app}\SansView.exe""  ""%1"""
42Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment";     ValueType: expandsz; ValueName: "SANSVIEWPATH"; ValueData: "{app}";      Flags: uninsdeletevalue
43; Write to PATH (below) is disabled; need more work
44;Root: HKCU; Subkey: "Environment";     ValueType: expandsz; ValueName: "PATH"; ValueData: "%SANSVIEWPATH%;{olddata}";   Check: NeedsAddPath()
45
46
47[Languages]
48Name: "english";        MessagesFile: "compiler:Default.isl"
49
50
51[Tasks]
52Name: "desktopicon";    Description: "{cm:CreateDesktopIcon}";  GroupDescription: "{cm:AdditionalIcons}";       Flags: unchecked
53
54
55[Files]
56Source: "C:\Documents and Settings\galina\workspace\trunk\sansview\scripts\dist\SansView.exe";  DestDir: "{app}";       Flags: ignoreversion
57Source: "dist\*";       DestDir: "{app}";       Flags: ignoreversion recursesubdirs createallsubdirs
58Source: "C:\Documents and Settings\galina\workspace\trunk\sansview\images\*";   DestDir: "{app}\images";        Flags: ignoreversion recursesubdirs createallsubdirs
59Source: "C:\Documents and Settings\galina\workspace\trunk\sansview\test\*";     DestDir: "{app}\test";  Flags: ignoreversion recursesubdirs createallsubdirs
60;       NOTE: Don't use "Flags: ignoreversion" on any shared system files
61
62[Icons]
63Name: "{group}\SansView";       Filename: "{app}\SansView.exe"; WorkingDir: "{app}"
64Name: "{group}\{cm:UninstallProgram, SansView}";         Filename: "{uninstallexe}"
65Name: "{commondesktop}\SansView-1.9.2dev_AUG";  Filename: "{app}\SansView.exe"; Tasks: desktopicon; WorkingDir: "{app}"
66
67
68[Run]
69Filename: "{app}\SansView.exe"; Description: "{cm:LaunchProgram, SansView}";    Flags: nowait postinstall skipifsilent
70
71
72[Code]
73function NeedsAddPath(): boolean;
74var
75  oldpath: string;
76  newpath: string;
77  pathArr:    TArrayOfString;
78  i:        Integer;
79begin
80  RegQueryStringValue(HKEY_CURRENT_USER,'Environment','PATH', oldpath)
81  oldpath := oldpath + ';';
82  newpath := '%SANSVIEWPATH%';
83  i := 0;
84  while (Pos(';', oldpath) > 0) do begin
85    SetArrayLength(pathArr, i+1);
86    pathArr[i] := Copy(oldpath, 0, Pos(';', oldpath)-1);
87    oldpath := Copy(oldpath, Pos(';', oldpath)+1, Length(oldpath));
88    i := i + 1;
89    // Check if current directory matches app dir
90    if newpath = pathArr[i-1]
91    then begin
92      Result := False;
93      exit;
94    end;
95  end;
96  Result := True;
97end;
98
Note: See TracBrowser for help on using the repository browser.