Skip to content

Commit

Permalink
Add warning to installer about start at boot option on XP
Browse files Browse the repository at this point in the history
  • Loading branch information
MCGallaspy committed Jan 5, 2016
1 parent bd49ff2 commit 86a94b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/installer-source/KaliteSetupScript.iss
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ begin
{ Windows 5.1 is XP, and 5.2 is Server 2003/64-bit XP. See https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx }
if (windowsVersion.Major = 5) and (windowsVersion.Minor <= 2) then
begin
kaliteSchtaskCmd := ExpandConstant('/C "schtasks /create /tn "KALite" /tr "\"{reg:HKLM\System\CurrentControlSet\Control\Session Manager\Environment,KALITE_SCRIPT_DIR}\kalite.bat\" start" /sc onstart"');
MsgBox('Start at boot option is unavailable on this version of Windows.' #13#13 'The installation will now proceed.', mbError, MB_OK);
end
else begin
kaliteSchtaskCmd := ExpandConstant('/C "schtasks /create /tn "KALite" /tr "\"{reg:HKLM\System\CurrentControlSet\Control\Session Manager\Environment,KALITE_SCRIPT_DIR}\kalite.bat\" start" /sc onstart /ru SYSTEM"');
Expand Down

0 comments on commit 86a94b0

Please sign in to comment.