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
| ;=# | |
| ; | |
| ; NSIS Associations Handler | |
| ; Provides functions for managing file types, protocols, and context menus | |
| ; by daemon.devin (daemon.devin@gmail.com) | |
| ; | |
| ; AVAILABLE FILETYPE MACROS | |
| ; ${GetFileTypeProgID} | |
| ; ${CheckFileTypeExists} | |
| ; ${GetFileTypeInfo} |
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
| /** | |
| * ActiveXObject Polyfill | |
| * Provides fallback implementations for common ActiveX objects | |
| * Note: This only works for specific objects and has limited functionality | |
| */ | |
| (function() { | |
| 'use strict'; | |
| // Skip if ActiveXObject already exists (IE) |
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
| ; RuntimeManager.nsh - Complete Runtime Detection, Download, and Installation | |
| ; Manages VC++ (2005-2022) and .NET (Framework/Core) redistributables | |
| ; Supports x86, x64, and ARM64 architectures | |
| !ifndef RUNTIME_MANAGER_NSH | |
| !define RUNTIME_MANAGER_NSH | |
| !ifndef LOGICLIB | |
| !include LogicLib.nsh | |
| !endif |
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
| ; ModernWinVer.nsh - Modern Windows Version Detection | |
| ; Optimized for Windows 10, 11, and current Server versions | |
| ; Extends and modernizes the standard WinVer.nsh | |
| !ifndef MODERN_WINVER_NSH | |
| !define MODERN_WINVER_NSH | |
| !include LogicLib.nsh | |
| ; Windows Version Constants (Major.Minor.Build) |
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
| ; Check if Windows Feature needs to be enabled (e.g., .NET 3.5 on Windows 10+) | |
| !define CheckWindowsFeature `!insertmacro _CheckWindowsFeature` | |
| !macro _CheckWindowsFeature _FEATURE _RESULT | |
| Push $0 | |
| Push $1 | |
| Push $R8 | |
| StrCpy ${_RESULT} "unknown" | |
| ; Use DISM to check Windows feature status |
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 Signing Utility with Certificate Support | |
| // Signs programs and verifies signatures using RSA cryptography with X.509 certificates | |
| // | |
| use base64::{engine::general_purpose, Engine as _}; | |
| use chrono::{Duration, Utc}; | |
| use clap::{Parser, Subcommand}; | |
| use der::{Decode, Encode}; | |
| use rsa::{ | |
| pkcs8::{DecodePrivateKey, DecodePublicKey, EncodePrivateKey, EncodePublicKey, LineEnding}, |
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
| use std::{ | |
| ffi::OsStr, | |
| os::windows::ffi::OsStrExt, | |
| path::PathBuf, | |
| ptr, | |
| }; | |
| use owo_colors::OwoColorize; | |
| use structopt::StructOpt; |
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
| ;=# | |
| ; | |
| ; CheckLink.nsh v.1.2 | |
| ; Developed by daemon.devin (daemon.devin@gmail.com) | |
| ; | |
| ; Determines if a path is a symbolic link, junction, | |
| ; hard link, or regular file/directory. | |
| ; | |
| ; LogicLib Macros: | |
| ; |
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
| /** | |
| * CreateSymlink.nsh v1.0 | |
| * | |
| * This function creates Windows symbolic links with flexible | |
| * options for different link types and path configurations. | |
| * | |
| * Parameters: | |
| * LinkPath - Specifies the new symbolic link name. | |
| * TargetPath - Specifies the path that the new link points to. | |
| * Type - Specifies if this symlink is a file or directory. |
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
| /** | |
| * CreateJunction.nsh v1.0 | |
| * | |
| * Creates Windows directory junctions (symlinks for directories) | |
| * using low-level Windows API calls. | |
| * | |
| * Macro Usage: | |
| * ${CreateJunction} "$JunctionPath" "$TargetPath" $0 $1 | |
| * $0 holds true/false | |
| * $1 holds error message if failed, empty if success |
NewerOlder