Dany Maor
Dany Maor

Reputation: 2411

create self extract file from folder on server ASP.NET C#

i need it to be self extract file and after the user downloads the file to his computer and run the EXE file the installation of the software starts automatically. as can be done with WINZIP and WINRAR.

I tried to use:

http://sevenzipsharp.codeplex.com/

and could not succeed.

I know i can do it with "dotnetzip" but from what I understand it need .net 2.0 for the self extract EXE file and i do not want to be dependent on .NET framwork.

Upvotes: -1

Views: 580

Answers (1)

SmithMart
SmithMart

Reputation: 2811

You can use a batch command to create the file and check the output for success or failure. Just use a compiled standard version of 7zip and then run the command:

"7z.exe" a -t7z -m0=LZMA -mmt=on -mx5 -sfx7z.sfx -wc:\ParetnDirectoryOfFolder D:\MyNewSelfExtracting.exe D:\Users\Martyn\FolderToBeZipped

Once you have confirmation, you can store the details in a database for retrieval later, or how ever you want the interface to go.

Sorry it's not a coded answer, but from the looks of it, you are very close to completing!

Upvotes: 1

Related Questions