1.理解任務(wù)
第一步:創(chuàng)建一個(gè)類,用于保存文件的屬性,包括:
filepath,filename,fileversion
問(wèn)題:文件有哪些屬性,各種屬性應(yīng)該定義成哪種數(shù)據(jù)類型
第二步:操作注冊(cè)表,找到路徑
問(wèn)題:數(shù)據(jù)表如何操作,找哪個(gè)鍵值可以獲取到路徑
第三步:從路徑中找文件
路徑/文件/IO操作參考:http://blog.sina.com.cn/s/blog_6ddaacb30100rcq8.html ;
第四步:逐個(gè)獲取文件的屬性
最最最最最最最最最最最最最任務(wù)最最最最最最最最最最最最最最
There are a few steps:
1. create an Installedfile class - just hold some file properties
2. find the SQL Install path from the registry
3. Use System.IO to get the list of keyfiles in the directories
4. get the file properties and add to the Installedfile object
5. add each Installedfile to the List
最最最最最最最最最最最最最最基本概念--方法-屬性,委托,事件等最最最最最最最最最最
http://zhidao.baidu.com/question/50181971.html