installer: use the new SetupMutex directive instead of our custom code.

This commit is contained in:
XhmikosR 2015-07-22 21:55:41 +03:00
parent 4c3ecd3a59
commit 8eae5fe9d8
2 changed files with 14 additions and 76 deletions

View File

@ -1,4 +1,4 @@
;* Subtitle Edit - Installer script
;* Subtitle Edit - Installer script
;*
;* Copyright (C) 2010-2014 XhmikosR
;* Copyright (C) 2010-2015 all the respective translators
@ -28,7 +28,6 @@ en.comp_translations=Translations
en.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
en.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
en.msg_OptimizingPerformance=Optimizing performance...
en.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
en.run_VisitWebsite=Visit Subtitle Edit's Website
en.sm_com_Changelog=Subtitle Edit's Changelog
en.tsk_AllUsers=For all users
@ -46,7 +45,6 @@ ar.comp_translations=Translations
ar.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
ar.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
ar.msg_OptimizingPerformance=Optimizing performance...
ar.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
ar.run_VisitWebsite=Visit Subtitle Edit's Website
ar.sm_com_Changelog=Subtitle Edit's Changelog
ar.tsk_AllUsers=For all users
@ -63,7 +61,6 @@ bg.comp_translations=Translations
bg.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
bg.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
bg.msg_OptimizingPerformance=Optimizing performance...
bg.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
bg.run_VisitWebsite=Visit Subtitle Edit's Website
bg.sm_com_Changelog=Subtitle Edit's Changelog
bg.tsk_AllUsers=For all users
@ -80,7 +77,6 @@ ca.comp_translations=Translations
ca.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
ca.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
ca.msg_OptimizingPerformance=Optimizing performance...
ca.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
ca.run_VisitWebsite=Visit Subtitle Edit's Website
ca.sm_com_Changelog=Subtitle Edit's Changelog
ca.tsk_AllUsers=For all users
@ -97,7 +93,6 @@ cs.comp_translations=Překlady
cs.msg_AskToDownNET=Subtitle Edit vyžaduje .NET Framework 4.0. Stáhněte a nainstalujte .NET Framework a spusťte znovu instalaci.%n%nChcete nyní stáhnout .NET Framework 4.0?
cs.msg_DeleteSettings=Chcete také odstranit nastavení Subtitle Edit a všechny vlastní změny, které jste provedli ve slovnících?%n%nPokud zamýšlíte přeinstalaci Subtitle Edit, nemusíte je odstraňovat.
cs.msg_OptimizingPerformance=Optimalizace výkonu...
cs.msg_SetupIsRunningWarning=Instalace Subtitle Edit je již spuštěna!
cs.run_VisitWebsite=Navštivte webovou stránku Subtitle Edit
cs.sm_com_Changelog=Seznam změn Subtitle Edit
cs.tsk_AllUsers=Pro všechny uživatele
@ -114,7 +109,6 @@ da.comp_translations=Oversættelser
da.msg_AskToDownNET=Subtitle Edit kræver .NET Framework 4.0 eller nyere. Download and installer .NET Framework og kør setup igen.%n%nVil du downloade .NET Framework 4.0 nu?
da.msg_DeleteSettings=Vil du også slette Subtitle Edit's indstillinger og evt. ændringer i ordlister?%n%nHvis du vil geninstallere Subtitle Edit senere kan du beholde disse indstillinger.
da.msg_OptimizingPerformance=Optimerer performance...
da.msg_SetupIsRunningWarning=Subtitle Edit Setup kører allerede!
da.run_VisitWebsite=Besøg Subtitle Edits Website
da.sm_com_Changelog=Subtitle Edit ændringslog
da.tsk_AllUsers=For alle brugere
@ -131,7 +125,6 @@ de.comp_translations=Übersetzungen
de.msg_AskToDownNET=Subtitle Edit benötigt .NET Framework 4.0. Bitte installieren Sie .NET Framework und starten Sie die Installation erneut.%n%nMöchten Sie .NET Framework 4.0 jetzt herunterladen?
de.msg_DeleteSettings=Möchten Sie die Einstellungen und Änderungen der Wörterbücher ebenfalls löschen?%n%nWenn Sie Subtitle Edit erneut installieren wollen, müssen Sie nichts löschen.
de.msg_OptimizingPerformance=Leistungsoptimierung...
de.msg_SetupIsRunningWarning=Subtitle Edit Setup läuft bereits!
de.run_VisitWebsite=Besuchen Sie die Subtitle Edit Webseite
de.sm_com_Changelog=Subtitle Edit Änderungen
de.tsk_AllUsers=Für alle Benutzer
@ -148,7 +141,6 @@ el.comp_translations=Μεταφράσεις
el.msg_AskToDownNET=Το Subtitle Edit χρειάζεται το .NET Framework 4.0. Κατεβάστε και εγκαταστήστε το .NET Framework και επαναλάβετε την εγκατάσταση.%n%nΘέλετε να κατεβάσετε το .NET Framework 4.0 τώρα;
el.msg_DeleteSettings=Θέλετε επίσης να διαγράψετε τις ρυθμίσεις του Subtitle Edit και οποιεσδήποτε τροποποιήσεις έχετε κάνει στους φακέλους;%n%nΑν σκοπεύετε να επανεγκαταστήσετε το Subtitle Edit δε χρειάζεται να τις διαγράψετε.
el.msg_OptimizingPerformance=Βελτιστοποίηση απόδοσης...
el.msg_SetupIsRunningWarning=Η Εγκατάσταση του Subtitle Edit είναι ήδη ανοιχτή!
el.run_VisitWebsite=Επισκεφτείτε την Ιστοσελίδα του Subtitle Edit
el.sm_com_Changelog=Ιστορικό του Subtitle Edit
el.tsk_AllUsers=Για όλους τους χρήστες
@ -165,7 +157,6 @@ es.comp_translations=Traducciones
es.msg_AskToDownNET=Subtitle Edit requiere .NET Framework 4.0. Por favor, descarga e instala .NET Framework y ejecuta la instalacion de nuevo.%n%n?Quieres descargar el .NET Framework 4.0 ahora?
es.msg_DeleteSettings=?Deseas tambien eliminar la configuracion de Subtitle Edit y los cambios personalizados realizados en los diccionarios?%n%nSi planeas reinstalar Subtitle Edit no tienes que eliminarlos.
es.msg_OptimizingPerformance=Optimizando el rendimiento...
es.msg_SetupIsRunningWarning=?La instalacion de Subtitle Edit esta en curso!
es.run_VisitWebsite=Visita la pagina Web de Subtitle Edit
es.sm_com_Changelog=Historial de Subtitle Edit
es.tsk_AllUsers=Para todos los usuarios
@ -182,7 +173,6 @@ eu.comp_translations=Itzulpenak
eu.msg_AskToDownNET=Subtitle Edit-ek beharrezkoa du .NET Framework 4.0. Mesedez jeitsi eta ezarri .NET Framework eta abiarazi berriro ezartzailea.%n%nNahi duzu .NET Framework 4.0 orain jeistea?
eu.msg_DeleteSettings=Nahi dituzu ere Subtitle Edit-en ezarpenak eta hiztegietan egin dituzun aldaketak ezabatzea?%n%nSubtitle Edit berriro ezartzeko asmoa baduzu ez dituzu ezabatu behar.
eu.msg_OptimizingPerformance=Egintza hobereneratzen...
eu.msg_SetupIsRunningWarning=Subtitle Edit Ezartzailea jadanik lanean dago!
eu.run_VisitWebsite=Ikusi Subtitle Edit Webgunea
eu.sm_com_Changelog=Subtitle Edit Aldaketa-oharra
eu.tsk_AllUsers=Erabiltzaile guztientzat
@ -199,7 +189,6 @@ fa.comp_translations=ترجمه ها
fa.msg_AskToDownNET=برنامه ویرایش زیرنویس به کتابخانه.NET Framework 4.0 نیاز دارد. لطفا آن را یا دانلود کنید یا نصب کنید و دوباره برنامه نصب را اجرا کنید%n%nآیا همین الان Framework 4.0 را دانلود میکنید?
fa.msg_DeleteSettings=آیا میخواهید تمامی تنظیمات و گزینه های ایجاد شده توسط شما هم پاک شود?%n%nاگر شما قصد نصب دوباره را دارید نیازی به حذف آن ندارید
fa.msg_OptimizingPerformance=بهینه سازی اجرا
fa.msg_SetupIsRunningWarning=برنامه نصب ویرایش زیرنویس در حال اجرا میباشد
fa.run_VisitWebsite=سایت ویرایش زیرنویس را مشاهده کنید
fa.sm_com_Changelog=تغییرات در نسخه جدید
fa.tsk_AllUsers=برای تمامی کاربران سیستم
@ -216,7 +205,6 @@ fi.comp_translations=Käännökset
fi.msg_AskToDownNET=Subtitle Edit tarvitsee .NET Framework 4.0. Lataa ja asenna .NET Framework ja suorita asennusohjelma uudelleen.%n%nHaluatko ladata .NET Framework 4.0 nyt?
fi.msg_DeleteSettings=Haluatko myös poistaa Subtitle Edit'n asetukset ja mukautetut sanakirjoihin tehdyt muutokset?%n%nJos aiot uudelleenasentaa Subtitle Edit'n sinun ei tarvitse poistaa niitä.
fi.msg_OptimizingPerformance=Optimoidaan suorituskykyä...
fi.msg_SetupIsRunningWarning=Subtitle Edit'n asennusohjelma on jo käynnissä!
fi.run_VisitWebsite=Vieraile Subtitle Edit'n verkkosivuilla
fi.sm_com_Changelog=Subtitle Edit'n muutosloki
fi.tsk_AllUsers=Kaikille käyttäjille
@ -233,7 +221,6 @@ fr.comp_translations=Translations
fr.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
fr.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
fr.msg_OptimizingPerformance=Optimizing performance...
fr.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
fr.run_VisitWebsite=Visit Subtitle Edit's Website
fr.sm_com_Changelog=Subtitle Edit's Changelog
fr.tsk_AllUsers=For all users
@ -250,7 +237,6 @@ hr.comp_translations=Translations
hr.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
hr.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
hr.msg_OptimizingPerformance=Optimizing performance...
hr.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
hr.run_VisitWebsite=Visit Subtitle Edit's Website
hr.sm_com_Changelog=Subtitle Edit's Changelog
hr.tsk_AllUsers=For all users
@ -267,7 +253,6 @@ hu.comp_translations=Translations
hu.msg_AskToDownNET=A Subtitle Edit futtatásához .NET Framework 4.0 szükséges. Kérjük, töltse le és telepítse a .NET Framework keretprogramot és futtassa újra a telepítőt.%n%nLetölti a .NET Framework 4.0 telepítőt most?
hu.msg_DeleteSettings=Törölni szeretné a Subtitle Edit beállításait és a szótárakban végrehajtott egyéni módosításokat?%n%nHa a Subtitle Edit újratelepítését tervezi, Önnek nem kell törölni azt.
hu.msg_OptimizingPerformance=Optimizing performance...
hu.msg_SetupIsRunningWarning=A Subtitle Edit telepítő már fut!
hu.run_VisitWebsite=A Subtitle Edit weboldalának felkeresése
hu.sm_com_Changelog=Subtitle Edit's változásnapló
hu.tsk_AllUsers=Az összes felhasználó számára
@ -284,7 +269,6 @@ it.comp_translations=Traduzioni
it.msg_AskToDownNET=Subtitle Edit richiede .NET Framework 4.0. Per favore scarica e installa .NET Framework ed esegui nuovamente l'installazione.%n%nVuoi scaricare .NET Framework 4.0 adesso?
it.msg_DeleteSettings=Vuoi anche cancellare le impostazioni di Subtitle Edit e le modifiche che hai apportato ai dizionari?%n%nSe hai intenzione di reinstallare Subtitle Edit puoi non farlo.
it.msg_OptimizingPerformance=Ottimizzazione prestazioni in corso...
it.msg_SetupIsRunningWarning=Il processo di installazione di Subtitle Edit è già in esecuzione!
it.run_VisitWebsite=Visita il sito di Subtitle Edit
it.sm_com_Changelog=Lista delle novità di Subtitle Edit
it.tsk_AllUsers=Per tutti gli utenti
@ -301,7 +285,6 @@ ja.comp_translations=Translations
ja.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
ja.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
ja.msg_OptimizingPerformance=Optimizing performance...
ja.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
ja.run_VisitWebsite=Visit Subtitle Edit's Website
ja.sm_com_Changelog=Subtitle Edit's Changelog
ja.tsk_AllUsers=For all users
@ -318,7 +301,6 @@ ko.comp_translations=번역
ko.msg_AskToDownNET=Subtitle Edit는 .NET Framework 4.0이 필요합니다. .NET Framework를 다운 받아 설치하신 후, Subtitle Edit 설치 마법사를 다시 실행하시기 바랍니다.%n%n지금 .NET Framework 4.0을 다운로드하시겠습니까?
ko.msg_DeleteSettings=Subtitle Edit의 설정 및 사전에 포함된 사용자 지정의 모든 변경 사항을 삭제하시겠습니까?%n%n만약 Subtitle Edit를 다시 설치할 계획이면 그것을 삭제할 필요가 없습니다.
ko.msg_OptimizingPerformance=성능을 최적화하는 중...
ko.msg_SetupIsRunningWarning=Subtitle Edit 설치가 이미 실행 중입니다!
ko.run_VisitWebsite=Subtitle Edit 웹 사이트 방문
ko.sm_com_Changelog=Subtitle Edit 변경 내역
ko.tsk_AllUsers=모든 사용자
@ -335,7 +317,6 @@ nl.comp_translations=Vertalingen
nl.msg_AskToDownNET=Subtitle Edit vereist .NET Framework 4.0. Download en instaleer deze software alstublieft en doe de setup opnieuw.%n%nWilt u nu .NET Framework 4.0 instaleren?
nl.msg_DeleteSettings=Wilt u de instellingen en persoonlijke aanpassingen in de woordenboeken van Subtitle Edit verwijderen?%n%nAls u Subtitle Edit opnieuw installeert hoeft u deze niet te verwijderen.
nl.msg_OptimizingPerformance=Prestatie optimaliseren...
nl.msg_SetupIsRunningWarning=Subtitle Edit Setup is in gebruik!
nl.run_VisitWebsite=Bezoek Subtitle Edit Website
nl.sm_com_Changelog=Subtitle Edit Changelog
nl.tsk_AllUsers=Voor alle gebruikers
@ -352,7 +333,6 @@ pl.comp_translations=Tłumaczenia
pl.msg_AskToDownNET=Subtitle Edit do poprawnej pracy wymaga .NET Framework 4.0. Pobierz i zainstaluj .NET Framework i uruchom ponownie instalator.%n%nCzy chcesz teraz pobrać .NET Framework 4.0?
pl.msg_DeleteSettings=Czy chcesz także usunąć ustawienia Subtitle Edit oraz wszelkie niestandardowe zmiany wprowadzone w słownikach?%n%nJeśli planujesz ponowną instalację Subtitle Edit, nie musisz ich usuwać.
pl.msg_OptimizingPerformance=Optymalizowanie wydajności...
pl.msg_SetupIsRunningWarning=Instalator Subtitle Edit już jest uruchomiony!
pl.run_VisitWebsite=Odwiedź stronę Subtitle Edit
pl.sm_com_Changelog=Lista zmian w Subtitle Edit
pl.tsk_AllUsers=Dla wszystkich użytkowników
@ -369,7 +349,6 @@ pt.comp_translations=Traduções
pt.msg_AskToDownNET=O Subtitle Edit necessita do .NET Framework 4.0. Por favor, baixe e instale o .NET Framework, e execute a instalação novamente.%n%nDeseja baixar o .NET Framework 4.0 agora?
pt.msg_DeleteSettings=Deseja remover as configurações do Subtitle Edit e quaisquer mudanças feitas nos dicionários?%n%nSe planeia reinstalar o Subtitle Edit não necessita remover estes itens.
pt.msg_OptimizingPerformance=Otimizando performance...
pt.msg_SetupIsRunningWarning=A instalação do Subtitle Edit já está em execução!
pt.run_VisitWebsite=Visitar o site do Subtitle Edit
pt.sm_com_Changelog=Relatório de alterações do Subtitle Edit
pt.tsk_AllUsers=Todos os utilizadores
@ -386,7 +365,6 @@ ptBR.comp_translations=Traduções
ptBR.msg_AskToDownNET=O Subtitle Edit necessita do .NET Framework 4.0. Por favor, baixe e instale o .NET Framework e execute a instalação novamente.%n%nDeseja baixar o .NET Framework 4.0 agora?
ptBR.msg_DeleteSettings=Deseja também deletar as configurações do Subtitle Edit e quaisquer mudanças feitas nos dicionários?%n%nSe você planeja reinstalar o Subtitle Edit você não precisa deletar estes itens.
ptBR.msg_OptimizingPerformance=Otimizando performance...
ptBR.msg_SetupIsRunningWarning=A instalação do Subtitle Edit já está em execução!
ptBR.run_VisitWebsite=Visitar site do Subtitle Edit
ptBR.sm_com_Changelog=Changelog do Subtitle Edit
ptBR.tsk_AllUsers=Todos os usuários
@ -403,7 +381,6 @@ ro.comp_translations=Translations
ro.msg_AskToDownNET=Subtitle Edit necesită .NET Framework 4.0. Vă rog să descărcaţi şi să instalaţi .NET Framework şi apoi reinstalaţi.%n%nVreţi să descărcaţi acum .NET Framework 4.0?
ro.msg_DeleteSettings=Vreţi de asemenea să ştergeţi setările şi personalizările făcute în dicţionare?%n%nDacă aveţi de gând să reinstalaţi Subtitle Edit, nu este nevoie să le ştergeţi.
ro.msg_OptimizingPerformance=Optimizing performance...
ro.msg_SetupIsRunningWarning=Instalarea programului Subtitle Edit se efectuează deja!
ro.run_VisitWebsite=Vizitaţi pagina Web a programului Subtitle Edit
ro.sm_com_Changelog=Jurnalul modificărilor în programul Subtitle Edit
ro.tsk_AllUsers=Pentru toţi utilizatorii
@ -420,7 +397,6 @@ ru.comp_translations=Файлы локализации программы
ru.msg_AskToDownNET=Для работы "Subtitle Edit" требуется установленный .NET Framework 4.0. Пожалуйста, загрузите и установите .NET Framework, а затем повторите инсталляцию.%n%nВыполнить загрузку .NET Framework 4.0 сейчас?
ru.msg_DeleteSettings=Следует ли также удалить ваши настройки программы и пользовательские словари?%n%nЕсли вы будете обновлять программу, то не удаляйте ваши настройки и словари.
ru.msg_OptimizingPerformance=Оптимизация производительности...
ru.msg_SetupIsRunningWarning=Установка "Subtitle Edit" уже запущена!
ru.run_VisitWebsite=Посетить домашнюю страницу
ru.sm_com_Changelog=Журнал изменений "Subtitle Edit"
ru.tsk_AllUsers=Для всех пользователей
@ -437,7 +413,6 @@ sl.comp_translations=Translations
sl.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
sl.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
sl.msg_OptimizingPerformance=Optimizing performance...
sl.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
sl.run_VisitWebsite=Visit Subtitle Edit's Website
sl.sm_com_Changelog=Subtitle Edit's Changelog
sl.tsk_AllUsers=For all users
@ -454,7 +429,6 @@ srC.comp_translations=Преводи
srC.msg_AskToDownNET=Програм захтева .NET радни оквир 4.0. Инсталирајте га и поново покрените инсталацију.%n%nЖелите ли да преузмете захтевани програм сада?
srC.msg_DeleteSettings=Желите ли да обришете поставке и друге прилагођене измене које сте направили у речницима?%n%nАко планирате да поново инсталирате програм, не морате их брисати.
srC.msg_OptimizingPerformance=Учитавам…
srC.msg_SetupIsRunningWarning=Инсталација програма је већ покренута!
srC.run_VisitWebsite=Посетите страницу пројекта
srC.sm_com_Changelog=Дневник измена
srC.tsk_AllUsers=За све кориснике
@ -471,7 +445,6 @@ srL.comp_translations=Prevodi
srL.msg_AskToDownNET=Program zahteva .NET radni okvir 4.0. Instalirajte ga i ponovo pokrenite instalaciju.%n%Želite li da preuzmete zahtevani program sada?
srL.msg_DeleteSettings=Želite li da obrišete postavke i druge prilagođene izmene koje ste napravili u rečnicima?%n%nAko planirate da ponovo instalirate program, ne morate ih brisati.
srL.msg_OptimizingPerformance=Učitavam…
srL.msg_SetupIsRunningWarning=Instalacija programa je već pokrenuta!
srL.run_VisitWebsite=Posetite stranicu projekta
srL.sm_com_Changelog=Dnevnik izmena
srL.tsk_AllUsers=Za sve korisnike
@ -488,7 +461,6 @@ sv.comp_translations=Translations
sv.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
sv.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
sv.msg_OptimizingPerformance=Optimizing performance...
sv.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
sv.run_VisitWebsite=Visit Subtitle Edit's Website
sv.sm_com_Changelog=Subtitle Edit's Changelog
sv.tsk_AllUsers=For all users
@ -504,7 +476,6 @@ th.comp_translations=Translations
th.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
th.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
th.msg_OptimizingPerformance=Optimizing performance...
th.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
th.run_VisitWebsite=Visit Subtitle Edit's Website
th.sm_com_Changelog=Subtitle Edit's Changelog
th.tsk_AllUsers=For all users
@ -520,7 +491,6 @@ tr.comp_translations=Translations
tr.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
tr.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
tr.msg_OptimizingPerformance=Optimizing performance...
tr.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
tr.run_VisitWebsite=Visit Subtitle Edit's Website
tr.sm_com_Changelog=Subtitle Edit's Changelog
tr.tsk_AllUsers=For all users
@ -536,7 +506,6 @@ vi.comp_translations=Translations
vi.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
vi.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
vi.msg_OptimizingPerformance=Optimizing performance...
vi.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
vi.run_VisitWebsite=Visit Subtitle Edit's Website
vi.sm_com_Changelog=Subtitle Edit's Changelog
vi.tsk_AllUsers=For all users
@ -552,7 +521,6 @@ zh.comp_translations=Translations
zh.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
zh.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
zh.msg_OptimizingPerformance=Optimizing performance...
zh.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
zh.run_VisitWebsite=Visit Subtitle Edit's Website
zh.sm_com_Changelog=Subtitle Edit's Changelog
zh.tsk_AllUsers=For all users
@ -568,7 +536,6 @@ zhTW.comp_translations=Translations
zhTW.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
zhTW.msg_DeleteSettings=Do you also want to delete Subtitle Edit's settings and any custom changes you made in the dictionaries?%n%nIf you plan on reinstalling Subtitle Edit you do not have to delete them.
zhTW.msg_OptimizingPerformance=Optimizing performance...
zhTW.msg_SetupIsRunningWarning=Subtitle Edit Setup is already running!
zhTW.run_VisitWebsite=Visit Subtitle Edit's Website
zhTW.sm_com_Changelog=Subtitle Edit's Changelog
zhTW.tsk_AllUsers=For all users

View File

@ -22,8 +22,8 @@
; preprocessor checks
#if VER < EncodeVer(5,5,5)
#error Update your Inno Setup version (5.5.5 or newer)
#if VER < EncodeVer(5,5,6)
#error Update your Inno Setup version (5.5.6 or newer)
#endif
#ifndef UNICODE
@ -102,6 +102,7 @@ ShowLanguageDialog=yes
DisableDirPage=auto
DisableProgramGroupPage=auto
CloseApplications=true
SetupMutex='subtitle_edit_setup_mutex'
[Languages]
@ -373,10 +374,6 @@ Filename: {win}\Microsoft.NET\Framework\v4.0.30319\ngen.exe; Parameters: "uninst
[Code]
// Global variables/constants and general functions
const installer_mutex = 'subtitle_edit_setup_mutex';
// Check if Subtitle Edit's settings exist
function SettingsExist(): Boolean;
begin
@ -513,44 +510,18 @@ function InitializeSetup(): Boolean;
var
iErrorCode, iMsgBoxResult: Integer;
begin
// Create a mutex for the installer and if it's already running then expose a message and stop installation
if CheckForMutexes(installer_mutex) and not WizardSilent() then begin
SuppressibleMsgBox(CustomMessage('msg_SetupIsRunningWarning'), mbError, MB_OK, MB_OK);
Result := False;
end
else begin
Result := True;
CreateMutex(installer_mutex);
Result := True;
// Check if .NET Framework 4.0 is installed and if not offer to download it
try
ExpandConstant('{dotnet40}');
except
begin
if not WizardSilent() then begin
if SuppressibleMsgBox(CustomMessage('msg_AskToDownNET'), mbCriticalError, MB_YESNO or MB_DEFBUTTON1, IDNO) = IDYES then
ShellExec('open','http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe','','',SW_SHOWNORMAL,ewNoWait,iErrorCode);
Result := False;
end;
// Check if .NET Framework 4.0 is installed and if not offer to download it
try
ExpandConstant('{dotnet40}');
except
begin
if not WizardSilent() then begin
if SuppressibleMsgBox(CustomMessage('msg_AskToDownNET'), mbCriticalError, MB_YESNO or MB_DEFBUTTON1, IDNO) = IDYES then
ShellExec('open','http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe','','',SW_SHOWNORMAL,ewNoWait,iErrorCode);
Result := False;
end;
end;
end;
end;
function InitializeUninstall(): Boolean;
var
iMsgBoxResult: Integer;
begin
if CheckForMutexes(installer_mutex) then begin
SuppressibleMsgBox(CustomMessage('msg_SetupIsRunningWarning'), mbError, MB_OK, MB_OK);
Result := False;
end
else begin
Result := True;
CreateMutex(installer_mutex);
end;
end;