示例#1
0
文件: Form1.cs 项目: xuanximoming/PIC
 private void CheckIniExist()
 {
     //ini.IniWriteValue("File", "File", "file1");
     if (!File.Exists(UpdateIniPath))
     {
         FileStream fs = new FileStream(UpdateIniPath, FileMode.OpenOrCreate, FileAccess.Write);
         fs.Close();
         // File.Create(UpdateIniPath);
     }
     ini = new ClsIni(UpdateIniPath);
     if (ini.IniReadValue("StartProgram", StartExe) == "" || ini.IniReadValue("StartProgram", StartExe) == null)
     {
         ini.IniWriteValue("Start", StartExe, "SIS.exe");
     }
     if (ini.IniReadValue("UpdateProgram", "ProgramName") == "" || ini.IniReadValue("UpdateProgram", "ProgramName") == null)
     {
         ini.IniWriteValue("UpdateProgram", "ProgramName", "SIS工作站");
     }
 }