Skip to content

potplayer_install.ps1

Corey Watson edited this page Dec 1, 2025 · 1 revision

potplayer_install.ps1

Downloads and silently installs PotPlayer media player with automatic architecture detection.

Overview

Downloads and silently installs PotPlayer media player. Automatically selects the correct version (32-bit or 64-bit) based on system architecture.

Purpose

Downloads and silently installs PotPlayer media player. Automatically selects the correct version (32-bit or 64-bit) based on system architecture.

Prerequisites

  • Windows OS
  • Administrator privileges
  • Internet connectivity

Configuration

Required Inputs

  • $baseUrl : Base URL for PotPlayer website to scrape download links

Behavior

  1. Validates input parameters
  2. Fetches PotPlayer website to find download links
  3. Selects appropriate version based on OS architecture
  4. Downloads installer to temp directory
  5. Installs silently using /S switch
  6. Cleans up installer file

Security Notes

  • No secrets in logs
  • Downloads from official PotPlayer website

Exit Codes

  • 0 = Success
  • 1 = Failure

Example Output

[ INPUT VALIDATION ]
--------------------------------------------------------------
Base URL : https://potplayer.daum.net
System : 64-bit
Inputs validated successfully

[ DOWNLOAD ]
--------------------------------------------------------------
Fetching download links from PotPlayer website...
Found installer for 64-bit system
Downloading PotPlayer installer...
Download completed successfully

[ INSTALLATION ]
--------------------------------------------------------------
Installing PotPlayer silently...
Installation completed successfully

[ CLEANUP ]
--------------------------------------------------------------
Removing installer file...
Cleanup completed

[ FINAL STATUS ]
--------------------------------------------------------------
Result : SUCCESS
PotPlayer installed successfully

[ SCRIPT COMPLETED ]
--------------------------------------------------------------

Version History

  • 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps

Links

Clone this wiki locally