2016年1月19日

解決無法確認發行者警告-使用Streams

我們在部署EXE程式到不同機器時,有時會出現無法確認發行者警告,使用者每次執行都會跳提示視窗,抱怨連連。

nds2
以下是解決方式:
1. 首先下載Streams,解壓縮會有streams執行黨
Streams下載位置
2. 執行以下指令,刪除Stream
streams -s –d  [e:程式目錄]
3. 如此就會把程式目錄下的檔案,都去除Stream

Streams指令
指令: streams [-s] [-d] <檔案或目錄>
-s
包含子目路的檔案.
-d
刪除streams.
Streams 用萬用字符 e.g. 'streams *.txt'

進階研究
加入NTFS 附帶資料
'echo hello > test:stream

參考資訊
Write NTFS Alternatestream data
Detecting and Changing a File’s Internet Zone in .NET- Alternate Data Streams
Manipulating NTFS alternate data streams in C# with the CodeFluent Runtime Client
Accessing alternative data-streams of files on an NTFS volume
NTFS Alternate Data Streams - .NET

沒有留言:

張貼留言