Skip to content

Instantly share code, notes, and snippets.

View nhannt201's full-sized avatar
🎯
Focusing

Nguyễn Trung Nhẫn nhannt201

🎯
Focusing
View GitHub Profile
@nhannt201
nhannt201 / readme.md
Created July 11, 2021 08:52 — forked from mattiasghodsian/readme.md
How to create a Windows application Installer with NSIS

Nullsoft Scriptable Install System is also known as NSIS open-source system to create Windows application installers. NSIS is a script-based system allowing you to create the logic behind your installer/setup file in a complex way to install tasks. NSIS offers plug-ins and other scripts, for example, to download/install 3rd-party files or communicate with Windows.

The tutorial application

This tutorial will guide you through installing and creating your first Windows installer with Nullsoft Scriptable Install System and how to compile your project. Captura Portable will be used as "our application" for the sake of this tutorial.

Installation

Head to NSIS official site and download the latest release and install it. Run NSIS and you will be welcomed with a menu like below, It's always a good practice to read the Documentation before jumping in t

@nhannt201
nhannt201 / autoplay.java
Created September 20, 2020 13:10 — forked from aprock/autoplay.java
simple trick to autoplay an html5 video element in a webview. (inject javascript to play on load)
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class MainActivity extends Activity {
private WebView webview;