接上文。
2)修改界面中安裝目錄的選擇。
(1)選擇before installing
(2)選擇Select Install Folder ,選擇Edit。
3)修改界面文字,1修改爲請選擇CAD的安裝目錄,2爲CAD的安裝目錄爲:
4)寫腳本,保證是CAD的目錄(呃呃呃呃...),選擇1Actions 然後選擇OnNext 。
輸入腳本
appfolder1 = strInstallFolderPath;
str = String.Right(appfolder1,1);
if(str=="\\") then
appfolder2 = String.Concat(appfolder1, "acad.exe");
else
appfolder2 = String.Concat(appfolder1, "\\acad.exe");
end
result = File.DoesExist(appfolder2);
if(result == false) then
Error = Dialog.Message("錯誤","請選擇正確的CAD安裝路徑");
else
................
end
5.設置卸載腳本(待續)
6.build。