在setup.rul 中把Dlg_SdCustomerInformation中的行删掉,换成 Dlg_SdCustomerInformationEx: szMsg = ""; szTitle = ""; szSerial = ""; nResult = SdCustomerInformationEx(szTitle, szName, szCompany, szSerial, nUser); if (nResult = BACK) goto Dlg_SdWelcome; if (szSerial != "12345") then MessageBox("Please enter a valid serial number.", WARNING); goto Dlg_SdCustomerInformationEx; endif; 还要在声明中加 string szSerial; 就行了
对于“还有怎样才能让他只生成一个setup.exe安装文件” 我是在release wizard 中 Media Type 中选Web ,在下一步 Web Type中有One Executable-all files are include in Setup.exe 等。 build 后就只生成一个setup.exe安装文件
Dlg_SdCustomerInformationEx:
szMsg = "";
szTitle = "";
szSerial = "";
nResult = SdCustomerInformationEx(szTitle, szName, szCompany, szSerial, nUser);
if (nResult = BACK) goto Dlg_SdWelcome;
if (szSerial != "12345") then
MessageBox("Please enter a valid serial number.", WARNING);
goto Dlg_SdCustomerInformationEx;
endif;
还要在声明中加 string szSerial;
就行了
我是在release wizard 中 Media Type 中选Web ,在下一步 Web Type中有One Executable-all files are include in Setup.exe 等。 build 后就只生成一个setup.exe安装文件