Skip to content

Commit

Permalink
Setup: update obsolete AutoHotkey version warning screen
Browse files Browse the repository at this point in the history
  • Loading branch information
fincs committed Aug 17, 2014
1 parent a283e0c commit 2819871
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
28 changes: 20 additions & 8 deletions installer/dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,16 @@
#nagnote
{
/*display: none;*/
text-align: center;
color: red;
font-weight: bold;
}
#obsoletecounter
{
font-weight: bold;
color: red;
font-size: 110%;
}
</style>

<script type="text/javascript">
Expand Down Expand Up @@ -275,7 +282,7 @@ <h1><img src="banner.png" alt="SciTE4AutoHotkey Logo"></h1>
<div id="license">

<p>SciTE and Scintilla by Neil Hodgson; AutoHotkey by Chris and Lexikos; LexAHK1 by PhiLho;
tools by fincs, Rajat and TheGood; logo by Ice_Tea; debugging icons from famfamfam.com;
tools by fincs, Rajat and TheGood; logo by Ice_Tea; program icon by kon; debugging icons from famfamfam.com;
file hosting provided by daonlyfreez; 7-Zip by the 7-Zip team, source code hosting by GitHub,
installer UI originally designed and coded by Lexikos.</p>

Expand Down Expand Up @@ -350,22 +357,27 @@ <h4>Everything else (toolbar, debugger, setting files, etc.)</h4>

<div class="page" id="legacyahkinfo">

<p id="nagnote">Legacy AutoHotkey version detected</p>
<p id="nagnote"><strong>WARNING</strong> - Legacy AutoHotkey version detected</p>

<p>Setup has detected that AutoHotkey <span id="ahkver">q</span> is installed.
Usage of such legacy versions of AutoHotkey with SciTE4AutoHotkey may result in
degraded user experience, such as the inability to debug scripts using the
a degraded user experience, such as the inability to debug scripts using the
interactive debugger.</p>

<p>Please take into account that the currently installed AutoHotkey version is over <strong>four
years old</strong> and numerous bugfixes and improvements have been added since then, not to mention
that new scripts posted to the AutoHotkey community are increasingly incompatible with it.</p>
<p>Please take into account that the currently installed AutoHotkey version is <span id="obsoletecounter">
</span>&nbsp;and numerous bugfixes and improvements have been added since then, not to mention
that new scripts created by the AutoHotkey community are increasingly incompatible with it.</p>

<p>Please also note that the autohotkey.com website has been taken over as of 2014 by a third-party
for-profit entity and is <strong>not affiliated with and/or endorsed by</strong> the AutoHotkey developers
or the community. This entity is responsible for the promotion of this obsolete version of AutoHotkey,
and therefore <strong>you may be a victim.</strong></p>

<p>You can always download the latest version of AutoHotkey at <a href="ahk://Lnk_AhkWebsite">
the official website</a>.</p>
ahkscript.org</a>, the new grassroots website founded by the AutoHotkey community and developers.</p>

<div style="text-align: center">
<a onclick="switchPage('setupopt')" class="button">I understand</a>
<a onclick="switchPage('setupopt')" class="button">I understand the risks</a>
<span>&nbsp;&nbsp;&nbsp;</span>
<a href="ahk://Btn_Exit" class="button">Quit Setup</a>
<br>&nbsp;
Expand Down
3 changes: 2 additions & 1 deletion installer/setup.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ Btn_Install()
document.getElementById("stmtext").innerText .= winVer < 6.2 ? "Create shortcuts in the Start menu" : "Add tiles to the Start screen"
if hasLegacyAhk
{
document.getElementById("obsoletecounter").innerText := "over " (A_Year - 2009) " years old"
document.getElementById("ahkver").innerText := "v" ahkVer
switchPage("legacyahkinfo")
}else
Expand All @@ -229,7 +230,7 @@ Btn_Install()

Lnk_AhkWebsite()
{
Run, http://www.autohotkey.com/
Run, http://www.ahkscript.org/
}

SetCheckBox(oCheckBox, state, disabled)
Expand Down

0 comments on commit 2819871

Please sign in to comment.