--- imach/src/imach.iss 2003/07/25 17:53:29 1.1 +++ imach/src/imach.iss 2004/05/24 18:35:48 1.2 @@ -5,26 +5,58 @@ [Setup] AppName=IMaCh -AppVerName=IMaCh Version 0.96c +AppVerName=IMaCh Version 0.97b AppCopyright=Copyright (C) 2002 INED/EUROREVES DefaultDirName={pf}\IMaCh DefaultGroupName=IMaCh UninstallDisplayIcon={app}\imach.exe +;;SetupIconFile={app}\imach.exe +;;UninstallIconFile={app}\imach.ico ; uncomment the following line if you want your installation to run on NT 3.51 too. ; MinVersion=4,3.51 ChangesAssociations=yes [Files] -Source: "imach.exe"; DestDir: "{app}\bin" -Source: "imach.htm"; DestDir: "{app}\doc" -Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme -Source: "imach.ico"; DestDir: "{app}\bin"; -Source: "gnuplot.exe"; DestDir: "{app}\bin"; -Source: "wgnuplot.hlp"; DestDir: "{app}\bin"; -Source: "website.url"; DestDir: "{app}"; +Source: imach.exe; DestDir: {app}\bin +Source: ..\doc\imach.htm; DestDir: {app}\doc +Source: Readme.txt; DestDir: {app}; Flags: isreadme +Source: imach.ico; DestDir: {app}\bin +Source: gnuplot.exe; DestDir: {app}\bin +Source: wgnuplot.hlp; DestDir: {app}\bin +Source: website.url; DestDir: {app} + +;; win95 +;;Source: ModifyAutoexec.exe; DestDir: {tmp} +Source: ..\mytry\mypar.imach; DestDir: {app}\mytry +Source: ..\mytry\mypar.gp; DestDir: {app}\mytry +Source: wgnuplot.mnu; DestDir: {app}\bin +;;Then add a [Run] section entry, telling Setup to execute the EXE after all other installation steps: + +[Run] +;Filename: "{tmp}\ModifyAutoexec.exe" +;If the program needs additional information, such as the value of the "{app}" constant, you could pass it via a command line parameter, i.e.: +;;Filename: {tmp}\ModifyAutoexec.exe; Parameters: """{app}"""; MinVersion: 1,0 +;To save some bytes, you could alternatively incorporate the installation task into your application's main EXE and have it perform the task when called with a special command line parameter. For example: +;Filename: "{app}\MyProgram.exe"; Parameters: "/DoTheTask" +; +;Inno Setup Extensions Knowledge Base +;Article 38 - Two utilities for environment variables, hosts and services changing +;http://www13.brinkster.com/vincenzog/isxart.asp?idart=38 +;Author: Andrey Adamovich +; +;usage sample: +; +;;Components: SERVER; Filename: {app}\uninstall\envinst.exe; Parameters: "-silent -broadcast -addval -name=path -value=""{app}\lib\server"" -append" + +; +;P.S. -silent is recommended for use in install scripts + + + [Icons] -Name: "{group}\IMaCH"; Filename: "{app}\bin\imach.exe"; Comment: "IMaCh 0.96c";IconFilename: "{app}\imach.ico" -Name: "{userdesktop}\IMaCH"; Filename: "{app}\bin\imach.exe"; Comment: "IMach 0.96c"; Flags: runmaximized +Name: {group}\IMaCH; Filename: {app}\bin\imach.exe; Comment: IMaCh 0.96c; IconFilename: {app}\imach.ico +Name: {userdesktop}\IMaCH; Filename: {app}\bin\imach.exe; Comment: IMach 0.96c; Flags: runmaximized +Name: {group}\Visit the IMaCh web site; Filename: {app}\website.url ; NOTE: Most apps do not need registry entries to be pre-created. If you ; don't know what the registry is or if you need to use it, then chances are @@ -38,19 +70,23 @@ Name: "{userdesktop}\IMaCH"; Filename: " ;;Root: HKCU; Subkey: "Software\EuroREVES_INED"; Flags: uninsdeletekeyifempty ;;Root: HKCU; Subkey: "Software\EuroREVES_INED\IMaCh"; Flags: uninsdeletekey ;;Root: HKLM; Subkey: "Software\EuroREVES_INED"; Flags: uninsdeletekeyifempty -Root: HKLM; Subkey: "Software\IMaCh"; Flags: uninsdeletekeyifempty -Root: HKLM; Subkey: "Software\IMaCh\imach"; ValueType: string; ValueName: "Current Version"; ValueData: "0.96c"; Flags: uninsdeletekeyifempty -Root: HKLM; Subkey: "Software\IMaCh\imach"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}" -Root: HKLM; Subkey: "Software\IMaCh\gnuplot"; ValueType: string; ValueName: "Current Version"; ValueData: "3.8i"; Flags: uninsdeletekeyifempty -Root: HKLM; Subkey: "Software\IMaCh\gnuplot"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}" - -Root: HKCR; Subkey: ".gp"; ValueType: string; ValueName: ""; ValueData: "gnuplot.exe"; Flags: uninsdeletevalue -Root: HKCR; Subkey: "gnuplot.exe"; ValueType: string; ValueName: ""; ValueData: "Gnuplot File"; Flags: uninsdeletekey -Root: HKCR; Subkey: "gnuplot.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\bin\gnuplot.exe"" ""%1"""; -Root: HKCR; Subkey: "gnuplot.exe\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\bin\gnuplot.exe,0" -; -Root: HKCR; Subkey: ".imach"; ValueType: string; ValueName: ""; ValueData: "IMaChFile"; Flags: uninsdeletevalue -Root: HKCR; Subkey: "IMaChFile"; ValueType: string; ValueName: ""; ValueData: "IMaCh Parameter File"; Flags: uninsdeletekey -Root: HKCR; Subkey: "IMaChFile\shell\edit\command"; ValueType: string; ValueName: ""; ValueData: """wordpad"" ""%1"""; Flags: uninsdeletekey -Root: HKCR; Subkey: "IMaChFile\shell\execute\command"; ValueType: string; ValueName: ""; ValueData: """{app}\bin\imach.exe"" ""%1"""; Flags: uninsdeletekey -Root: HKCR; Subkey: "IMaChFile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\bin\imach.ico" +Root: HKLM; Subkey: Software\IMaCh; Flags: uninsdeletekeyifempty +Root: HKLM; Subkey: Software\IMaCh\imach; ValueType: string; ValueName: Current Version; ValueData: 0.97b; Flags: uninsdeletekeyifempty +Root: HKLM; Subkey: Software\IMaCh\imach; ValueType: string; ValueName: InstallPath; ValueData: {app} +Root: HKLM; Subkey: Software\IMaCh\gnuplot; ValueType: string; ValueName: Current Version; ValueData: 4.0; Flags: uninsdeletekeyifempty +Root: HKLM; Subkey: Software\IMaCh\gnuplot; ValueType: string; ValueName: InstallPath; ValueData: {app} + +Root: HKCR; Subkey: .gp; ValueType: string; ValueName: ; ValueData: gnuplot.exe; Flags: uninsdeletevalue +Root: HKCR; Subkey: gnuplot.exe; ValueType: string; ValueName: ; ValueData: Gnuplot File; Flags: uninsdeletekey +Root: HKCR; Subkey: gnuplot.exe\shell\open\command; ValueType: string; ValueName: ; ValueData: """{app}\bin\gnuplot.exe"" ""%1""" +Root: HKCR; Subkey: gnuplot.exe\DefaultIcon; ValueType: string; ValueName: ; ValueData: {app}\bin\gnuplot.exe,0 +; +Root: HKCR; Subkey: .imach; ValueType: string; ValueName: ; ValueData: IMaChFile; Flags: uninsdeletevalue +Root: HKCR; Subkey: IMaChFile; ValueType: string; ValueName: ; ValueData: IMaCh Parameter File; Flags: uninsdeletekey +Root: HKCR; Subkey: IMaChFile\shell\edit\command; ValueType: string; ValueName: ; ValueData: """wordpad"" ""%1"""; Flags: uninsdeletekey +Root: HKCR; Subkey: IMaChFile\shell\execute\command; ValueType: string; ValueName: ; ValueData: """{app}\bin\imach.exe"" ""%1"""; Flags: uninsdeletekey +Root: HKCR; Subkey: IMaChFile\DefaultIcon; ValueType: string; ValueName: ; ValueData: {app}\bin\imach.ico +;;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment; MinVersion: 0,1 +;;User-specific environment variables are located at: +; +;HKEY_CURRENT_USER\Environment