You've already forked lazarus-ccr
To V0.3.6.0
Bugfix in MakeShortCut (Windows) and other fixes git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5723 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -66,7 +66,7 @@ More information in the Wiki Home Page http://wiki.freepascal.org/LazAutoUpdater
|
|||||||
along with this library; if not, write to the Free Software Foundation,
|
along with this library; if not, write to the Free Software Foundation,
|
||||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
"/>
|
"/>
|
||||||
<Version Minor="3" Release="5"/>
|
<Version Minor="3" Release="6"/>
|
||||||
<Files Count="7">
|
<Files Count="7">
|
||||||
<Item1>
|
<Item1>
|
||||||
<Filename Value="ulazautoupdate.pas"/>
|
<Filename Value="ulazautoupdate.pas"/>
|
||||||
|
@ -19,13 +19,14 @@
|
|||||||
</General>
|
</General>
|
||||||
<VersionInfo>
|
<VersionInfo>
|
||||||
<UseVersionInfo Value="True"/>
|
<UseVersionInfo Value="True"/>
|
||||||
|
<MajorVersionNr Value="1"/>
|
||||||
<MinorVersionNr Value="1"/>
|
<MinorVersionNr Value="1"/>
|
||||||
<RevisionNr Value="3"/>
|
<RevisionNr Value="5"/>
|
||||||
<BuildNr Value="1"/>
|
<BuildNr Value="1"/>
|
||||||
<StringTable ProductVersion="0.0.0.0"/>
|
<StringTable ProductVersion="0.0.0.0"/>
|
||||||
</VersionInfo>
|
</VersionInfo>
|
||||||
<BuildModes Count="5">
|
<BuildModes Count="5">
|
||||||
<Item1 Name="Win32Debug" Default="True"/>
|
<Item1 Name="Debug" Default="True"/>
|
||||||
<Item2 Name="Win32">
|
<Item2 Name="Win32">
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
<Version Value="11"/>
|
<Version Value="11"/>
|
||||||
@ -127,6 +128,11 @@
|
|||||||
</Win32>
|
</Win32>
|
||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
|
<Other>
|
||||||
|
<OtherDefines Count="1">
|
||||||
|
<Define0 Value="DEBUGMODE"/>
|
||||||
|
</OtherDefines>
|
||||||
|
</Other>
|
||||||
</CompilerOptions>
|
</CompilerOptions>
|
||||||
</Item4>
|
</Item4>
|
||||||
<Item5 Name="Linux64">
|
<Item5 Name="Linux64">
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
<PathDelim Value="\"/>
|
<PathDelim Value="\"/>
|
||||||
<Version Value="10"/>
|
<Version Value="10"/>
|
||||||
<BuildModes Active="Linux64"/>
|
<BuildModes Active="Linux64"/>
|
||||||
<Units Count="34">
|
<Units Count="35">
|
||||||
<Unit0>
|
<Unit0>
|
||||||
<Filename Value="testapp.lpr"/>
|
<Filename Value="testapp.lpr"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<EditorIndex Value="11"/>
|
<EditorIndex Value="11"/>
|
||||||
<CursorPos X="25" Y="28"/>
|
<CursorPos X="25" Y="28"/>
|
||||||
<UsageCount Value="94"/>
|
<UsageCount Value="96"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit0>
|
</Unit0>
|
||||||
<Unit1>
|
<Unit1>
|
||||||
@ -19,9 +19,9 @@
|
|||||||
<ComponentName Value="mainform"/>
|
<ComponentName Value="mainform"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<TopLine Value="177"/>
|
<TopLine Value="176"/>
|
||||||
<CursorPos X="36" Y="181"/>
|
<CursorPos X="3" Y="178"/>
|
||||||
<UsageCount Value="94"/>
|
<UsageCount Value="96"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
<LoadedDesigner Value="True"/>
|
<LoadedDesigner Value="True"/>
|
||||||
</Unit1>
|
</Unit1>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<WindowIndex Value="1"/>
|
<WindowIndex Value="1"/>
|
||||||
<TopLine Value="31"/>
|
<TopLine Value="31"/>
|
||||||
<CursorPos X="48" Y="14"/>
|
<CursorPos X="48" Y="14"/>
|
||||||
<UsageCount Value="77"/>
|
<UsageCount Value="79"/>
|
||||||
</Unit2>
|
</Unit2>
|
||||||
<Unit3>
|
<Unit3>
|
||||||
<Filename Value="..\lazautoupdate_httpclient.pas"/>
|
<Filename Value="..\lazautoupdate_httpclient.pas"/>
|
||||||
@ -42,15 +42,14 @@
|
|||||||
</Unit3>
|
</Unit3>
|
||||||
<Unit4>
|
<Unit4>
|
||||||
<Filename Value="..\ulazautoupdate.pas"/>
|
<Filename Value="..\ulazautoupdate.pas"/>
|
||||||
<IsVisibleTab Value="True"/>
|
<EditorIndex Value="1"/>
|
||||||
<WindowIndex Value="1"/>
|
<TopLine Value="987"/>
|
||||||
<TopLine Value="1707"/>
|
<CursorPos X="70" Y="1026"/>
|
||||||
<CursorPos X="44" Y="1747"/>
|
|
||||||
<ExtraEditorCount Value="2"/>
|
<ExtraEditorCount Value="2"/>
|
||||||
<ExtraEditor1>
|
<ExtraEditor1>
|
||||||
<EditorIndex Value="1"/>
|
<WindowIndex Value="1"/>
|
||||||
<TopLine Value="44"/>
|
<TopLine Value="948"/>
|
||||||
<CursorPos X="63" Y="61"/>
|
<CursorPos Y="971"/>
|
||||||
</ExtraEditor1>
|
</ExtraEditor1>
|
||||||
<ExtraEditor2>
|
<ExtraEditor2>
|
||||||
<EditorIndex Value="-1"/>
|
<EditorIndex Value="-1"/>
|
||||||
@ -58,7 +57,7 @@
|
|||||||
<TopLine Value="-1"/>
|
<TopLine Value="-1"/>
|
||||||
<CursorPos X="-1" Y="-1"/>
|
<CursorPos X="-1" Y="-1"/>
|
||||||
</ExtraEditor2>
|
</ExtraEditor2>
|
||||||
<UsageCount Value="45"/>
|
<UsageCount Value="46"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit4>
|
</Unit4>
|
||||||
<Unit5>
|
<Unit5>
|
||||||
@ -141,11 +140,11 @@
|
|||||||
</Unit15>
|
</Unit15>
|
||||||
<Unit16>
|
<Unit16>
|
||||||
<Filename Value="..\updatehmsource\updatehm.lpr"/>
|
<Filename Value="..\updatehmsource\updatehm.lpr"/>
|
||||||
<EditorIndex Value="1"/>
|
<EditorIndex Value="2"/>
|
||||||
<WindowIndex Value="1"/>
|
<WindowIndex Value="1"/>
|
||||||
<TopLine Value="132"/>
|
<TopLine Value="132"/>
|
||||||
<CursorPos X="6" Y="338"/>
|
<CursorPos X="6" Y="338"/>
|
||||||
<UsageCount Value="35"/>
|
<UsageCount Value="36"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit16>
|
</Unit16>
|
||||||
<Unit17>
|
<Unit17>
|
||||||
@ -187,9 +186,9 @@
|
|||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<IsVisibleTab Value="True"/>
|
<IsVisibleTab Value="True"/>
|
||||||
<EditorIndex Value="6"/>
|
<EditorIndex Value="6"/>
|
||||||
<TopLine Value="179"/>
|
<TopLine Value="351"/>
|
||||||
<CursorPos X="9" Y="221"/>
|
<CursorPos X="16" Y="338"/>
|
||||||
<UsageCount Value="36"/>
|
<UsageCount Value="37"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit22>
|
</Unit22>
|
||||||
<Unit23>
|
<Unit23>
|
||||||
@ -202,9 +201,9 @@
|
|||||||
<Unit24>
|
<Unit24>
|
||||||
<Filename Value="C:\laztrunk\fpc\packages\winunits-base\src\shlobj.pp"/>
|
<Filename Value="C:\laztrunk\fpc\packages\winunits-base\src\shlobj.pp"/>
|
||||||
<EditorIndex Value="10"/>
|
<EditorIndex Value="10"/>
|
||||||
<TopLine Value="2203"/>
|
<TopLine Value="2308"/>
|
||||||
<CursorPos X="56" Y="2335"/>
|
<CursorPos X="18" Y="2335"/>
|
||||||
<UsageCount Value="25"/>
|
<UsageCount Value="26"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit24>
|
</Unit24>
|
||||||
<Unit25>
|
<Unit25>
|
||||||
@ -212,7 +211,7 @@
|
|||||||
<EditorIndex Value="3"/>
|
<EditorIndex Value="3"/>
|
||||||
<TopLine Value="662"/>
|
<TopLine Value="662"/>
|
||||||
<CursorPos X="25" Y="697"/>
|
<CursorPos X="25" Y="697"/>
|
||||||
<UsageCount Value="24"/>
|
<UsageCount Value="25"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit25>
|
</Unit25>
|
||||||
<Unit26>
|
<Unit26>
|
||||||
@ -227,7 +226,7 @@
|
|||||||
<EditorIndex Value="2"/>
|
<EditorIndex Value="2"/>
|
||||||
<TopLine Value="65"/>
|
<TopLine Value="65"/>
|
||||||
<CursorPos X="41" Y="86"/>
|
<CursorPos X="41" Y="86"/>
|
||||||
<UsageCount Value="24"/>
|
<UsageCount Value="25"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit27>
|
</Unit27>
|
||||||
<Unit28>
|
<Unit28>
|
||||||
@ -241,7 +240,7 @@
|
|||||||
<Filename Value="C:\laztrunk\fpc\rtl\objpas\sysutils\finah.inc"/>
|
<Filename Value="C:\laztrunk\fpc\rtl\objpas\sysutils\finah.inc"/>
|
||||||
<EditorIndex Value="9"/>
|
<EditorIndex Value="9"/>
|
||||||
<CursorPos X="38" Y="36"/>
|
<CursorPos X="38" Y="36"/>
|
||||||
<UsageCount Value="23"/>
|
<UsageCount Value="24"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit29>
|
</Unit29>
|
||||||
<Unit30>
|
<Unit30>
|
||||||
@ -250,7 +249,7 @@
|
|||||||
<EditorIndex Value="8"/>
|
<EditorIndex Value="8"/>
|
||||||
<TopLine Value="58"/>
|
<TopLine Value="58"/>
|
||||||
<CursorPos X="29" Y="87"/>
|
<CursorPos X="29" Y="87"/>
|
||||||
<UsageCount Value="23"/>
|
<UsageCount Value="24"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit30>
|
</Unit30>
|
||||||
<Unit31>
|
<Unit31>
|
||||||
@ -258,7 +257,7 @@
|
|||||||
<EditorIndex Value="7"/>
|
<EditorIndex Value="7"/>
|
||||||
<TopLine Value="1809"/>
|
<TopLine Value="1809"/>
|
||||||
<CursorPos X="3" Y="1812"/>
|
<CursorPos X="3" Y="1812"/>
|
||||||
<UsageCount Value="10"/>
|
<UsageCount Value="11"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit31>
|
</Unit31>
|
||||||
<Unit32>
|
<Unit32>
|
||||||
@ -266,7 +265,7 @@
|
|||||||
<EditorIndex Value="4"/>
|
<EditorIndex Value="4"/>
|
||||||
<TopLine Value="1110"/>
|
<TopLine Value="1110"/>
|
||||||
<CursorPos X="10" Y="1116"/>
|
<CursorPos X="10" Y="1116"/>
|
||||||
<UsageCount Value="10"/>
|
<UsageCount Value="11"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit32>
|
</Unit32>
|
||||||
<Unit33>
|
<Unit33>
|
||||||
@ -274,9 +273,19 @@
|
|||||||
<EditorIndex Value="5"/>
|
<EditorIndex Value="5"/>
|
||||||
<TopLine Value="10"/>
|
<TopLine Value="10"/>
|
||||||
<CursorPos X="24" Y="104"/>
|
<CursorPos X="24" Y="104"/>
|
||||||
<UsageCount Value="10"/>
|
<UsageCount Value="11"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit33>
|
</Unit33>
|
||||||
|
<Unit34>
|
||||||
|
<Filename Value="C:\laztrunk\fpc\rtl\inc\objpas.inc"/>
|
||||||
|
<IsVisibleTab Value="True"/>
|
||||||
|
<EditorIndex Value="1"/>
|
||||||
|
<WindowIndex Value="1"/>
|
||||||
|
<TopLine Value="308"/>
|
||||||
|
<CursorPos Y="331"/>
|
||||||
|
<UsageCount Value="11"/>
|
||||||
|
<Loaded Value="True"/>
|
||||||
|
</Unit34>
|
||||||
</Units>
|
</Units>
|
||||||
<OtherDefines Count="1">
|
<OtherDefines Count="1">
|
||||||
<Define0 Value="DEBUGMODE"/>
|
<Define0 Value="DEBUGMODE"/>
|
||||||
@ -284,123 +293,123 @@
|
|||||||
<JumpHistory Count="30" HistoryIndex="29">
|
<JumpHistory Count="30" HistoryIndex="29">
|
||||||
<Position1>
|
<Position1>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="268" Column="79" TopLine="239"/>
|
<Caret Line="186" Column="24" TopLine="160"/>
|
||||||
</Position1>
|
</Position1>
|
||||||
<Position2>
|
<Position2>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="235" Column="60" TopLine="216"/>
|
<Caret Line="245" Column="26" TopLine="218"/>
|
||||||
</Position2>
|
</Position2>
|
||||||
<Position3>
|
<Position3>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="272" Column="25" TopLine="245"/>
|
<Caret Line="246" Column="31" TopLine="222"/>
|
||||||
</Position3>
|
</Position3>
|
||||||
<Position4>
|
<Position4>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="233" Column="47" TopLine="214"/>
|
<Caret Line="248" Column="53" TopLine="222"/>
|
||||||
</Position4>
|
</Position4>
|
||||||
<Position5>
|
<Position5>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="239" Column="20" TopLine="229"/>
|
<Caret Line="212" Column="33" TopLine="184"/>
|
||||||
</Position5>
|
</Position5>
|
||||||
<Position6>
|
<Position6>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="C:\laztrunk\fpc\rtl\objpas\classes\stringl.inc"/>
|
||||||
<Caret Line="295" Column="31" TopLine="259"/>
|
<Caret Line="1116" Column="75" TopLine="1116"/>
|
||||||
</Position6>
|
</Position6>
|
||||||
<Position7>
|
<Position7>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="289" Column="22" TopLine="268"/>
|
<Caret Line="287" TopLine="269"/>
|
||||||
</Position7>
|
</Position7>
|
||||||
<Position8>
|
<Position8>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="C:\laztrunk\fpc\rtl\objpas\sysutils\sysencodingh.inc"/>
|
||||||
<Caret Line="278" Column="71" TopLine="268"/>
|
<Caret Line="104" Column="24" TopLine="66"/>
|
||||||
</Position8>
|
</Position8>
|
||||||
<Position9>
|
<Position9>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="306" Column="78" TopLine="269"/>
|
<Caret Line="283" Column="56" TopLine="256"/>
|
||||||
</Position9>
|
</Position9>
|
||||||
<Position10>
|
<Position10>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="289" Column="57" TopLine="261"/>
|
<Caret Line="312" Column="56" TopLine="285"/>
|
||||||
</Position10>
|
</Position10>
|
||||||
<Position11>
|
<Position11>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="C:\laztrunk\fpc\rtl\objpas\classes\stringl.inc"/>
|
||||||
<Caret Line="255" Column="57" TopLine="229"/>
|
<Caret Line="1116" Column="10" TopLine="1110"/>
|
||||||
</Position11>
|
</Position11>
|
||||||
<Position12>
|
<Position12>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="308" Column="21" TopLine="277"/>
|
<Caret Line="283" Column="55" TopLine="256"/>
|
||||||
</Position12>
|
</Position12>
|
||||||
<Position13>
|
<Position13>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="149" Column="39" TopLine="121"/>
|
<Caret Line="212" Column="40" TopLine="185"/>
|
||||||
</Position13>
|
</Position13>
|
||||||
<Position14>
|
<Position14>
|
||||||
<Filename Value="..\ulazautoupdate.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="999" Column="4" TopLine="970"/>
|
<Caret Line="255" Column="75" TopLine="235"/>
|
||||||
</Position14>
|
</Position14>
|
||||||
<Position15>
|
<Position15>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="umainform.pas"/>
|
||||||
<Caret Line="186" Column="24" TopLine="160"/>
|
<Caret Line="218" Column="29" TopLine="208"/>
|
||||||
</Position15>
|
</Position15>
|
||||||
<Position16>
|
<Position16>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="245" Column="26" TopLine="218"/>
|
<Caret Line="264" Column="13" TopLine="238"/>
|
||||||
</Position16>
|
</Position16>
|
||||||
<Position17>
|
<Position17>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="246" Column="31" TopLine="222"/>
|
<Caret Line="183" Column="7" TopLine="165"/>
|
||||||
</Position17>
|
</Position17>
|
||||||
<Position18>
|
<Position18>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ulazautoupdate.pas"/>
|
||||||
<Caret Line="248" Column="53" TopLine="222"/>
|
<Caret Line="971" TopLine="948"/>
|
||||||
</Position18>
|
</Position18>
|
||||||
<Position19>
|
<Position19>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ulazautoupdate.pas"/>
|
||||||
<Caret Line="212" Column="33" TopLine="184"/>
|
<Caret Line="973" TopLine="970"/>
|
||||||
</Position19>
|
</Position19>
|
||||||
<Position20>
|
<Position20>
|
||||||
<Filename Value="C:\laztrunk\fpc\rtl\objpas\classes\stringl.inc"/>
|
<Filename Value="umainform.pas"/>
|
||||||
<Caret Line="1116" Column="75" TopLine="1116"/>
|
<Caret Line="183" TopLine="175"/>
|
||||||
</Position20>
|
</Position20>
|
||||||
<Position21>
|
<Position21>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="287" TopLine="269"/>
|
<Caret Line="394" Column="68" TopLine="357"/>
|
||||||
</Position21>
|
</Position21>
|
||||||
<Position22>
|
<Position22>
|
||||||
<Filename Value="C:\laztrunk\fpc\rtl\objpas\sysutils\sysencodingh.inc"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="104" Column="24" TopLine="66"/>
|
<Caret Line="176" Column="32" TopLine="158"/>
|
||||||
</Position22>
|
</Position22>
|
||||||
<Position23>
|
<Position23>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="umainform.pas"/>
|
||||||
<Caret Line="283" Column="56" TopLine="256"/>
|
<Caret Line="183" TopLine="175"/>
|
||||||
</Position23>
|
</Position23>
|
||||||
<Position24>
|
<Position24>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="umainform.pas"/>
|
||||||
<Caret Line="312" Column="56" TopLine="285"/>
|
<Caret Line="227" Column="3" TopLine="209"/>
|
||||||
</Position24>
|
</Position24>
|
||||||
<Position25>
|
<Position25>
|
||||||
<Filename Value="C:\laztrunk\fpc\rtl\objpas\classes\stringl.inc"/>
|
<Filename Value="umainform.pas"/>
|
||||||
<Caret Line="1116" Column="10" TopLine="1110"/>
|
<Caret Line="179" Column="3" TopLine="177"/>
|
||||||
</Position25>
|
</Position25>
|
||||||
<Position26>
|
<Position26>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="umainform.pas"/>
|
||||||
<Caret Line="283" Column="55" TopLine="256"/>
|
<Caret Line="227" Column="3" TopLine="194"/>
|
||||||
</Position26>
|
</Position26>
|
||||||
<Position27>
|
<Position27>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="umainform.pas"/>
|
||||||
<Caret Line="212" Column="40" TopLine="185"/>
|
<Caret Line="179" TopLine="177"/>
|
||||||
</Position27>
|
</Position27>
|
||||||
<Position28>
|
<Position28>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="umainform.pas"/>
|
||||||
<Caret Line="255" Column="75" TopLine="235"/>
|
<Caret Line="228" TopLine="209"/>
|
||||||
</Position28>
|
</Position28>
|
||||||
<Position29>
|
<Position29>
|
||||||
<Filename Value="umainform.pas"/>
|
<Filename Value="umainform.pas"/>
|
||||||
<Caret Line="218" Column="29" TopLine="208"/>
|
<Caret Line="112" TopLine="110"/>
|
||||||
</Position29>
|
</Position29>
|
||||||
<Position30>
|
<Position30>
|
||||||
<Filename Value="..\ushortcut.pas"/>
|
<Filename Value="..\ushortcut.pas"/>
|
||||||
<Caret Line="264" Column="13" TopLine="238"/>
|
<Caret Line="339" Column="67" TopLine="318"/>
|
||||||
</Position30>
|
</Position30>
|
||||||
</JumpHistory>
|
</JumpHistory>
|
||||||
</ProjectSession>
|
</ProjectSession>
|
||||||
|
Binary file not shown.
@ -109,7 +109,6 @@ end;
|
|||||||
|
|
||||||
procedure Tmainform.FormCreate(Sender: TObject);
|
procedure Tmainform.FormCreate(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
LazAutoUpdate1.DebugMode:=TRUE;
|
|
||||||
LazAutoUpdate1.VersionsININame:=C_VERSIONSINNAME;
|
LazAutoUpdate1.VersionsININame:=C_VERSIONSINNAME;
|
||||||
LazAutoUpdate1.ZipfileName:=C_ZIPFILENAME;
|
LazAutoUpdate1.ZipfileName:=C_ZIPFILENAME;
|
||||||
LazAutoUpdate1.GitHubProjectname:='lazarusccr';
|
LazAutoUpdate1.GitHubProjectname:='lazarusccr';
|
||||||
@ -224,7 +223,7 @@ end;
|
|||||||
|
|
||||||
procedure Tmainform.cmd_DeleteDesktopShortcutClick(Sender: TObject);
|
procedure Tmainform.cmd_DeleteDesktopShortcutClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
LazAutoUpdate1.ShortCut.ShortCutName:='Test Application';
|
LazAutoUpdate1.ShortCut.ShortCutName:=Application.Title;
|
||||||
If LazAutoUpdate1.DeleteShortCut then
|
If LazAutoUpdate1.DeleteShortCut then
|
||||||
ShowMessage('Success! New shortcut is toast')
|
ShowMessage('Success! New shortcut is toast')
|
||||||
else
|
else
|
||||||
|
@ -999,7 +999,7 @@ begin
|
|||||||
fLastError:=GetShortCutDebugString;
|
fLastError:=GetShortCutDebugString;
|
||||||
if fFireDebugEvent then
|
if fFireDebugEvent then
|
||||||
if Result = True then
|
if Result = True then
|
||||||
fOndebugEvent(Self, 'MakeShortCut', 'MakeShortCut succeded.')
|
fOndebugEvent(Self, 'MakeShortCut', 'MakeShortCut succeded.' + GetShortCutDebugString)
|
||||||
else
|
else
|
||||||
fOndebugEvent(Self, 'MakeShortCut', 'MakeShortCut failed. Error(s): ' + GetShortCutDebugString);
|
fOndebugEvent(Self, 'MakeShortCut', 'MakeShortCut failed. Error(s): ' + GetShortCutDebugString);
|
||||||
end;
|
end;
|
||||||
@ -1023,7 +1023,7 @@ begin
|
|||||||
|
|
||||||
if fFireDebugEvent then
|
if fFireDebugEvent then
|
||||||
if Result = True then
|
if Result = True then
|
||||||
fOndebugEvent(Self, 'MakeShortCut', 'DeleteShortCut succeded.')
|
fOndebugEvent(Self, 'MakeShortCut', 'DeleteShortCut succeded.' + GetShortCutDebugString)
|
||||||
else
|
else
|
||||||
fOndebugEvent(Self, 'MakeShortCut', 'DeleteShortCut failed. Error: ' + GetShortCutDebugString);
|
fOndebugEvent(Self, 'MakeShortCut', 'DeleteShortCut failed. Error: ' + GetShortCutDebugString);
|
||||||
|
|
||||||
|
Binary file not shown.
@ -9,7 +9,7 @@
|
|||||||
"ForceNotify" : false,
|
"ForceNotify" : false,
|
||||||
"InternalVersion" : 1,
|
"InternalVersion" : 1,
|
||||||
"Name" : "lazupdate.lpk",
|
"Name" : "lazupdate.lpk",
|
||||||
"Version" : "0.3.5.0"
|
"Version" : "0.3.6.0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,9 @@ implementation
|
|||||||
|
|
||||||
var
|
var
|
||||||
sDebugString: string;
|
sDebugString: string;
|
||||||
|
// *****************************************************************************
|
||||||
// Functions and procs to aid Debugging
|
// Functions and procs to aid Debugging
|
||||||
|
// *****************************************************************************
|
||||||
function GetShortCutDebugString: string;
|
function GetShortCutDebugString: string;
|
||||||
begin
|
begin
|
||||||
if (sDebugString = '') then
|
if (sDebugString = '') then
|
||||||
@ -114,6 +116,7 @@ begin
|
|||||||
else
|
else
|
||||||
sDebugString := sDebugString + LineEnding + '* ' + Astring;
|
sDebugString := sDebugString + LineEnding + '* ' + Astring;
|
||||||
end;
|
end;
|
||||||
|
// *****************************************************************************
|
||||||
|
|
||||||
{$IFDEF UNIX}
|
{$IFDEF UNIX}
|
||||||
//Adapted from sysutils; Unix/Linux only
|
//Adapted from sysutils; Unix/Linux only
|
||||||
@ -143,7 +146,7 @@ IN:
|
|||||||
Category: Simple string (see header of this unit)
|
Category: Simple string (see header of this unit)
|
||||||
OUT:
|
OUT:
|
||||||
True = Success
|
True = Success
|
||||||
False = Fail
|
False = Failure
|
||||||
Use function GetShortCutDebugString to get most recent error as a string
|
Use function GetShortCutDebugString to get most recent error as a string
|
||||||
}
|
}
|
||||||
var
|
var
|
||||||
@ -173,19 +176,23 @@ begin
|
|||||||
ISLink.SetPath(PChar(Target));
|
ISLink.SetPath(PChar(Target));
|
||||||
ISLink.SetArguments(PChar(TargetArguments));
|
ISLink.SetArguments(PChar(TargetArguments));
|
||||||
ISLink.SetWorkingDirectory(PChar(ExtractFilePath(Target)));
|
ISLink.SetWorkingDirectory(PChar(ExtractFilePath(Target)));
|
||||||
// ISLink.SetIconLocation(Pchar(ExtractFilePath(Target) + IconFileName));
|
{
|
||||||
|
Not needed
|
||||||
|
ISLink.SetIconLocation(Pchar(ExtractFilePath(Target) + IconFileName),0);
|
||||||
|
}
|
||||||
{ Get the desktop location }
|
{ Get the desktop location }
|
||||||
SHGetSpecialFolderLocation(0, CSIDL_DESKTOPDIRECTORY, PIDL);
|
SHGetSpecialFolderLocation(0, CSIDL_DESKTOPDIRECTORY, PIDL);
|
||||||
SHGetPathFromIDList(PIDL, InFolder);
|
SHGetPathFromIDList(PIDL, InFolder);
|
||||||
LinkName := IncludeTrailingPathDelimiter(InFolder) + ShortcutName + '.lnk';
|
LinkName := IncludeTrailingPathDelimiter(InFolder) + ShortcutName + '.lnk';
|
||||||
|
|
||||||
{ Get rid of any existing shortcut first }
|
{ Get rid of any existing shortcut first }
|
||||||
|
|
||||||
if not SysUtils.DeleteFile(LinkName) then
|
if not SysUtils.DeleteFile(LinkName) then
|
||||||
AddToDebugString('Could not delete existing link ' + LinkName);
|
AddToDebugString('Could not delete existing link ' + LinkName);
|
||||||
{ Create the link }
|
{ Create the link }
|
||||||
IPFile.Save(PWChar(LinkName), False);
|
IPFile.Save(PWChar(LinkName), False);
|
||||||
finally
|
finally
|
||||||
FreeAndNil(IPFile);
|
// Not needed: FreeAndNil(IPFile);
|
||||||
end;
|
end;
|
||||||
except
|
except
|
||||||
Result := False;
|
Result := False;
|
||||||
@ -197,7 +204,7 @@ end;
|
|||||||
function CreateDesktopShortCut(Target, TargetArguments, ShortcutName,
|
function CreateDesktopShortCut(Target, TargetArguments, ShortcutName,
|
||||||
IconFileName, Category: string): boolean;
|
IconFileName, Category: string): boolean;
|
||||||
{
|
{
|
||||||
* Comprehensive debugging messages in this routine.
|
* Comprehensive debugging messages in this routine!
|
||||||
* So many flavours of Linux.. - if no desktop icon is created then
|
* So many flavours of Linux.. - if no desktop icon is created then
|
||||||
* call GetShortCutDebugString and log the result to a file.
|
* call GetShortCutDebugString and log the result to a file.
|
||||||
IN:
|
IN:
|
||||||
@ -208,7 +215,7 @@ IN:
|
|||||||
Category: Simple string (see header of this unit)
|
Category: Simple string (see header of this unit)
|
||||||
OUT:
|
OUT:
|
||||||
True = Success
|
True = Success
|
||||||
False = Fail
|
False = Failure
|
||||||
Use function GetShortCutDebugString to get errors as a string
|
Use function GetShortCutDebugString to get errors as a string
|
||||||
}
|
}
|
||||||
var
|
var
|
||||||
@ -222,25 +229,24 @@ begin
|
|||||||
Result := True;
|
Result := True;
|
||||||
sDebugString := '';
|
sDebugString := '';
|
||||||
// Simple failure checks
|
// Simple failure checks
|
||||||
if not FileExistsUTF8(Target) then
|
if not FileExistsUTF8(Target) then // lethal
|
||||||
begin
|
begin
|
||||||
AddToDebugString('File "' + Target + '" cannot be located. Quitting.');
|
AddToDebugString('File "' + Target + '" cannot be located. Quitting.');
|
||||||
Result := False;
|
Result := False;
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
if not FileExistsUTF8(IconFileName) then
|
if not FileExistsUTF8(IconFileName) then // non-lethal
|
||||||
begin
|
begin
|
||||||
AddToDebugString('File "' + IconFileName + '" cannot be located. Using Target.');
|
AddToDebugString('File "' + IconFileName + '" cannot be located. Using Target.');
|
||||||
IconFileName := Target;
|
IconFileName := Target;
|
||||||
end;
|
end;
|
||||||
if ShortCutName = '' then
|
if ShortCutName = '' then // lethal
|
||||||
begin
|
begin
|
||||||
AddToDebugString('ShortcutName is blank. Quitting.');
|
AddToDebugString('ShortcutName is blank. Quitting.');
|
||||||
Result := False;
|
Result := False;
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
if Category = '' then // non-lethal
|
||||||
if Category = '' then
|
|
||||||
begin
|
begin
|
||||||
AddToDebugString('Category is blank. Using "Utility"');
|
AddToDebugString('Category is blank. Using "Utility"');
|
||||||
Category := 'Utility';
|
Category := 'Utility';
|
||||||
@ -250,23 +256,20 @@ begin
|
|||||||
sDesktopFilename := LeftStr(sDesktopFilename, 8);
|
sDesktopFilename := LeftStr(sDesktopFilename, 8);
|
||||||
sDesktopFilename := LowerCase(sDesktopFilename);
|
sDesktopFilename := LowerCase(sDesktopFilename);
|
||||||
AddToDebugString('Desktop filename = ' + sDesktopFilename);
|
AddToDebugString('Desktop filename = ' + sDesktopFilename);
|
||||||
|
// Note: IncludeTrailingPathDelimiter(ExpandFileNameUTF8('~')) resolves to '/root/'
|
||||||
|
|
||||||
// Standard path to DeskTop files
|
// Standard path to DeskTop files
|
||||||
// IncludeTrailingPathDelimiter(ExpandFileNameUTF8('~')) resolves to '/root/'
|
|
||||||
sPathToShare := '/usr/share/applications' + DirectorySeparator +
|
sPathToShare := '/usr/share/applications' + DirectorySeparator +
|
||||||
sDesktopFilename + '.desktop';
|
sDesktopFilename + '.desktop';
|
||||||
// Directory check
|
// Directory check
|
||||||
if not DirectoryExistsUTF8('/usr/share/applications') then
|
if not DirectoryExistsUTF8('/usr/share/applications') then // non-lethal
|
||||||
begin
|
AddToDebugString('Cannot find directory - ' + '/usr/share/applications');
|
||||||
AddToDebugString('Failure: Invalid directory - ' + '/usr/share/applications');
|
|
||||||
Result := False;
|
|
||||||
Exit;
|
|
||||||
end;
|
|
||||||
|
|
||||||
// Temp directory path
|
// Temp directory path
|
||||||
XdgDesktopFile := IncludeTrailingPathDelimiter(GetTempDir(False)) +
|
XdgDesktopFile := IncludeTrailingPathDelimiter(GetTempDir(False)) +
|
||||||
sDesktopFilename + '.desktop';
|
sDesktopFilename + '.desktop';
|
||||||
// Directory check
|
// Directory check
|
||||||
if not DirectoryExistsUTF8(GetTempDir(False)) then
|
if not DirectoryExistsUTF8(GetTempDir(False)) then // lethal
|
||||||
begin
|
begin
|
||||||
AddToDebugString('Failure: Invalid directory - ' + GetTempDir(False));
|
AddToDebugString('Failure: Invalid directory - ' + GetTempDir(False));
|
||||||
Result := False;
|
Result := False;
|
||||||
@ -326,6 +329,14 @@ begin
|
|||||||
else
|
else
|
||||||
AddToDebugString('Failure: Unable to delete existing ' + sPathToShare);
|
AddToDebugString('Failure: Unable to delete existing ' + sPathToShare);
|
||||||
end;
|
end;
|
||||||
|
// Final Directory check
|
||||||
|
if not DirectoryExistsUTF8('/usr/share/applications') then // lethal
|
||||||
|
begin
|
||||||
|
AddToDebugString(
|
||||||
|
'Failure: Directory "/usr/share/applications" does not exist on this system');
|
||||||
|
Result := False;
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
// Save the stringlist directly to usr/share/applications
|
// Save the stringlist directly to usr/share/applications
|
||||||
try
|
try
|
||||||
XdgDesktopStringList.SaveToFile(sPathToShare);
|
XdgDesktopStringList.SaveToFile(sPathToShare);
|
||||||
@ -342,7 +353,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
if Result = False then
|
if Result = False then
|
||||||
try
|
try
|
||||||
if Not (FileExistsUTF8(XdgDesktopFile)) then
|
if not (FileExistsUTF8(XdgDesktopFile)) then
|
||||||
AddToDebugString('Unable to locate temporary ' + XdgDesktopFile);
|
AddToDebugString('Unable to locate temporary ' + XdgDesktopFile);
|
||||||
if (FileExistsUTF8(XdgDesktopFile)) and (not FileExistsUTF8(sPathToShare)) then
|
if (FileExistsUTF8(XdgDesktopFile)) and (not FileExistsUTF8(sPathToShare)) then
|
||||||
begin
|
begin
|
||||||
@ -364,7 +375,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
if (FileExistsUTF8(sPathToShare)) then
|
if (FileExistsUTF8(sPathToShare)) then
|
||||||
begin
|
begin
|
||||||
Result:=true;
|
Result := True;
|
||||||
AddToDebugString('Success: Desktop file - ' + sPathToShare);
|
AddToDebugString('Success: Desktop file - ' + sPathToShare);
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
@ -383,7 +394,7 @@ var
|
|||||||
InFolder: array[0..MAX_PATH] of char;
|
InFolder: array[0..MAX_PATH] of char;
|
||||||
LinkName: WideString;
|
LinkName: WideString;
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False; // Assume failure; look for success
|
||||||
sDebugString := '';
|
sDebugString := '';
|
||||||
try
|
try
|
||||||
{ Get the desktop location }
|
{ Get the desktop location }
|
||||||
@ -391,7 +402,12 @@ begin
|
|||||||
SHGetPathFromIDList(PIDL, InFolder);
|
SHGetPathFromIDList(PIDL, InFolder);
|
||||||
LinkName := IncludeTrailingPathDelimiter(InFolder) + ShortcutName + '.lnk';
|
LinkName := IncludeTrailingPathDelimiter(InFolder) + ShortcutName + '.lnk';
|
||||||
if SysUtils.DeleteFile(LinkName) then
|
if SysUtils.DeleteFile(LinkName) then
|
||||||
|
begin
|
||||||
Result := True;
|
Result := True;
|
||||||
|
AddToDebugString('DeleteDesktopShortcut Success: Deleted ' + LinkName);
|
||||||
|
end
|
||||||
|
else
|
||||||
|
AddToDebugString('DeleteDesktopShortcut Failure: Unable to delete ' + LinkName);
|
||||||
except
|
except
|
||||||
AddToDebugString('Exception deleting ' + LinkName);
|
AddToDebugString('Exception deleting ' + LinkName);
|
||||||
// Eat the exception
|
// Eat the exception
|
||||||
|
Reference in New Issue
Block a user