我的应用程序需要用户选择安装项目,不选显示安装类型选择项目。
我用的是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;
没有选择安装类型了。
取消安装类型选择
通过修改InstallShield 2008的OnFirstUIBefore函数,可以实现应用程序安装时取消让用户选择安装类型的功能,直接设定为自定义安装。
675

被折叠的 条评论
为什么被折叠?



