NSIS 檔案關聯方法

2021-06-02 22:18:44 字數 710 閱讀 1597

section ".txt" note

detailprint "關聯 txt 檔案..."

sectionin 1

writeregstr hkcr ".txt" "" "note.file"

writeregstr hkcr "note.file" "" "文字檔案 (.txt)"

writeregstr hkcr "note.file\defaulticon" "" "$instdir\note.exe,0"

writeregstr hkcr "note.file\shell" "" ""

writeregstr hkcr "note.file\shell\open" "" ""

writeregstr hkcr "note.file\shell\open\command" "" '"$instdir\note.exe" "%1"'

sectionend

選單預設顯示為「開啟(&o)」;如需要更改選單內容,還需要將以下內容

writeregstr hkcr "note.file\shell" "" ""

writeregstr hkcr "note.file\shell\open" "" ""

改為:writeregstr hkcr "note.file\shell" "" open

writeregstr hkcr "note.file\shell\open" "" "編輯(&e)"

一種另類檔案關聯方法的研究

文 圖 彭毅 檔案關聯方法較早由 冰河 程式實現。冰河 為了達到自我保護目的,進行了txt和exe檔案關聯。在普通程式開啟字尾名為.txt和.exe檔案時,首先開啟 冰河 程式,執行完既定功能後,再把相關引數 如要開啟的文字檔案名 傳遞給.txt預設的開啟程式 如notepad.exe 具體實現就是...

elasticsearch關聯方式簡介

一 應用層連線 多索引,但是沒有資料顯示多個索引之間應該怎樣關聯,只能粗暴的當成乙個文件 params index type body json 二 非規範化資料 冗餘 將其他文件的資料統計出來,再根據關聯字段,將統計結果更新到本資料 問題 資料量大時,的的foreach一條一條更新,速度慢 三 巢...

SQL Server用錯關聯方式

sql server中不少怪異問題都是由用錯關聯方式引起的,從2000到2005有所改善,但2005的查詢優化引擎還是存在 犯傻 的時候 1.問題1 現象 乙個儲存過程,通過乙個服務程式呼叫,長時間不能結束,資料庫伺服器顯示該儲存過程執行到某個語句時一直等待在那,資料庫伺服器記憶體充足,cpu消耗幾...