-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathReadme.html
More file actions
240 lines (216 loc) · 8.28 KB
/
Readme.html
File metadata and controls
240 lines (216 loc) · 8.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD><TITLE>ShellLink</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>
BODY {
PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-WEIGHT: normal; FONT-SIZE: 10pt; PADDING-BOTTOM: 10px; PADDING-TOP: 10px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #f0f0f0
}
CENTER {
TEXT-ALIGN: center
}
TABLE {
MARGIN: auto; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: left
}
.maintable {
BORDER-RIGHT: #376eab 2px solid; BORDER-TOP: #376eab 2px solid; BORDER-LEFT: #376eab 2px solid; BORDER-BOTTOM: #376eab 2px solid
}
.margin {
MARGIN: 20px
}
.text {
MARGIN: 20px
}
.bold {
FONT-WEIGHT: bold
}
.italic {
FONT-STYLE: italic
}
.bigheader {
FONT-SIZE: 24pt; MARGIN: 10px; COLOR: #333333; TEXT-ALIGN: center
}
.header {
FONT-SIZE: 14pt; COLOR: #7a7272
}
.subheader {
FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030
}
.footer {
FONT-SIZE: 8pt; MARGIN: 5px; COLOR: #909090; TEXT-ALIGN: right
}
A:link {
COLOR: #294f75; TEXT-DECORATION: none
}
A:visited {
COLOR: #294f75; TEXT-DECORATION: none
}
A:active {
COLOR: #294f75; TEXT-DECORATION: none
}
A:hover {
COLOR: #182634; TEXT-DECORATION: none
}
</STYLE>
<META content="MSHTML 6.00.2800.1264" name=GENERATOR></HEAD>
<BODY>
<DIV class=center>
<TABLE class=maintable cellSpacing=0 cellPadding=0 width=750>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD>
<P class=bigheader>ShellLink </P></TD></TR>
<TR>
<TD>
<DIV style="MARGIN: 20px">
<P style="FONT-SIZE: 14pt; COLOR: #7a7272">Introduction</P>
<P style="MARGIN: 20px">ShellLink is a NSIS plugin that allows you to read and write shell link (.lnk) files.</P>
<P style="FONT-SIZE: 14pt; COLOR: #7a7272">How to use</P>
<P style="MARGIN: 20px">Make sure you have a valid path (link.lnk) to the shell link file.</P>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Get Shortcut Working Directory</P>
<PRE style="MARGIN: 20px">ShellLink::GetShortCutWorkingDirectory link.lnk
Pop $0
$0=C:\Program Files\MyProgram
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Get Shortcut Target</P>
<PRE style="MARGIN: 20px">ShellLink::GetShortCutTarget link.lnk
Pop $0
$0=C:\Program Files\MyProgram\run.exe
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Get Shortcut Arguments </P>
<PRE style="MARGIN: 20px">ShellLink::GetShortCutArgs link.lnk
Pop $0
$0=/s /d=1
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Get Shortcut Icon Location </P>
<PRE style="MARGIN: 20px">ShellLink::GetShortCutIconLocation link.lnk
Pop $0
$0=C:\Program Files\MyProgram\run.dll
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Get Shortcut Icon Index </P>
<PRE style="MARGIN: 20px">ShellLink::GetShortCutIconIndex link.lnk
Pop $0
$0=3
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Get Shortcut Show Mode </P>
<PRE style="MARGIN: 20px">ShellLink::GetShortCutShowMode link.lnk
Pop $0
$0=0 (SW_HIDE)
$0=1 (SW_SHOWNORMAL or SW_NORMAL)
$0=2 (SW_SHOWMINIMIZED)
$0=3 (SW_SHOWMAXIMIZED or SW_MAXIMIZE)
$0=4 (SW_SHOWNOACTIVATE)
$0=5 (SW_SHOW)
$0=6 (SW_MINIMIZE)
$0=7 (SW_SHOWMINNOACTIVE)
$0=8 (SW_SHOWNA)
$0=9 (SW_RESTORE)
$0=10 (SW_SHOWDEFAULT)
$0=11 (SW_FORCEMINIMIZE or SW_MAX)
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Get Shortcut Hot Keys</P>
<PRE style="MARGIN: 20px">ShellLink::GetShortCutHotkey link.lnk
Pop $0
$0=634
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Get Shortcut Description</P>
<PRE style="MARGIN: 20px">ShellLink::GetShortCutDescription link.lnk
Pop $0
$0=My Shortcut Description
</PRE>
<BR>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Set Shortcut Working Directory</P>
<PRE style="MARGIN: 20px">ShellLink::SetShortCutWorkingDirectory link.lnk directory
Pop $0
$0=0 -no errors
$0=-1 -error
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Set Shortcut Target</P>
<PRE style="MARGIN: 20px">ShellLink::SetShortCutTarget link.lnk target.file
Pop $0
$0=0 -no errors
$0=-1 -error
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Set Shortcut Arguments</P>
<PRE style="MARGIN: 20px">ShellLink::SetShortCutArgs link.lnk parameters
Pop $0
$0=0 -no errors
$0=-1 -error
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Set Shortcut Icon Location</P>
<PRE style="MARGIN: 20px">ShellLink::SetShortCutIconLocation link.lnk icon.file
Pop $0
$0=0 -no errors
$0=-1 -error
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Set Shortcut Icon Index</P>
<PRE style="MARGIN: 20px">ShellLink::SetShortCutIconIndex link.lnk icon_index_number
Pop $0
$0=0 -no errors
$0=-1 -error
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Set Shortcut Show Mode</P>
<PRE style="MARGIN: 20px">ShellLink::SetShortCutShowMode link.lnk start_options
Pop $0
$0=0 -no errors
$0=-1 -error
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Set Shortcut Hot Keys</P>
<PRE style="MARGIN: 20px">ShellLink::SetShortCutHotkey link.lnk keyboard_shortcut
Pop $0
$0=0 -no errors
$0=-1 -error
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Set Shortcut Description</P>
<PRE style="MARGIN: 20px">ShellLink::SetShortCutDescription link.lnk description
Pop $0
$0=0 -no errors
$0=-1 -error
</PRE>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">Set Shortcut to Run As Administrator</P>
<PRE style="MARGIN: 20px">ShellLink::SetRunAsAdministrator link.lnk
Pop $0
$0=0 -no errors
$0=-1 -error
</PRE>
<P style="FONT-SIZE: 14pt; COLOR: #7a7272">Source code</P>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 20px; COLOR: #303030">NSIS plug-in (C++)</P>
<P style="MARGIN: 20px">A download link to the source and DLL of this NSIS plug-in
can be found below.</P>
<P style="FONT-SIZE: 14pt; COLOR: #7a7272">Version history</P>
<UL>
<LI>1.2 by Afrow UK
<BR> -added Unicode build
<BR> -added SetRunAsAdministrator
<BR> -cleaned up code</LI>
<LI>1.1 by Shengalts Aleksander aka Instructor (Shengalts@mail.ru)
<BR> -code has been rewritten
<BR> -added functions to change shell link information
<BR> -reduced dll size 44Kb -> 4Kb
<BR> -documentation updated</LI>
<LI>1.0 first release of ShellLink.</LI>
</UL>
<P style="FONT-SIZE: 14pt; COLOR: #7a7272">Credits</P>
<P style="MARGIN: 20px">Written and documented by Angelo Mandato </P>
<P style="FONT-SIZE: 14pt; COLOR: #7a7272">License</P>
<PRE style="MARGIN: 20px">© 2004 Angelo Mandato
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute
it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented;
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment in the
product documentation would be appreciated but is not required.
2. Altered versions must be plainly marked as such,
and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any distribution.
</PRE>
<P style="FONT-SIZE: 14pt; COLOR: #7a7272">Download</P>
<P style="MARGIN: 20px">Original link: <a href="http://www.spaceblue.com/downloads/shelllink.zip">http://www.spaceblue.com/downloads/shelllink.zip</a><br>NSIS Wiki: <a href="http://nsis.sourceforge.net/ShellLink_plug-in">http://nsis.sourceforge.net/ShellLink_plug-in</a></P>
</DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></BODY></HTML>