I hereby claim:
- I am rc-chuah on github.
- I am rc_chuah (https://keybase.io/rc_chuah) on keybase.
- I have a public key whose fingerprint is E0E6 04AA F2C4 1709 5C9A 00F3 398A 22F9 68C0 1908
To claim this, I am signing this object:
Write-Host "Hello, World!" |
@echo off | |
openfiles > nul 2>&1 | |
if %ErrorLevel% equ 0 ( | |
echo [+] Running As Administrator | |
) else ( | |
echo [!] Not Running As Administrator | |
) | |
pause |
I hereby claim:
To claim this, I am signing this object:
; Set the name of the installer | |
Outfile "Hello-World.exe" | |
; Create a default section. | |
Section | |
; Create a popup box, with an OK button and the text "Hello, World!". | |
MessageBox MB_OK "Hello, World!" | |
SectionEnd |
; VersionInfo.nsi | |
; | |
; This script shows you how to add version information to an installer. | |
; Windows shows this information on the Version tab of the File properties. | |
;-------------------------------- | |
Name "Version Info" | |
OutFile "VersionInfo.exe" |
!define /date BUILD_YEAR "%Y" | |
!define PRODUCT_VERSION "${PRODUCT_MAJOR}.${PRODUCT_MINOR}.${PRODUCT_TIMESTAMP}.${PRODUCT_BUILD}" | |
!define PRODUCT_NAME "AwesomeProgram" | |
!define OUT_FILE_NAME "${PPRODUCT_NAME}_${PRODUCT_VERSION}_setup.exe" | |
;version info | |
VIProductVersion "${PRODUCT_VERSION}" | |
VIAddVersionKey "ProductName" "Awesome Program Installer" | |
VIAddVersionKey "OriginalFilename" "${OUT_FILE_NAME}" | |
VIAddVersionKey "CompanyName" "Awesomness Inc" |
[Setup] | |
AppName=Hello World | |
AppVerName=Hello World 1 | |
UsePreviousAppDir=false | |
DefaultDirName={autopf}\Hello World | |
Uninstallable=false | |
OutputBaseFilename=Hello-World | |
PrivilegesRequired=none | |
[Messages] |
while($true) { | |
Write-Host "Hello, World!" | |
} |
#include <windows.h> | |
void ClearScreen() { | |
COORD topLeft = { 0, 0 }; | |
HANDLE hStdOut; | |
DWORD written; | |
CONSOLE_SCREEN_BUFFER_INFO screen; | |
DWORD dwConSize; | |
hStdOut = GetStdHandle(STD_OUTPUT_HANDLE); | |
GetConsoleScreenBufferInfo(hStdOut, &screen); |
#include <windows.h> | |
void ClearScreen() { | |
HANDLE hStdOut; | |
CONSOLE_SCREEN_BUFFER_INFO csbi; | |
DWORD count; | |
DWORD cellCount; | |
COORD homeCoords = { 0, 0 }; | |
hStdOut = GetStdHandle(STD_OUTPUT_HANDLE); | |
if (hStdOut == INVALID_HANDLE_VALUE) |