我想用vc自制安装程序
如何把打包好的cab文件(要拷贝的文件)进行解压(可以使用一些解压工具,但是如何获得安装进度,来移动进度条)或者如何把整批安装文件制作成一个install.exe

解决方案 »

  1.   

    参考MSDN中例子..\Samples\VC98\sdk\sysmgmt\setup\infinst
      

  2.   

    Setup Applications
    Typically, before you create a setup application, you create an INF file. An INF file is a text file that contains information used by your setup application during an installation. For more information, see INF Files.After creating an INF file, you write the source code for your setup application. You can use the setup functions in your setup application to access the information in the INF file and perform installation operations. For more information about using the setup functions in an application, see Creating Setup Applications.
    Steps of an Installation Program
    The following list outlines one way to use setup functions to create a setup application. You can use this example as a starting point, or develop your own installation algorithm. Each step is described in detail in following topics.Initialization Open the INF and, if appropriate, append other INF files. 
    Extract file information from the INF file. 
    Gather setup information from the user. 
    Create a queue. 
    Install files Commit the queue, specifying a callback routine. 
    Update registry information. 
    Clean up Close the file queue and INF. 
    Release any other system resources and end the program. 
      

  3.   

    直接使用安装程序制作工具,EasySetup、Installshield等等。