Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

What tools do I need to create my own "SC Compiler"?

Single Click discussions / bugs
Post Reply
torkel
Posts: 2
Joined: 2009-01-06 16:44

What tools do I need to create my own "SC Compiler"

Post by torkel »

What tools do I need to create a customized sc.exe file? I want to do this automated using scripts, and the sc.exe file will be different each time. So I would really like some information on which tools to use and what files I need to "compile" my own custom executable :-)

Preferably on an open-source platform, but windows commandline can also work.
torkel
Posts: 2
Joined: 2009-01-06 16:44

Re: What tools do I need to create my own "SC Compiler&

Post by torkel »

Figured it out :-)
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: What tools do I need to create my own "SC Compiler&

Post by JDaus »

VNC2Me uses 7zip (same as SC) and a script is available on the SVN that automatically zips all files in .\compiled\ directory and creates the SFX EXE, then compresses it...

glad to hear you solved your own problem, but thought i would post a possible solution for others
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
rockyzhangxq
Posts: 2
Joined: 2009-02-24 19:51

Re: What tools do I need to create my own "SC Compiler&

Post by rockyzhangxq »

Hi Torkel,

How you figure out? I am a Linux guy not a windows one. Is there any way I can compile it using some open source compiler (e.g. Mingw)? I want to use script to build it automatically as well.

Thanks,
Rocky

torkel wrote:What tools do I need to create a customized sc.exe file? I want to do this automated using scripts, and the sc.exe file will be different each time. So I would really like some information on which tools to use and what files I need to "compile" my own custom executable :-)

Preferably on an open-source platform, but windows commandline can also work.
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: What tools do I need to create my own "SC Compiler&

Post by JDaus »

rockyzhangxq wrote:Is there any way I can compile it using some open source compiler (e.g. Mingw)? (on linux) I want to use script to build it automatically as well.
Here is the code on windows (.bat) ... it should be fairly easy to do the same on linux, but i have never tried ...

Code: Select all

@echo off
title Creating VNC2Me Package, using 7zip method
cls
echo this script will create the VNC2Me package using 7zip method.
echo.
echo consult the readme or website before running for the first time.
echo.
echo if you do not want to build this package now,
echo      press ctrl + c NOW
echo.
echo else,

pause
cls
del temp\VNC2Me_7zip.7z

build_resources\7za a temp\VNC2Me_7zip.7z compiled\*.*
copy /b build_resources\7z_v2m.sfx + build_resources\7z_sfx_config.txt + temp\VNC2Me_7zip.7z temp\VNC2Me_7zip.exe

build_resources\upx -9 -f -k -o VNC2Me_SC_7zip.exe temp\VNC2Me_7zip.exe

copy temp\VNC2Me_7zip.exe .\ /y

pause
you will need to find a 7z.sfx from somewhere (one on VNC2Me SVN) and work out how to do a binary copy ... other than that it should be easy...

heres what it does ...
  • Creates a 7z archive of all files in compiled directory
    Binary copies 7z archive and sfx module and sfx config together to an exe
    Compresses the resulting EXE using UPX
    copies the finished EXE to the same directory as calling script
hope this gets you started
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
Post Reply