怎么在安装过程中修改运行程序需要的配置文件

如何在安装过程中修改运行程序需要的配置文件?
我有一个程序,需要设定服务器连接信息,这些信息保存在配置文件中,我希望在运行安装程序时可以对这些配置进行设定,而不是安装完成后去修改这个配置文件,使用何种安装包制作软件可以实现?实现起来是否麻烦?

------解决方案--------------------
installshield看看
------解决方案--------------------
用installshield打包的时候,在脚本里操作
使用函数: WriteProfString ("C:\\Test.ini", "Windows", "KeyboardDelay", "100");

//
//写入ini文件并copy到目标目录
//
function Writeini()
string svText,iniFile;
begin
 
iniFile =SUPPORTDIR+"\\dbconn.ini";

 if (WriteProfString(iniFile,"dbconnection","server", "locahost") <0) then 
MessageBox("dbconn.inc错误,系统将无法运行!", SEVERE);
endif;
  
if (WriteProfString(iniFile,"dbconnection","ip", "192.168.0.1") <0) then 
MessageBox("dbconn.inc错误,系统将无法运行!", SEVERE);
endif;
  
if (WriteProfString(iniFile,"dbconnection","db_user", "sa") <0) then 
MessageBox("dbconn.inc错误,系统将无法运行!", SEVERE);
endif;

 if (WriteProfString(iniFile,"dbconnection","db_pass", "sa") <0) then 
MessageBox("dbconn.inc错误,系统将无法运行!", SEVERE);
endif;

CopyFile(SUPPORTDIR+"\\dbconn.ini",INSTALLDIR+"\\dbconn.ini");

end;


------解决方案--------------------
楼上的办法不错
------解决方案--------------------
恩,installshield是专业安装领域的老大,不错。

楼主是否在安装过程中需要运行对系统平台进行查询?然后进行自动设定?

关注

------解决方案--------------------
可以把配置好的再封包成安装程序呢?
------解决方案--------------------
一种办法是自己搞安装程序,
在制作的安装程序中增加配置过程。
------解决方案--------------------
SetupFactory7.0
在脚本里写点东西就行了。
我用过的,挺好用的。