-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Committing the initial parts of the DotNetCompressor Project. Added the code. Added a basic readme.
- Loading branch information
1 parent
2bd4b9b
commit 3990141
Showing
5 changed files
with
728 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
| ||
ResourceManager rm = new ResourceManager("resource", Assembly.GetExecutingAssembly()); | ||
byte[] appBytes = (byte[])rm.GetObject("%appname%"); | ||
|
||
//Loading App | ||
int appSize = %appsize%; | ||
MemoryStream memStr = new MemoryStream(appBytes); | ||
var gStream = new %mode%; | ||
|
||
|
||
|
||
byte[] tAppBytes = new byte[appSize]; | ||
|
||
gStream.Read(tAppBytes, 0, appSize); | ||
|
||
gStream.Close(); | ||
|
||
//End Loading App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
| ||
//nothing passed on yet. | ||
|
||
try { | ||
Assembly.Load(tAppBytes).EntryPoint.Invoke(null, new object[] { args }); | ||
} catch(Exception ex) | ||
{ | ||
Assembly.Load(tAppBytes).EntryPoint.Invoke(null, new object[] {}); | ||
} | ||
|
||
tAppBytes = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[assembly: AssemblyTitle("")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("")] | ||
[assembly: AssemblyCopyright("Copyright ©")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
Oops, something went wrong.