473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Embeding a module into and executable

I have an application which is similar in function to Setup.exe. The user
downloads it, uses it once in most cases and throws it away. I am trying to
coax .NET into making it one file and it is fighting me all the way.

If I do a full build from my source files I get what I want, one exe file.
The problem comes when build the program as a library and then try to make
an exe file out of it. I have to add this extra step because the code
obfuscator works on libraries, it cannot take a "signed and sealed" exe file
and obfuscate it into another exe. If I try to add the library to a Visual
Studio project it simply creates a reference to the external module. I get
a tiny exe file which breaks if run without the larger module file in the
same directory. I tried using the AL.exe tool which has an /embed directive
which looked promising but that turns out to only embed resources.

Does anyone have a solution to this? Maybe there are security issues or
something that would cause Microsoft to disallow embedding of libraries
without source code. It seems like a strange restriction.
Nov 22 '05 #1
3 1499
If you want to merge/link .NET assemblies together, you
can use our linker tool:

http://www.remotesoft.com/linker

I think Microsoft research has a free ILMerge tool, search
google to find it.

By the way, why would an obfuscator not to handle an EXE?
Are you really sure? it seems very strange.

Our salamander obfuscator,
http://www.remotesoft.com/salamander/obfuscator.html
will automatically resign EXEs/DLLs if they have strong
names.

Huihong
Remotesoft
-----Original Message-----
I have an application which is similar in function to Setup.exe. The userdownloads it, uses it once in most cases and throws it away. I am trying tocoax .NET into making it one file and it is fighting me all the way.
If I do a full build from my source files I get what I want, one exe file.The problem comes when build the program as a library and then try to makean exe file out of it. I have to add this extra step because the codeobfuscator works on libraries, it cannot take a "signed and sealed" exe fileand obfuscate it into another exe. If I try to add the library to a VisualStudio project it simply creates a reference to the external module. I geta tiny exe file which breaks if run without the larger module file in thesame directory. I tried using the AL.exe tool which has an /embed directivewhich looked promising but that turns out to only embed resources.
Does anyone have a solution to this? Maybe there are security issues orsomething that would cause Microsoft to disallow embedding of librarieswithout source code. It seems like a strange restriction.
.

Nov 22 '05 #2
Thanks, that is exactly what I was looking for.

Since you asked, we were trying to obfuscate "on the cheap". Since the
original source was in Java we used the OpenSource ProGuard obfuscator on
the Java byte code and then used jbimp.exe to convert it to obfuscated IL
code. The jbimp.exe tool can create an exe but with few options, so we have
jbimp make a library instead and then use AL.exe to add the icon, version
info, etc. Therefore it's ironic that the final piece of the puzzle would
be filled in by the very people we were trying to avoid paying! This is a
"proof of concept" project and once funded yours will be the obfuscator we
buy, I PROMISE!

Mike
Nov 22 '05 #3
Got it, thanks for sharing the inside story. :)
-----Original Message-----
Thanks, that is exactly what I was looking for.

Since you asked, we were trying to obfuscate "on the cheap". Since theoriginal source was in Java we used the OpenSource ProGuard obfuscator onthe Java byte code and then used jbimp.exe to convert it to obfuscated ILcode. The jbimp.exe tool can create an exe but with few options, so we havejbimp make a library instead and then use AL.exe to add the icon, versioninfo, etc. Therefore it's ironic that the final piece of the puzzle wouldbe filled in by the very people we were trying to avoid paying! This is a"proof of concept" project and once funded yours will be the obfuscator webuy, I PROMISE!

Mike
.

Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bughunter | last post by:
I have written some php scripts that use basic HTTP authentication as described in the php manual. It works fine on my development server which runs php as an apache module. But, the production...
2
by: x-herbert | last post by:
Hi, I have a small test to "compile" al litle script as a WMI-Tester. The script include a wmi-wrapper and "insert" the Win32-modeles. here the code: my "WMI-Tester.py" ----- import wmi
1
by: Srinath Avadhanula | last post by:
Hello, I wanted to take a look at the qtext module which has been advertised on the PyQT overview page, but am unable to get it. How am I supposed to do this? I installed Python v2.3 from...
0
by: Brano Zarnovican | last post by:
Hi ! I need to import a module and create an instance of a class from that module (in C). import mod o = mod.klass() (mod.klass is a subclass of tuple)
2
by: Sascha Kerschhofer | last post by:
Hi, I am embeding my SVG Files in HTML in this way: <OBJECT DATA="foo.svg" WIDTH="300" HEIGHT="200" TYPE="image/svg+xml"> (using Acrobat SVG Viewer) Since I create the SVG dynamicaly the WIDTH...
3
by: Mike Smith | last post by:
I have an application which is similar in function to Setup.exe. The user downloads it, uses it once in most cases and throws it away. I am trying to coax .NET into making it one file and it is...
0
by: RCM | last post by:
I am really eager to quit the Microsoft world and get into LAMP. For the immediate future I can't do the Apache part, so I am at least trying to get PHP up and running under IIS to learn it. I...
6
by: usenet1 | last post by:
I'm a newbie with hopefully an easy question. I'm trying to write some "C" code that will run a python script that can in turn call some "C" functions. However I'm having a problem getting...
4
by: Con | last post by:
Hi, how does properly install the Python MySQL db module for Mac OS X? I was only able to locate the Win32 modules. Thanks in advance, -Conrad
1
by: tokcy | last post by:
Hi, I am embeding flash player in my site but i have some problem like... suppose i have 5 songs and i am playing one song but i want to play another while first one is not completed then both...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.