我的應用程序需要用戶選擇安裝項目,不選顯示安裝類型選擇項目。
我用的是installshield 2008。
可以在Behavior and Logic中->InstallScript->在setup.Rul中右側的下拉框中OnFirstUIBefore
在下面的出現的OnFirstUIBefore函數中修改
Dlg_SetupType:
szTitle = "";
szMsg = "";
//nResult = SdSetupTypeEx(szTitle, szMsg, "", nSetupType, 0);
//nResult = SetupType(szTitle, szMsg, "", nSetupType, 0);
//if (nResult = BACK) then
// goto Dlg_SdCustomerInformation;
//else
// nSetupType = nResult;
// if (nSetupType != CUSTOM) then
// nvSize = 0;
// FeatureCompareSizeRequired(MEDIA, INSTALLDIR, nvSize);
// if (nvSize != 0) then
// MessageBox(szSdStr_NotEnoughSpace, WARNING);
// goto Dlg_SetupType;
// endif;
// bCustom = FALSE;
// goto Dlg_SQL;
// else
bCustom = TRUE; //原來的只保留此行,其他的註釋掉。在下面加入一行
nSetupType = CUSTOM; //新加入的
// endif;
//endif;
沒有選擇安裝類型了。