| 1 |
Parse Arg _out _name _ver _mach _desc |
| 2 |
start = .LINE + 1 |
| 3 |
/* |
| 4 |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
| 5 |
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> |
| 6 |
<assemblyIdentity |
| 7 |
version="%VER%.0" |
| 8 |
processorArchitecture="%MACH%" |
| 9 |
name="%NAME%" |
| 10 |
type="win32" |
| 11 |
/> |
| 12 |
<description>%DESC%</description> |
| 13 |
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> |
| 14 |
<application> |
| 15 |
<!-- Windows Vista --> |
| 16 |
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> |
| 17 |
<!-- Windows 7 --> |
| 18 |
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> |
| 19 |
<!-- Windows 8 --> |
| 20 |
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> |
| 21 |
<!-- Windows 8.1 --> |
| 22 |
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> |
| 23 |
<!-- Windows 10 --> |
| 24 |
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/> |
| 25 |
</application> |
| 26 |
</compatibility> |
| 27 |
</assembly> |
| 28 |
*/ |
| 29 |
end = .LINE - 2 |
| 30 |
Call Stream _out, 'C', 'OPEN WRITE REPLACE' |
| 31 |
Do i = start To end |
| 32 |
line = Sourceline(i) |
| 33 |
Select |
| 34 |
When Countstr( '%NAME%', line ) \= 0 Then line = Changestr( '%NAME%', line, _name ) |
| 35 |
When Countstr( '%VER%', line ) \= 0 Then line = Changestr( '%VER%', line, _ver ) |
| 36 |
When Countstr( '%MACH%', line ) \= 0 Then line = Changestr( '%MACH%', line, _mach ) |
| 37 |
When Countstr( '%DESC%', line ) \= 0 Then line = Changestr( '%DESC%', line, _desc ) |
| 38 |
Otherwise Nop |
| 39 |
End |
| 40 |
Call Lineout _out,line |
| 41 |
End |
| 42 |
|
| 43 |
Call Stream _out, 'C', 'CLOSE' |