Skip to content

Instantly share code, notes, and snippets.

View rc-chuah's full-sized avatar
💻
Programming In Progress

RC Chuah rc-chuah

💻
Programming In Progress
View GitHub Profile
@rc-chuah
rc-chuah / Example-Comment.iss
Created January 14, 2023 08:41
Example Comment In Inno Setup
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
@rc-chuah
rc-chuah / CodeDependencies.nsh
Created January 8, 2023 11:45
NSIS Download And Install C++ Redist 2017-2019
!include LogicLib.nsh
!macro customInit
Var /GLOBAL VCRedistDownload
${If} ${RunningX64}
;HKCR\Installer\Dependencies\VC,redist.x64,amd64,14.21,bundle\Dependents\{f4220b74-9edd-4ded-bc8b-0342c1e164d8}
;HKCR\Installer\Dependencies\VC,redist.x64,amd64,14.22,bundle\Dependents\{6361b579-2795-4886-b2a8-53d5239b6452}
;HKCR\Installer\Dependencies\VC,redist.x64,amd64,14.23,bundle\Dependents\{852adda4-4c78-4a38-b583-c0b360a329d6}
;HKCR\Installer\Dependencies\VC,redist.x64,amd64,14.24,bundle\Dependents\{282975d8-55fe-4991-bbbb-06a72581ce58}
@rc-chuah
rc-chuah / CodeDownloadFiles.iss
Created January 8, 2023 11:40
This script shows how the CreateDownloadPage support function can be used to download temporary files while showing the download progress to the user.
; -- CodeDownloadFiles.iss --
;
; This script shows how the CreateDownloadPage support function can be used to
; download temporary files while showing the download progress to the user.
[Setup]
AppName=My Program
AppVersion=1.5
WizardStyle=modern
DefaultDirName={autopf}\My Program
@rc-chuah
rc-chuah / 64BitThreeArch.iss
Created January 8, 2023 11:25
Demonstrates how to install a program built for three different architectures (x86, x64, ARM64) using a single installer.
; -- 64BitThreeArch.iss --
; Demonstrates how to install a program built for three different
; architectures (x86, x64, ARM64) using a single installer.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
[Setup]
AppName=My Program
AppVersion=1.5
WizardStyle=modern
@rc-chuah
rc-chuah / 64BitTwoArch.iss
Created January 8, 2023 11:23
Demonstrates how to install a program built for two different architectures (x86 and x64) using a single installer: on a "x86" edition of Windows the x86 version of the program will be installed but on a "x64" edition of Windows the x64 version will be installed.
; -- 64BitTwoArch.iss --
; Demonstrates how to install a program built for two different
; architectures (x86 and x64) using a single installer: on a "x86"
; edition of Windows the x86 version of the program will be
; installed but on a "x64" edition of Windows the x64 version will
; be installed.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
[Setup]
@rc-chuah
rc-chuah / helloworld2.pb
Created January 5, 2023 07:50
Hello World Message Box In PureBasic
MessageRequester("Example","Hello, World!", #PB_MessageRequester_Info)
@rc-chuah
rc-chuah / helloworld1.pb
Created January 5, 2023 07:45
Hello World Console In PureBasic
OpenConsole()
ConsoleTitle("Hello World Program")
PrintN("Hello, World!")
Print("Press Enter To Continue ... ")
Input()
CloseConsole()
@rc-chuah
rc-chuah / Install-WingetCreate.bat
Created September 12, 2022 11:55
Install Windows Package Manager Manifest Creator
@echo off
winget install --id Microsoft.WingetCreate
pause
@rc-chuah
rc-chuah / MsgBox3.c
Created June 13, 2022 12:54
Hello World Message Box Example
#include <windows.h>
int main() {
MessageBoxW(NULL, L"Hello, World!", L"Example", MB_ICONINFORMATION);
return 0;
}
@rc-chuah
rc-chuah / MsgBox2.c
Created June 13, 2022 12:53
Hello World Message Box Example
#include <windows.h>
int main() {
MessageBoxA(NULL, "Hello, World!", "Example", MB_ICONINFORMATION);
return 0;
}