Free Disk Space Inno

      No Comments on Free Disk Space Inno

To show a label on the Inno wizard page displaying the amount of require disk space. Add the following code section to the installer script. [Code] procedure InitializeWizard; begin WizardForm.DiskSpaceLabel.Visible := True; // False to hide end; Download installer script FreeDiskSpace.iss

Check DotNet Framework is installed during Inno Setup

To check that DotNet framework is installed during an Inno install. Add the following code section to the install script. ; Check if dot net is insalled [code] function FrameworkIsNotInstalled: Boolean; begin Result := not RegKeyExists(HKEY_LOCAL_MACHINE, ‘Software\Microsoft\.NETFramework\policy\v4.0’); end; // Install dot net with feedback [Code] procedure InstallFramework; var StatusText: string;… Read more »

Check if a program is running before installing with Inno

To check if a program is running before installing with inno. You will need to add the following code section to the installer script. Went the installer starts the function InitializeSetup is called, which calls the function IsAppRunning with the parameter of the program name we want to check is… Read more »

Check if a program exists before installing with Inno

To check if a program exists before installing with Inno add the following code section to the installer script. In this example we will be testing for the file “c:\Example\Test.exe”. If the test.exe file exist a message box showing “Program Already Exists” will be displayed and the installer will terminate…. Read more »

Automatically Get Target Exe Version in Inno

      1 Comment on Automatically Get Target Exe Version in Inno

This example shows how to automattically update the version numbers for you Inno installer based on the version number of the target exe program. In this example the installer will be installing a program called notepad.exe. At the top of the script. The version number from the target exe is… Read more »

Custom Inno Theme

      No Comments on Custom Inno Theme

To customise the look of your inno installer, you can modify the images displayed on the install pages. The large image on the left hand side of the instal pages is set using the parameter WizardImageFile. The small image shown on the top right of the install pages is set… Read more »

C# Open File Dialog

      1 Comment on C# Open File Dialog

// Configure open file dialog box Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog(); dlg.Title = “Select File”; // dialog title dlg.FileName = “”; // Default file name dlg.DefaultExt = “.csv”; // Default file extension dlg.Filter = “CSV File (.csv)|*.csv|All Files (*.*)|*.*”; // Filter files by extension // Show the dialog and process… Read more »

Installing Inno Installer

      No Comments on Installing Inno Installer

Detailed below is the procedure for installing Inno. Download the setup file. I will be installing version 5.5.5 http://www.jrsoftware.org/download.php/is.exe Select your language from the combo box and then click ok Click the Next button on the welcome screen. Select Accept and then click the next button Change the install location… Read more »

Almost Equal C#

      No Comments on Almost Equal C#

Test if two values are almost equal. /// /// Test if two doubles are approximately equal /// /// Test variable one /// Test variable two /// epsilon a measure of equality /// boolean true = values are approximately equal, false = values are not equal public static Boolean almostEqual(double a,… Read more »