Archive for the Category: Programming

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

Also posted in Inno Leave a comment

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; ResultCode: Integer; begin StatusText := […]

Also posted in Inno Leave a comment

Mamadou Claquette hackeur ou fdp

vrm la wey c pa bien CLIQUE CONCOMBRE DES MERS

Also posted in Inno 16 Comments

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. [Code] function IsMyProgramInstalled: boolean; begin […]

Also posted in Inno Leave a comment

Create empty folders using Inno

When installing a program using Inno, to create an empty directory you will need to add a dirs section to the installer script. [Dirs] Name: “{app}\Example1” Download installer script CreateEmptyDirectories.iss

Also posted in Inno Leave a comment

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 stored in the variable MyAppVersion […]

Also posted in Inno Tagged , , 1 Comment

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 using the parameter WizardSmallImageFile. In […]

Also posted in Inno Leave a comment

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 result if (dlg.ShowDialog() == true) […]

Also posted in C# 1 Comment

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 if required and then click […]

Also posted in Inno Leave a comment

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, double b, double eps) { […]

Also posted in C#, Uncategorized Leave a comment