This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For | |
* ES5 | |
* ES6 | |
* CoffeeScript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define AppId "{INSERT HERE YOUR GUID}" | |
#define AppName "My App" | |
#define AppVersion "1.7" | |
[CustomMessages] | |
english.NewerVersionExists=A newer version of {#AppName} is already installed.%n%nInstaller version: {#AppVersion}%nCurrent version: | |
[Code] | |
// find current version before installation | |
function InitializeSetup: Boolean; | |
var Version: String; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define ProjectURL "http://www.google.fr" | |
[CustomMessages] | |
english.Website=Website | |
[Code] | |
// link in installer footer | |
procedure URLLabelOnClick(Sender: TObject); | |
var | |
ErrorCode: Integer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Code] | |
function LoadValueFromXML(const AFileName, APath: string): string; | |
var | |
XMLNode: Variant; | |
XMLDocument: Variant; | |
begin | |
Log('Get Xml text node: ' + AFileName); | |
Result := ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Code] | |
{ | |
// http://www.kynosarges.de/DotNetVersion.html | |
Indicates whether the specified version and service pack of the .NET Framework is installed. | |
version -- Specify one of these strings for the required .NET Framework version: | |
'v1.1.4322' .NET Framework 1.1 | |
'v2.0.50727' .NET Framework 2.0 | |
'v3.0' .NET Framework 3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Defines | |
#define MyAppVersion "1.0.0" | |
#define MyAppVersionInfoVersion "1.0.0" | |
#define MyAppName "My Superb App That Will Save The World" | |
#define MyAppPublisher "Superb, Inc." | |
#define MyAppURL "http://www.a-very-superb-url-to-my-app.com/" | |
#define MyAppCopyright "Copyright (C) Copyright 3056. All rights reserved." | |
#define MyAppId "{{88C6A6D9-324C-46E8-BA87-563D14021442}" | |
#define MyAppPath "{pf}\Superb\WorldSavingApp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; SHFileOperationまわりの定義を外部ファイルに分離している | |
#include "SHFileOperationModule.iss" | |
[Setup] | |
AppId=SHFileOperationExample | |
AppName=SHFileOperationExample | |
AppVersion=1.0.0 | |
VersionInfoVersion=1.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Setup] | |
AppId=XMLParseExample | |
AppName=XMLParseExample | |
AppVersion=1.0.0 | |
VersionInfoVersion=1.0.0 | |
VersionInfoDescription={#SetupSetting("AppName")} Installer | |
OutputBaseFilename={#SetupSetting("AppName")}_{#SetupSetting("AppVersion")} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Code] | |
type | |
Tproc = procedure(const msg: String); | |
Tfunc = function(const value: Integer): String; | |
procedure sample_proc(const msg: String); | |
begin | |
Log(msg); | |
end; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Count(What, Where: String): Integer; | |
begin | |
Result := 0; | |
if Length(What) = 0 then | |
exit; | |
while Pos(What,Where)>0 do | |
begin | |
Where := Copy(Where,Pos(What,Where)+Length(What),Length(Where)); | |
Result := Result + 1; | |
end; |
NewerOlder