InstallShield2015制作安裝包----------安裝過程中修改文件內容


 1         //修改安裝目錄下autostart.vbs里的路徑
 2         //打開文件
 3         OpenFileMode(FILE_MODE_NORMAL);
 4         strPath=INSTALLDIR+"centerAutoRestart";
 5         strName="autostart.vbs";
 6         OpenFile(FHandleA,strPath,strName);                
 7         //寫入行
 8         strPath=strPath+"\\"+strName;
 9         insertStr="temp=\""+INSTALLDIR+"centerAutoRestart\\autoStart.bat\"";
10         FileInsertLine(strPath, insertStr, 1, AFTER);                
11         //關閉文件    
12         CloseFile(FHandleA);
13                 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM