@@ -285,11 +285,30 @@ $ps2exeParams = @{
285285Invoke-ps2exe @ps2exeParams
286286
287287if (Test-Path build\distributions\woodlanders-setup-launcher.exe ) {
288- Write-Host " EXE created successfully" - ForegroundColor Green
288+ Write-Host " Installer EXE created successfully" - ForegroundColor Green
289289} else {
290- Write-Host " Failed to create EXE" - ForegroundColor Red
290+ Write-Host " Failed to create installer EXE" - ForegroundColor Red
291291 exit 1
292292}
293+
294+ Write-Host " Converting uninstaller to EXE..." - ForegroundColor Gray
295+ $uninstallParams = @ {
296+ inputFile = " launcher\uninstall.ps1"
297+ outputFile = " build\distributions\uninstall-launcher.exe"
298+ title = " Woodlanders Launcher Uninstaller"
299+ description = " Uninstall Woodlanders Game Launcher"
300+ company = " Wagemaker UK"
301+ version = " 1.0.0.0"
302+ requireAdmin = $true
303+ noConsole = $false
304+ }
305+ Invoke-ps2exe @uninstallParams
306+
307+ if (Test-Path build\distributions\uninstall-launcher.exe ) {
308+ Write-Host " Uninstaller EXE created successfully" - ForegroundColor Green
309+ } else {
310+ Write-Host " Failed to create uninstaller EXE" - ForegroundColor Red
311+ }
293312Write-Host " "
294313
295314# Step 7: Create distribution package
@@ -306,6 +325,7 @@ Copy-Item launcher\uninstall.ps1 -Destination build\distributions\ -Force
306325# Create ZIP with all installer files
307326$zipFiles = @ (
308327 " build\distributions\woodlanders-setup-launcher.exe" ,
328+ " build\distributions\uninstall-launcher.exe" ,
309329 " build\distributions\woodlanders-launcher.jar" ,
310330 " build\distributions\launcher.ico" ,
311331 " build\distributions\install.ps1" ,
@@ -333,9 +353,11 @@ Write-Host ""
333353
334354Write-Host " ZIP Contents:" - ForegroundColor Cyan
335355Write-Host " - woodlanders-setup-launcher.exe (installer)" - ForegroundColor Gray
356+ Write-Host " - uninstall-launcher.exe (uninstaller)" - ForegroundColor Gray
336357Write-Host " - woodlanders-launcher.jar (application)" - ForegroundColor Gray
337358Write-Host " - launcher.ico (icon)" - ForegroundColor Gray
338- Write-Host " - install.ps1 (PowerShell alternative)" - ForegroundColor Gray
359+ Write-Host " - install.ps1 (PowerShell script)" - ForegroundColor Gray
360+ Write-Host " - uninstall.ps1 (PowerShell script)" - ForegroundColor Gray
339361Write-Host " - README.txt (instructions)" - ForegroundColor Gray
340362Write-Host " "
341363
0 commit comments