login about faq

The linker options described in http://www.chilkatsoft.com/refdoc/csZipRef.html under the Methods, addEmbedded, seem to be specific to C++.

Important: In Visual Studio 2010, the linker has a property “Randomized Base Address” (Project Properties/Linker) that defaults to “YES”, but the default is “NO” in Visual Studio 2008. (The property is nonexistent in Visual Studio 2005 and earlier.) This enables ASLR ( Address Space Layout Randomization) in Vista and up, and prevents the proper code injection in the executable address space. To successfully embed a .zip as a resource within an EXE, this Visual Studio property must be set to "NO".

Does anyone know how to apply that to Visual C# in 2010. I can't seem to get the method to work for me properly.

Any suggestions would be greatly appreciated.


asked Mar 11 '13 at 11:44

riobel911's gravatar image


I found a few references on the internet stating c# has no need for a linker, which would explain why there is no linker option. Probably over simplifying it.

Anyhow, what I ended up having to do is write the receiving .exe with C++ to set the /DYNAMICBASE:NO option, and it worked as described. I left the project that is doing the embedding in C#, as ASLR has no impact on that process.


answered Mar 12 '13 at 00:34

riobel911's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 11 '13 at 11:44

Seen: 1,741 times

Last updated: Mar 12 '13 at 00:35

Related questions

powered by OSQA