| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- ; Script generated by the Inno Setup Script Wizard.
- ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
- [Setup]
- AppName=Ditto
- AppVerName=Ditto 3.10.0.0
- OutputBaseFilename=DittoSetup_3_10_0_0
- AppPublisher=Scott Brogden
- AppPublisherURL=ditto-cp.sourceforge.net
- AppSupportURL=ditto-cp.sourceforge.net
- AppUpdatesURL=ditto-cp.sourceforge.net
- DefaultDirName={pf}\Ditto
- DefaultGroupName=Ditto
- AppMutex=Ditto Is Now Running
- UsePreviousTasks=no
- DisableDirPage=yes
- DisableProgramGroupPage=yes
- DisableReadyPage=yes
- DirExistsWarning=no
- UninstallLogMode=overwrite
- ChangesAssociations=yes
- [Languages]
- Name: "English"; MessagesFile: "compiler:Default.isl"
- Name: "German"; MessagesFile: "German.isl"
- Name: "Italiano"; MessagesFile: "Italian.isl"
- Name: "French"; MessagesFile: "French.isl"
- Name: "Portuguese"; MessagesFile: "Portuguese.isl"
- Name: "Spanish"; MessagesFile: "Spanish.isl"
- Name: "Polski"; MessagesFile: "Polish.isl"
- Name: "Dutch"; MessagesFile: "Dutch.isl"
- [Tasks]
- Name: RunAtStartup; Description: "Run Ditto on Windows Startup";
- [Files]
- ;Unicode for 2000 and later
- Source: "..\Release\DittoU.exe"; DestDir: "{app}"; DestName: "Ditto.exe"; Flags: ignoreversion; MinVersion: 0, 4.0
- ;Non unicode for pre 2000
- Source: "..\Release\Ditto.exe"; DestDir: "{app}"; DestName: "Ditto.exe"; Flags: ignoreversion; MinVersion: 4.0, 0
- Source: "..\Release\focus.dll"; DestDir: "{app}"; BeforeInstall: BeforeFocusInstall(); Flags: ignoreversion restartreplace
- Source: "..\Release\sqlite3.dll"; DestDir: "{app}"; Flags: ignoreversion
- Source: "..\Release\AccessToSqlite.dll"; DestDir: "{app}"; Flags: ignoreversion
- Source: "..\zlib\zlib1.dll"; DestDir: "{app}"; Flags: ignoreversion
- Source: "Changes.txt"; DestDir: "{app}"
- Source: "..\Debug\Language\*"; DestDir: "{app}\Language"; BeforeInstall: BeforeLanguageInstall();
- Source: "mfc-crt\*"; DestDir: "{app}"
- ;Add help files
- Source: "..\Help\*.htm"; DestDir: "{app}\Help"; Flags: ignoreversion
- [Icons]
- Name: "{group}\Ditto"; Filename: "{app}\Ditto.exe";
- Name: "{group}\Ditto Help"; Filename: "{app}\Help\DittoGettingStarted.htm";
- Name: "{group}\Uninstall"; Filename: "{uninstallexe}"
- [Run]
- Filename: "{app}\Ditto.exe"; Description: "Launch Ditto"; Flags: nowait postinstall skipifsilent
- Filename: "{app}\Help\DittoGettingStarted.htm"; Description: "View Help"; Flags: nowait postinstall skipifsilent shellexec
- Filename: "{app}\Changes.txt"; Description: "View Change History"; Flags: nowait postinstall skipifsilent shellexec unchecked
- [Registry]
- Root: HKCU; Subkey: "Software\Ditto"; Flags: uninsdeletekey
- Root: HKCU; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "Ditto"; flags: uninsdeletevalue; ValueData: "{app}\Ditto.exe"; Tasks: RunAtStartup
- Root: HKCU; Subkey: "Software\Ditto"; ValueType: string; ValueName: "LanguageFile"; ValueData: {language}
- ;associate .dto with Ditto
- Root: HKCR; Subkey: ".dto"; ValueType: string; ValueName: ""; ValueData: "Ditto"; Flags: uninsdeletevalue
- Root: HKCR; Subkey: "Ditto"; ValueType: string; ValueName: ""; ValueData: "Ditto"; Flags: uninsdeletekey
- Root: HKCR; Subkey: "Ditto\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Ditto.exe,0"
- Root: HKCR; Subkey: "Ditto\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\Ditto.exe"" ""%1"""
- [Code]
- procedure BeforeFocusInstall();
- var
- sDir: String;
- begin
- sDir := ExpandConstant('{app}');
- DeleteFile(sDir+'\focus.dll')
- DeleteFile(sDir+'\focus.dll.old')
- DeleteFile(sDir+'\focus.dll.old.old')
- DeleteFile(sDir+'\focus.dll.old.old.old')
- RenameFile(sDir+'\focus.dll', sDir+'\focus.dll.old')
- RenameFile(sDir+'\focus.dll', sDir+'\focus.dll.old.old')
- RenameFile(sDir+'\focus.dll', sDir+'\focus.dll.old.old.old')
- end;
- procedure BeforeLanguageInstall();
- var
- sDir: String;
- begin
- sDir := ExpandConstant('{app}');
- RenameFile(sDir+'\Language\Italian.xml', sDir+'\Language\Italian.xml.old')
- end;
|