c# - DotNetZip uncompressed exe files not opening -


i'v been using dotnetzip library uncompressing files zip file, compressed using same library. zip file contains exe files, once decompressed, of exe file decompressed not opening anymore. problem not happening if decompress file manually winrar.

the code i'm using one...

if (!system.io.file.exists("applicationsample.zip")) { messagebox.show("no data found", "warning"); return false; }             var archive = zipfile.open(datfilepath, ziparchivemode.read);             var installpath = environment.getfolderpath(environment.specialfolder.programfiles) + @"/applicationsample";             if (directory.exists(installpath))             directory.delete(installpath, true);             directory.createdirectory(installpath);             archive.extracttodirectory(installpath);             var archiveed = new ionic.zip.zipfile("applicationsample.zip");             archiveed.useunicodeasnecessary = true;             archiveed.ziperror += applicationsample_ziperror;             archiveed.extractall(installpath);             archiveed.dispose();             shelllink link = new shelllink();             link.workingdirectory = installpath;             link.target = installpath + "/applicationsample.exe";             link.iconpath = installpath + "/applicationsample.ico";             link.save(environment.getfolderpath(environment.specialfolder.desktop) + "/applicationsample.lnk"); 

the exe file i'm trying open wpf application works correctly if same operation manually.

i don't know what's happening here , know what's problem.

thanks!!


Comments