diff --git a/Directory.Build.props b/Directory.Build.props index bf63db0..908f15c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,8 +1,8 @@ - + - 2.5.0 - 2.5.0.0 - 2.5.0.0 + 2.6.0 + 2.6.0.0 + 2.6.0.0 LD Uninstaller LD Software LD Software diff --git a/LD-Uninstaller-Setup-v2.6.0.exe b/LD-Uninstaller-Setup-v2.6.0.exe new file mode 100644 index 0000000..8dec2a2 Binary files /dev/null and b/LD-Uninstaller-Setup-v2.6.0.exe differ diff --git a/installer.iss b/installer.iss new file mode 100644 index 0000000..7c1a5cc --- /dev/null +++ b/installer.iss @@ -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 diff --git a/release.ps1 b/release.ps1 index e8d0810..2028aae 100644 --- a/release.ps1 +++ b/release.ps1 @@ -1,4 +1,4 @@ -param( +param( [ValidateSet("major", "minor", "patch", "current")] [string]$Type = "current", [string]$Message = "" @@ -12,7 +12,7 @@ $versionFile = Join-Path $root "version.json" $propsFile = Join-Path $root "Directory.Build.props" 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 @@ -56,6 +56,7 @@ $propsContent = @" LD Uninstaller LD Software LD Software + MIT "@ @@ -74,6 +75,10 @@ foreach ($old in $oldFolders) { } 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" $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 "dist") -Recurse -Force -ErrorAction SilentlyContinue } catch { } -# 5. Surum ZIP Arsivini Olustur -$oldZips = Get-ChildItem -Path $root -File -Filter "LD-Uninstaller-v*.zip" -foreach ($oz in $oldZips) { - try { Remove-Item -Path $oz.FullName -Force -ErrorAction SilentlyContinue } catch { } +# 5. Windows Kurulum Sihirbazi (Setup.exe) ve ZIP Arsivini Olustur +Copy-Item (Join-Path $root "app.ico") (Join-Path $targetDir "app.ico") -Force + +# 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" $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 # 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 try { 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 commit -m $Message @@ -144,7 +169,7 @@ using System; using System.Runtime.InteropServices; using System.Text; -public class GitCredsEngine +public class GitCredsEngine2 { [DllImport("Advapi32.dll", SetLastError = true, CharSet = CharSet.Unicode)] 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 } - $token = [GitCredsEngine]::GetToken() + $token = [GitCredsEngine2]::GetToken() if ($env:GITHUB_TOKEN) { $token = $env:GITHUB_TOKEN } if ($env:GH_TOKEN) { $token = $env:GH_TOKEN } @@ -210,7 +235,7 @@ public class GitCredsEngine $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 = @{ 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" } - # ZIP dosyasini release asset olarak yukle - if ($ghRelease -and (Test-Path $zipPath)) { - Write-Host "Surum paketi ($zipName) release sayfasina yukleniyor..." -ForegroundColor Cyan + # Dosyalari release asset olarak yukle (Setup.exe ve zip) + $filesToUpload = @($setupPath, $zipPath) | Where-Object { Test-Path $_ } + foreach ($fPath in $filesToUpload) { + $fName = Split-Path $fPath -Leaf + Write-Host "Release varligi yukleniyor: $fName..." -ForegroundColor Cyan if ($ghRelease.assets) { foreach ($asset in $ghRelease.assets) { - if ($asset.name -eq $zipName) { + if ($asset.name -eq $fName) { try { Invoke-RestMethod -Uri "https://api.github.com/repos/$repoOwner/$repoName/releases/assets/$($asset.id)" -Headers $apiHeaders -Method Delete | Out-Null } 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 = @{ "Authorization" = "Bearer $token" "User-Agent" = "LDUninstaller-ReleaseScript" "Accept" = "application/vnd.github+json" } - $zipBytes = [System.IO.File]::ReadAllBytes($zipPath) - $uploadResult = Invoke-RestMethod -Uri $uploadUri -Headers $uploadHeaders -Method Post -Body $zipBytes -ContentType "application/zip" - Write-Host "Asset basariyla yuklendi: $($uploadResult.browser_download_url)" -ForegroundColor Green + $fileBytes = [System.IO.File]::ReadAllBytes($fPath) + $uploadResult = Invoke-RestMethod -Uri $uploadUri -Headers $uploadHeaders -Method Post -Body $fileBytes -ContentType $contentType + Write-Host "Yuklendi: $($uploadResult.browser_download_url)" -ForegroundColor Green } Write-Host "`nGitHub Release yayinda:" -ForegroundColor Yellow @@ -273,6 +301,8 @@ public class GitCredsEngine Write-Host "`n[+] Basariyla Tamamlandi!" -ForegroundColor Green Write-Host "Ana dizinde olusturulan son guncel surum klasoru:" -ForegroundColor Yellow 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 " -> $zipName" -ForegroundColor Cyan Write-Host "Kullanima hazir yurutulebilir dosyalar:" -ForegroundColor Gray diff --git a/release_notes_template.md b/release_notes_template.md index 372c9bc..525264d 100644 --- a/release_notes_template.md +++ b/release_notes_template.md @@ -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? -**1. 🎨 Yepyeni Modern Logo ve Uygulama Simgesi (App Icon)** -- Uygulama için modern Windows 11 Fluent tasarımına uyumlu fütüristik 'LD' amblemi ve temizleme girdabı motifli yeni logo tasarlandı. -- **Tüm Alanlara Entegre Edildi:** - - Arayüzün sol üst köşesindeki geçici mavi kutu kaldırılarak yüksek çözünürlüklü yeni logo yerleştirildi. - - 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ü. +**1. 💿 Standart Windows Kurulum Sihirbazı (Setup.exe)** +- Program artık standart bir Windows uygulaması gibi tek tıkla kurulabilir: + - **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. + - **Program Ekle / Kaldır Entegrasyonu:** Windows Ayarları (Yüklü Uygulamalar) ve Denetim Masası içerisine resmi kaldırıcı olarak kaydolur. + - **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** -- 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ü: - - **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. - - **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ı. +**2. 🎨 Yepyeni Modern Logo ve Uygulama Simgesi (App Icon)** +- Modern Windows 11 Fluent Dark estetiğine uyumlu fütüristik 'LD' amblemi ve temizlik girdabı motifli yeni logo entegre edildi. +- 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ı. -**3. 🧹 20 Katmanlı Derin Kalıntı Temizleme Motoru** -- 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. +**3. ⚡ Başlangıç Yöneticisi ve Yetki İyileştirmeleri** +- 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ı** -- 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. +**4. 🧹 20 Katmanlı Derin Kalıntı Temizleme & 💾 Çoklu Disk Haritası** +- 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. diff --git a/version.json b/version.json index 712ec7d..e47a4f8 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "major": 2, - "minor": 5, + "minor": 6, "patch": 0, - "version": "2.5.0" + "version": "2.6.0" }