'Sharpcompress write in Program Files folder
I'm trying to write some files in my folder which's inside Program Files folder... I'm getting error "Access denied" every time I try to write them... I tried to open the .exe (which makes the extraction) in Administrator mode and change folder rights to "Everyone"/"All Rights" and I still got problem with permissions.
Code:
Using archive As IArchive = ArchiveFactory.Open(PastaDownload & "\" & NomeRAR)
For Each entry In archive.Entries
If Not entry.IsDirectory Then
entry.WriteToFile(PastaSistema, New ExtractionOptions With {.ExtractFullPath = True, .Overwrite = True})
End If
Next
End Using
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
