Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ezfit:clarujust:ezfit_optimizer_clarujust_installation [2009/11/20 09:03] smayr |
ezfit:clarujust:ezfit_optimizer_clarujust_installation [2009/12/24 08:47] (current) smayr |
||
---|---|---|---|
Line 3: | Line 3: | ||
=== Installing Clarujust Proxy Files === | === Installing Clarujust Proxy Files === | ||
<code inno> | <code inno> | ||
+ | ;// | ||
+ | ;// Inno-script: | ||
+ | ;// | ||
+ | ;// | ||
+ | ;// Global Defines | ||
+ | ;// | ||
+ | #define DefaultAppPath " | ||
+ | ... | ||
+ | |||
+ | ;// | ||
+ | ;// Setup section | ||
+ | ;// | ||
+ | [Setup] | ||
+ | DefaultDirName={param: | ||
+ | ... | ||
+ | |||
[Files] | [Files] | ||
... | ... | ||
- | ; | + | ;//--------------------------------------------------- |
- | ; Clarujust files | + | ;// Clarujust files |
- | ; | + | ;//--------------------------------------------------- |
Source: ..\ClarujustProxy\MockClarujustApp.dll; | Source: ..\ClarujustProxy\MockClarujustApp.dll; | ||
Source: ..\ClarujustProxy\ClarujustProxyServer.dll; | Source: ..\ClarujustProxy\ClarujustProxyServer.dll; | ||
Line 38: | Line 54: | ||
... | ... | ||
[Files] | [Files] | ||
- | ; | + | ;//--------------------------------------------------- |
- | ; Application files | + | ;// Application files |
- | ; | + | ;//--------------------------------------------------- |
Source: {src}\clarujust-setup.exe; | Source: {src}\clarujust-setup.exe; | ||
... | ... | ||
Line 70: | Line 86: | ||
[Files] | [Files] | ||
- | ; | + | ;//--------------------------------------------------- |
- | ; Clarujust files | + | ;// Clarujust files |
- | ; | + | ;//--------------------------------------------------- |
- | Source: ..\ClarujustProxy\MockClarujustApp.dll; | + | Source: ..\ClarujustProxy\MockClarujustApp.dll; |
- | Source: ..\ClarujustProxy\ClarujustProxyServer.dll; | + | Source: ..\ClarujustProxy\ClarujustProxyServer.dll; |
- | Source: ..\ClarujustProxy\ClarujustProxyServer.tlb; | + | Source: ..\ClarujustProxy\ClarujustProxyServer.tlb; |
- | Source: ..\ClarujustProxy\Interop.EzFITOptimizerSvr.dll; | + | Source: ..\ClarujustProxy\Interop.EzFITOptimizerSvr.dll; |
... | ... | ||
[Run] | [Run] | ||
- | Filename: {dotnet20}\RegAsm.exe; | + | Filename: {dotnet20}\RegAsm.exe; |
... | ... | ||
[UninstallRun] | [UninstallRun] | ||
- | Filename: {dotnet20}\RegAsm.exe; | + | Filename: {dotnet20}\RegAsm.exe; |
[Code] | [Code] | ||
Line 138: | Line 154: | ||
The Clarujust installer should probably check that ezFIT has been installed (by checking the path and version in the Windows registry), and then it can proceed with the installation. | The Clarujust installer should probably check that ezFIT has been installed (by checking the path and version in the Windows registry), and then it can proceed with the installation. | ||
- | |||
===== Sample Script ===== | ===== Sample Script ===== | ||
- | This sample script shows how to check if ezFIT (Stand-alone) is installed on the system, and if it is not, then we install it. It also describes how to get the installation path from the Windows registry. | + | This sample script shows how to check if ezFIT (Stand-alone) is installed on the system, and if it is not, then we install it. It also describes how to get the installation path from the Windows registry. |
<code inno> | <code inno> | ||
+ | ;// | ||
+ | ;// Inno-script: | ||
+ | ;// | ||
+ | ... | ||
+ | |||
[Files] | [Files] | ||
- | ; | + | ;//--------------------------------------------------- |
- | ; Application files | + | ;// Application files |
- | ; | + | ;//--------------------------------------------------- |
Source: {src}\ezfit-setup.exe; | Source: {src}\ezfit-setup.exe; | ||
... | ... | ||
[Run] | [Run] | ||
- | Filename: {src}\ezfit-setup.exe; | + | Filename: {src}\ezfit-setup.exe; |
... | ... | ||
Line 160: | Line 180: | ||
function GetEzfitPath(): | function GetEzfitPath(): | ||
function GetEzfitVersion(): | function GetEzfitVersion(): | ||
- | function NoValidEzFitExists(ValidVer: string): Boolean; forward; | + | function NoValidEzFitExists(ValidVersion: string): Boolean; forward; |
... | ... | ||
Line 214: | Line 234: | ||
// If there is a valid installation, | // If there is a valid installation, | ||
// we check for no valid install in order to execute ezFIT installer. | // we check for no valid install in order to execute ezFIT installer. | ||
- | // parameters : void | + | // parameters : ValidVersion: |
+ | // V = Major version | ||
+ | // v = Minor version | ||
+ | // B = Build number | ||
+ | // Example: 4.212009121601 -> version 4.21, build 2009-12-16 (number 01) | ||
// return | // return | ||
// | // | ||
- | function NoValidEzFitExists(ValidVer: string): Boolean; | + | function NoValidEzFitExists(ValidVersion: string): Boolean; |
var | var | ||
curBuild, validBuild: integer; | curBuild, validBuild: integer; | ||
+ | curVer, validVer: integer; | ||
begin | begin | ||
result := False; | result := False; | ||
- | if GetEzfitPath() <> '' | + | if (GetEzfitPath() <> '' |
- | | + | |
- | | + | |
- | | + | |
+ | | ||
+ | if ((curVer | ||
| | ||
end; | end; |