看人家用使用InstallShield製作ASP安裝程式
來源:互聯網
上載者:User
我現在在做ASP的安裝程式,這樣可以方便使用者的使用。我使用的InstallShield版本是InstallShield Professional—Standard Edition6.3。
我沒有用過這個東東,問題如下:
問題一
通過Project Wizard-generated script 做好了COPY打包工作。可是6.3版本的好象不支援主體Program...Endprogram,因為我看COPY打包的Script指令碼就是通過兩個Fuction實現的。所以我的指令碼加不進去,除非在這兩個Fuction中調用!請問是不是6.3版本不能使用Program...Endprogram,如果可以使用的話,應該如何去用?
問題二
想在COPY完ASP程式後直接實現IIS的設定,也就是通過安裝程式就可以完成,不需要手動設定,請問怎樣去實現呢?
以下就是我用Project Wizard-generated script 做好的兩個Fuction,他們不用調用也不用聲明定義就自動執行,真是搞不懂呀!我的Script該加在什麼地方呢?
// Include header files
#include "ifx.h"
function OnFirstUIBefore()
number nResult,nSetupType;
string szTitle, szMsg;
string szLicenseFile, szQuestion;
string szName, szCompany, szSerial;
string szTargetPath;
string szDir;
string szComponents, szTargetdir;
number nLevel;
LIST listStartCopy;
number nvSize;
begin
nSetupType = TYPICAL;
TARGETDIR = "C:"^"inetpub" ^"wwwroot" ^@PRODUCT_NAME;
szDir = TARGETDIR;
szName = "";
szCompany = "";