💿 LDUninstaller-v2.6.0 — Standart Kurulum Sihirbazi ve Otomasyon

This commit is contained in:
LilDosto 2026-10-29 00:41:20 +03:00
parent 546da2fbdb
commit b47604a9c1
6 changed files with 123 additions and 43 deletions

View file

@ -1,8 +1,8 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<Version>2.5.0</Version> <Version>2.6.0</Version>
<AssemblyVersion>2.5.0.0</AssemblyVersion> <AssemblyVersion>2.6.0.0</AssemblyVersion>
<FileVersion>2.5.0.0</FileVersion> <FileVersion>2.6.0.0</FileVersion>
<Product>LD Uninstaller</Product> <Product>LD Uninstaller</Product>
<Company>LD Software</Company> <Company>LD Software</Company>
<Authors>LD Software</Authors> <Authors>LD Software</Authors>

Binary file not shown.

50
installer.iss Normal file
View file

@ -0,0 +1,50 @@
#ifndef MyAppVersion
#define MyAppVersion "2.5.0"
#endif
#ifndef SourceDir
#define SourceDir "LD Uninstaller v2.5.0"
#endif
#define MyAppName "LD Uninstaller"
#define MyAppPublisher "LD Software"
#define MyAppURL "https://github.com/LilDosto/LD-Unistaller"
#define MyAppExeName "LDUninstaller.Launcher.exe"
[Setup]
AppId={{E68A869E-862D-4E9A-A372-88E07F8FF4A1}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=LICENSE
OutputDir=.
OutputBaseFilename=LD-Uninstaller-Setup-v{#MyAppVersion}
SetupIconFile=app.ico
Compression=lzma2/ultra64
SolidCompression=yes
WizardStyle=modern
PrivilegesRequired=admin
ArchitecturesInstallIn64BitMode=x64compatible
UninstallDisplayIcon={app}\{#MyAppExeName}
[Languages]
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
[Files]
Source: "{#SourceDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "app.ico"; DestDir: "{app}"; Flags: ignoreversion
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\app.ico"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon; IconFilename: "{app}\app.ico"
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

View file

@ -1,4 +1,4 @@
param( param(
[ValidateSet("major", "minor", "patch", "current")] [ValidateSet("major", "minor", "patch", "current")]
[string]$Type = "current", [string]$Type = "current",
[string]$Message = "" [string]$Message = ""
@ -12,7 +12,7 @@ $versionFile = Join-Path $root "version.json"
$propsFile = Join-Path $root "Directory.Build.props" $propsFile = Join-Path $root "Directory.Build.props"
if (-not (Test-Path $versionFile)) { if (-not (Test-Path $versionFile)) {
@{ major = 2; minor = 4; patch = 0; version = "2.4.0" } | ConvertTo-Json | Set-Content $versionFile @{ major = 2; minor = 5; patch = 0; version = "2.5.0" } | ConvertTo-Json | Set-Content $versionFile
} }
$vData = Get-Content $versionFile -Raw | ConvertFrom-Json $vData = Get-Content $versionFile -Raw | ConvertFrom-Json
@ -56,6 +56,7 @@ $propsContent = @"
<Product>LD Uninstaller</Product> <Product>LD Uninstaller</Product>
<Company>LD Software</Company> <Company>LD Software</Company>
<Authors>LD Software</Authors> <Authors>LD Software</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup> </PropertyGroup>
</Project> </Project>
"@ "@
@ -74,6 +75,10 @@ foreach ($old in $oldFolders) {
} catch { } } catch { }
} }
# Eski kurulum exe ve zip dosyalarini temizle
Get-ChildItem -Path $root -File -Filter "LD-Uninstaller-Setup-v*.exe" | Remove-Item -Force -ErrorAction SilentlyContinue
Get-ChildItem -Path $root -File -Filter "LD-Uninstaller-v*.zip" | Remove-Item -Force -ErrorAction SilentlyContinue
$targetFolderName = "LD Uninstaller v$newVersion" $targetFolderName = "LD Uninstaller v$newVersion"
$targetDir = Join-Path $root $targetFolderName $targetDir = Join-Path $root $targetFolderName
@ -103,15 +108,35 @@ Get-ChildItem -Path $targetDir -Filter "*.pdb" | Remove-Item -Force -ErrorAction
try { Remove-Item -Path (Join-Path $root "publish") -Recurse -Force -ErrorAction SilentlyContinue } catch { } try { Remove-Item -Path (Join-Path $root "publish") -Recurse -Force -ErrorAction SilentlyContinue } catch { }
try { Remove-Item -Path (Join-Path $root "dist") -Recurse -Force -ErrorAction SilentlyContinue } catch { } try { Remove-Item -Path (Join-Path $root "dist") -Recurse -Force -ErrorAction SilentlyContinue } catch { }
# 5. Surum ZIP Arsivini Olustur # 5. Windows Kurulum Sihirbazi (Setup.exe) ve ZIP Arsivini Olustur
$oldZips = Get-ChildItem -Path $root -File -Filter "LD-Uninstaller-v*.zip" Copy-Item (Join-Path $root "app.ico") (Join-Path $targetDir "app.ico") -Force
foreach ($oz in $oldZips) {
try { Remove-Item -Path $oz.FullName -Force -ErrorAction SilentlyContinue } catch { } # Inno Setup ile Setup.exe derle
$isccCandidates = @(
"C:\Users\lildosto\AppData\Local\Programs\Inno Setup 6\ISCC.exe",
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe",
"C:\Program Files\Inno Setup 6\ISCC.exe"
)
$isccPath = $null
foreach ($cand in $isccCandidates) {
if (Test-Path $cand) { $isccPath = $cand; break }
} }
$setupName = "LD-Uninstaller-Setup-v$newVersion.exe"
$setupPath = Join-Path $root $setupName
if ($isccPath -and (Test-Path (Join-Path $root "installer.iss"))) {
Write-Host "Windows Kurulum Sihirbazi derleniyor: $setupName..." -ForegroundColor Cyan
& $isccPath /Q "/DMyAppVersion=$newVersion" "/DSourceDir=$targetDir" (Join-Path $root "installer.iss")
if (Test-Path $setupPath) {
Write-Host "Kurulum dosyasi basariyla olusturuldu: $setupName" -ForegroundColor Green
}
}
# Portable ZIP arsivi
$zipName = "LD-Uninstaller-v$newVersion.zip" $zipName = "LD-Uninstaller-v$newVersion.zip"
$zipPath = Join-Path $root $zipName $zipPath = Join-Path $root $zipName
Write-Host "Surum arsivi olusturuluyor: $zipName..." -ForegroundColor Cyan Write-Host "Surum zip arsivi olusturuluyor: $zipName..." -ForegroundColor Cyan
Compress-Archive -Path "$targetDir\*" -DestinationPath $zipPath -Force Compress-Archive -Path "$targetDir\*" -DestinationPath $zipPath -Force
# 6. Git Islemleri ve GitHub Push # 6. Git Islemleri ve GitHub Push
@ -119,7 +144,7 @@ if (Test-Path (Join-Path $root ".git")) {
Write-Host "`nGit degisiklikleri isleniyor ve GitHub'a aktariliyor..." -ForegroundColor Cyan Write-Host "`nGit degisiklikleri isleniyor ve GitHub'a aktariliyor..." -ForegroundColor Cyan
try { try {
if ([string]::IsNullOrWhiteSpace($Message)) { if ([string]::IsNullOrWhiteSpace($Message)) {
$Message = "Release v${newVersion}: Yeni Logo ve Baslangic Yoneticisi Guncellemesi" $Message = "Release v${newVersion}: Standart Windows Kurulum Sihirbazi ve Otomasyon"
} }
git add . git add .
git commit -m $Message git commit -m $Message
@ -144,7 +169,7 @@ using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text; using System.Text;
public class GitCredsEngine public class GitCredsEngine2
{ {
[DllImport("Advapi32.dll", SetLastError = true, CharSet = CharSet.Unicode)] [DllImport("Advapi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern bool CredRead(string target, int type, int reservedFlag, out IntPtr credentialPtr); public static extern bool CredRead(string target, int type, int reservedFlag, out IntPtr credentialPtr);
@ -180,11 +205,11 @@ public class GitCredsEngine
} }
} }
"@ "@
if (-not ([System.Management.Automation.PSTypeName]'GitCredsEngine').Type) { if (-not ([System.Management.Automation.PSTypeName]'GitCredsEngine2').Type) {
Add-Type -TypeDefinition $code -Language CSharp Add-Type -TypeDefinition $code -Language CSharp
} }
$token = [GitCredsEngine]::GetToken() $token = [GitCredsEngine2]::GetToken()
if ($env:GITHUB_TOKEN) { $token = $env:GITHUB_TOKEN } if ($env:GITHUB_TOKEN) { $token = $env:GITHUB_TOKEN }
if ($env:GH_TOKEN) { $token = $env:GH_TOKEN } if ($env:GH_TOKEN) { $token = $env:GH_TOKEN }
@ -210,7 +235,7 @@ public class GitCredsEngine
$releaseNotes = "LD Uninstaller v$newVersion guncellemesi." $releaseNotes = "LD Uninstaller v$newVersion guncellemesi."
} }
$releaseTitle = if (![string]::IsNullOrWhiteSpace($Message)) { $Message } else { "LDUninstaller-v$newVersion - Guncelleme" } $releaseTitle = if (![string]::IsNullOrWhiteSpace($Message)) { $Message } else { "LDUninstaller-v$newVersion - Setup" }
$releasePayload = @{ $releasePayload = @{
tag_name = "v$newVersion" tag_name = "v$newVersion"
@ -238,13 +263,15 @@ public class GitCredsEngine
$ghRelease = Invoke-RestMethod -Uri $postUrl -Headers $apiHeaders -Method Post -Body $jsonBytes -ContentType "application/json; charset=utf-8" $ghRelease = Invoke-RestMethod -Uri $postUrl -Headers $apiHeaders -Method Post -Body $jsonBytes -ContentType "application/json; charset=utf-8"
} }
# ZIP dosyasini release asset olarak yukle # Dosyalari release asset olarak yukle (Setup.exe ve zip)
if ($ghRelease -and (Test-Path $zipPath)) { $filesToUpload = @($setupPath, $zipPath) | Where-Object { Test-Path $_ }
Write-Host "Surum paketi ($zipName) release sayfasina yukleniyor..." -ForegroundColor Cyan foreach ($fPath in $filesToUpload) {
$fName = Split-Path $fPath -Leaf
Write-Host "Release varligi yukleniyor: $fName..." -ForegroundColor Cyan
if ($ghRelease.assets) { if ($ghRelease.assets) {
foreach ($asset in $ghRelease.assets) { foreach ($asset in $ghRelease.assets) {
if ($asset.name -eq $zipName) { if ($asset.name -eq $fName) {
try { try {
Invoke-RestMethod -Uri "https://api.github.com/repos/$repoOwner/$repoName/releases/assets/$($asset.id)" -Headers $apiHeaders -Method Delete | Out-Null Invoke-RestMethod -Uri "https://api.github.com/repos/$repoOwner/$repoName/releases/assets/$($asset.id)" -Headers $apiHeaders -Method Delete | Out-Null
} catch { } } catch { }
@ -252,15 +279,16 @@ public class GitCredsEngine
} }
} }
$uploadUri = $ghRelease.upload_url -replace '\{\?name,label\}', "?name=$zipName" $uploadUri = $ghRelease.upload_url -replace '\{\?name,label\}', "?name=$fName"
$contentType = if ($fName.EndsWith(".exe")) { "application/vnd.microsoft.portable-executable" } else { "application/zip" }
$uploadHeaders = @{ $uploadHeaders = @{
"Authorization" = "Bearer $token" "Authorization" = "Bearer $token"
"User-Agent" = "LDUninstaller-ReleaseScript" "User-Agent" = "LDUninstaller-ReleaseScript"
"Accept" = "application/vnd.github+json" "Accept" = "application/vnd.github+json"
} }
$zipBytes = [System.IO.File]::ReadAllBytes($zipPath) $fileBytes = [System.IO.File]::ReadAllBytes($fPath)
$uploadResult = Invoke-RestMethod -Uri $uploadUri -Headers $uploadHeaders -Method Post -Body $zipBytes -ContentType "application/zip" $uploadResult = Invoke-RestMethod -Uri $uploadUri -Headers $uploadHeaders -Method Post -Body $fileBytes -ContentType $contentType
Write-Host "Asset basariyla yuklendi: $($uploadResult.browser_download_url)" -ForegroundColor Green Write-Host "Yuklendi: $($uploadResult.browser_download_url)" -ForegroundColor Green
} }
Write-Host "`nGitHub Release yayinda:" -ForegroundColor Yellow Write-Host "`nGitHub Release yayinda:" -ForegroundColor Yellow
@ -273,6 +301,8 @@ public class GitCredsEngine
Write-Host "`n[+] Basariyla Tamamlandi!" -ForegroundColor Green Write-Host "`n[+] Basariyla Tamamlandi!" -ForegroundColor Green
Write-Host "Ana dizinde olusturulan son guncel surum klasoru:" -ForegroundColor Yellow Write-Host "Ana dizinde olusturulan son guncel surum klasoru:" -ForegroundColor Yellow
Write-Host " -> $targetFolderName" -ForegroundColor White Write-Host " -> $targetFolderName" -ForegroundColor White
Write-Host "Standart Kurulum Paketi (Setup.exe):" -ForegroundColor Cyan
Write-Host " -> $setupName" -ForegroundColor White
Write-Host "GitHub Release hazir paketi:" -ForegroundColor White Write-Host "GitHub Release hazir paketi:" -ForegroundColor White
Write-Host " -> $zipName" -ForegroundColor Cyan Write-Host " -> $zipName" -ForegroundColor Cyan
Write-Host "Kullanima hazir yurutulebilir dosyalar:" -ForegroundColor Gray Write-Host "Kullanima hazir yurutulebilir dosyalar:" -ForegroundColor Gray

View file

@ -1,29 +1,29 @@
Bu sürümde, LD Uninstaller için özel tasarlanan modern logo/ikon paketi entegre edilmiş ve Başlangıç Yöneticisi'ndeki yetki ve açılış engelleme sorunları tamamen giderilmiştir. Bu sürümde, LD Uninstaller için tek tıkla masaüstü ve başlat menüsü kısayollarını oluşturan resmi kurulum sihirbazı (`Setup.exe`) geliştirilmiş, arayüz ve simge tasarımı zenginleştirilmiştir.
--- ---
### ✨ Neler Eklendi ve İyileştirildi? ### ✨ Neler Eklendi ve İyileştirildi?
**1. 🎨 Yepyeni Modern Logo ve Uygulama Simgesi (App Icon)** **1. 💿 Standart Windows Kurulum Sihirbazı (Setup.exe)**
- Uygulama için modern Windows 11 Fluent tasarımına uyumlu fütüristik 'LD' amblemi ve temizleme girdabı motifli yeni logo tasarlandı. - Program artık standart bir Windows uygulaması gibi tek tıkla kurulabilir:
- **Tüm Alanlara Entegre Edildi:** - **Masaüstü ve Başlat Menüsü Kısayolları:** Kurulum sırasında masaüstüne ve başlat menüsüne uygulama logosuyla kısayol eklenir.
- Arayüzün sol üst köşesindeki geçici mavi kutu kaldırılarak yüksek çözünürlüklü yeni logo yerleştirildi. - **Program Ekle / Kaldır Entegrasyonu:** Windows Ayarları (Yüklü Uygulamalar) ve Denetim Masası içerisine resmi kaldırıcı olarak kaydolur.
- Görev Yöneticisi (Task Manager), pencere başlıkları ve Windows Gezgini (klasör) üzerinde görünmesi için çoklu çözünürlüklü (`16x16`'dan `256x256`'ya) `.ico` dosyası yürütülebilir dosyalara gömüldü. - **Otomatik Yönetici Yetkilendirmesi:** Kurulum sonrasında programın tüm özellikleriyle sorunsuz çalışması için gerekli başlatıcı yapılandırması otomatik yapılır.
**2. ⚡ Başlangıç Yöneticisi ve Yetki Hatası Düzeltmesi** **2. 🎨 Yepyeni Modern Logo ve Uygulama Simgesi (App Icon)**
- Uygulama zaten Yönetici olarak açılmasına rağmen bazı uygulamaları kapatırken ortaya çıkan *"Yönetici yetkisi gerekebilir"* uyarısı ve kapatamama sorunu kökten çözüldü: - Modern Windows 11 Fluent Dark estetiğine uyumlu fütüristik 'LD' amblemi ve temizlik girdabı motifli yeni logo entegre edildi.
- **Başlangıç Klasörü Desteği:** `StartupFolder` altındaki kısayollar için hem `StartupApproved` ikili anahtarı hem de dosya devre dışı bırakma desteği eklendi. - Arayüz başlığı, pencere ikonları, Görev Yöneticisi ve Windows Gezgini üzerinde yüksek çözünürlüklü ikon görüntüsü sağlandı.
- **HKLM & 32-bit (Run32) Uyumu:** 64-bit Windows sistemlerinde `WOW6432Node` ve `HKLM` anahtarlarına ait programların açılış durumları doğru kayıt defteri dallarına yazılarak sorunsuz hale getirildi.
- **Servis Yönetimi:** Windows Servisleri'nin başlangıç durumları (`Automatic`/`Disabled`) doğrudan `sc.exe config` ve sistem kayıt defteri üzerinden anında değiştirilebilir kılındı.
**3. 🧹 20 Katmanlı Derin Kalıntı Temizleme Motoru** **3. ⚡ Başlangıç Yöneticisi ve Yetki İyileştirmeleri**
- Kaldırma işlemi bittiğinde arkada kalan tüm öksüz servisler, zamanlanmış görevler, kayıt defteri dalları ve gizli kullanıcı yapılandırma dosyaları eksiksiz taranır ve silinir. - Başlangıç programlarının açılışını kapatırken yaşanan yetki ve `StartupFolder` kısayol devre dışı bırakma sorunları kökten çözüldü.
**4. 💾 Çoklu Sürücü Yönetimi ve Disk Haritası** **4. 🧹 20 Katmanlı Derin Kalıntı Temizleme & 💾 Çoklu Disk Haritası**
- Bilgisayara takılı birden fazla disk (`C:`, `D:` vb.) varsa üst sekme çubuğu üzerinden kolayca geçiş yapılır ve görsel Treemap haritası seçilen diske göre dinamik güncellenir. - Uygulama kaldırma sonrası geride kalan tüm servis, görev, kayıt defteri ve dosya artıkları taranır; takılı tüm diskler üst sekmelerden görsel olarak yönetilir.
--- ---
### 📦 İndirme ### 📦 İndirme Seçenekleri
Aşağıdaki **Assets** bölümünden `LD-Uninstaller-v{VERSION}.zip` dosyasını indirip arşivden çıkararak doğrudan `LDUninstaller.Launcher.exe` ile kullanabilirsiniz. Aşağıdaki **Assets** bölümünden dilediğiniz kurulum türünü indirebilirsiniz:
- 📥 **Standart Kurulum (Önerilen):** `LD-Uninstaller-Setup-v{VERSION}.exe` — Masaüstü simgesi ve Başlat menüsü kısayolu ile otomatik kurulum.
- 📦 **Taşınabilir Sürüm (Portable):** `LD-Uninstaller-v{VERSION}.zip` — Kurulum gerektirmeyen taşınabilir zip arşivi.

View file

@ -1,6 +1,6 @@
{ {
"major": 2, "major": 2,
"minor": 5, "minor": 6,
"patch": 0, "patch": 0,
"version": "2.5.0" "version": "2.6.0"
} }