Xtract SelfXTracting and VirtualLinker
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
New Version at http://www.srings.com/downloads/xtract.zip
now with Password-Protection , working Progressbar and a new 'SKIN'
thx all guys for the libs and codesnipets i used in this App.
Siggi
New Version at http://www.srings.com/downloads/xtract.zip
now with Password-Protection , working Progressbar and a new 'SKIN'
thx all guys for the libs and codesnipets i used in this App.
Siggi
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Fangbeast.
:)
Fangles
Hey Siggi, cool app. Comes in very handy for the "big: version of the finder I wrote. Now some of the Blondes who test it (evil grin) have only one file to lose
New Version at http://www.srings.com/downloads/xtract.zip
now with Password-Protection , working Progressbar and a new 'SKIN'
thx all guys for the libs and codesnipets i used in this App.
Siggi
Fangles
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
CDROM.Never easier to use (and lost) for Blondes .While the app is in the Beta i told my wife to color her hair .
)
Siggi
And you can protected it easily ,set the write-protected-flag and burn it onHey Siggi, cool app. Comes in very handy for the "big: version of the finder I wrote. Now some of the Blondes who test it (evil grin) have only one file to lose:)
CDROM.Never easier to use (and lost) for Blondes .While the app is in the Beta i told my wife to color her hair .
Siggi
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Fangbeast.
P.s. Do you have any licensing arrangements for your vlinker? As I am planning to distribute one of my packages soon commercially (I may be dreaming but am trying)
Fangles
Hey, are you trying to get me to fall out of my chair?? Seriously, mine's brunette but...And you can protected it easily ,set the write-protected-flag and burn it on
CDROM.Never easier to use (and lost) for Blondes .While the app is in the Beta i told my wife to color her hair .)
Siggi
P.s. Do you have any licensing arrangements for your vlinker? As I am planning to distribute one of my packages soon commercially (I may be dreaming but am trying)
Fangles
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
Good Morning World,
My Plans for further verions:
The First thing to do is copy ICONS from the starting exe to the vlink.exe.
The second is do a better Installer-Frontend.
Third is test more with the PE-Header and sections (with indeep ASM) and create
more protected (System-bounded,Password-protected)Apps.
It's not so difficult as it seems.
Siggi
Good Morning World,
sure fangles, this XTract(and vLink) is free.P.s. Do you have any licensing arrangements for your vlinker? As I am planning to distribute one of my packages soon commercially (I may be dreaming but am trying)
My Plans for further verions:
The First thing to do is copy ICONS from the starting exe to the vlink.exe.
The second is do a better Installer-Frontend.
Third is test more with the PE-Header and sections (with indeep ASM) and create
more protected (System-bounded,Password-protected)Apps.
It's not so difficult as it seems.
Siggi
i know this is an old post..
But i have been working on creating such app. I maked the unpacker and i made the packer and i could bundle things in 1 exe file, but one thing i newer got was copying the icon from the main exe. How extract the icon (i can figure this out myself..) and how to put an icon in an exe (i cant figure out..)
If anyone knows how to do that, i would be very happy
EDIT: also this is not to be in the announcement section.. please move it if you are not happy with it here.. Just found out after writing..
But i have been working on creating such app. I maked the unpacker and i made the packer and i could bundle things in 1 exe file, but one thing i newer got was copying the icon from the main exe. How extract the icon (i can figure this out myself..) and how to put an icon in an exe (i cant figure out..)
If anyone knows how to do that, i would be very happy
EDIT: also this is not to be in the announcement section.. please move it if you are not happy with it here.. Just found out after writing..
-
BalrogSoft
- Enthusiast

- Posts: 203
- Joined: Sat Apr 26, 2003 6:33 pm
- Location: Spain
- Contact:
Hi!
You don't have to use API for changing executables icon.
All you have to do, is to create exe with icon (256 color).
After this use a HexEditor to find startaddress of icon in exe.
(Warning: The address could change if you modify your code and recreate exe)
Hm. I think its easier if you use this little snippet:
Regards,
Mischa
You don't have to use API for changing executables icon.
All you have to do, is to create exe with icon (256 color).
After this use a HexEditor to find startaddress of icon in exe.
(Warning: The address could change if you modify your code and recreate exe)
Hm. I think its easier if you use this little snippet:
Code: Select all
;Change icon in executable
;The executable must contain a 256 colored icon
;Mischa
Runtime.s="yourprogram.exe"
icon.s="newicon.ico"
If ReadFile(0,Runtime)
size=FileSize(Runtime)
*exe=AllocateMemory(size)
ReadData(*exe,size)
CloseFile(0)
Repeat
long1=PeekL(*exe+seeker)
If long1=40
long2=PeekL(*exe+seeker+4)
If long2=32
iconstart=seeker
EndIf
EndIf
seeker+1
Until found Or seeker=size
iconsize=FileSize(icon)-22
*ico=AllocateMemory(iconsize)
ReadFile(1, icon)
FileSeek(22)
ReadData(*ico,iconsize)
CloseFile(1)
CopyMemory(*ico,*exe+iconstart,iconsize)
CreateFile(0,Runtime)
WriteData(*exe,size)
CloseFile(0)
EndIfMischa
-
BalrogSoft
- Enthusiast

- Posts: 203
- Joined: Sat Apr 26, 2003 6:33 pm
- Location: Spain
- Contact:
Interesting code, but it could be better, and more correct to use api functions to modify executable resources, that its where the icon is located, i dont want to include on ScriptVM an icon, it increase at least 2kb the runtime, using api for resources, you can add a icon to a executable without a previously icon, but it seems a little more complicated than your code, i will inform if i get some code to modify resources...
You could make 2 runtimes. 1 without icon and 1 with icon. Then make the user decide- If user selects that he wants an icon, then change the original icon of executable with the one he chooses. If he dosent select that he wants an icon, use the runtime without.
This gives a little more size in your download, but it gives the user flexibillity, that he might need!
This gives a little more size in your download, but it gives the user flexibillity, that he might need!
If you want do it the API way you will need Win NT, 2K, or XP to
update resources, i think.
Or you have to use 'ResourceHacker' (with scripts) to do these things
under Win 95, 98, or Me.
And then you have to add ResourceHacker to your files..
But you are right , when you say that my way is not much professional.
Be warned: My routine gives no guaranty. If the seeking routine find
an identically byte-sequence at another place in exe, it will crash..
You have to check functionallity always when you modify executable!
But there should be no problem, if you link something BEHIND the exe,
like your SFXr does.
Regards,
Mischa
update resources, i think.
Or you have to use 'ResourceHacker' (with scripts) to do these things
under Win 95, 98, or Me.
And then you have to add ResourceHacker to your files..
But you are right , when you say that my way is not much professional.
Be warned: My routine gives no guaranty. If the seeking routine find
an identically byte-sequence at another place in exe, it will crash..
You have to check functionallity always when you modify executable!
But there should be no problem, if you link something BEHIND the exe,
like your SFXr does.
Regards,
Mischa
