我想让wise在卸载的时候保存下文件夹database和其中的文件,请教一下应该如何才能实现呢?

解决方案 »

  1.   

    我认为wise处理过程为:
    1.uninstall的脚本主要是一句>>>
    item: Install File
      Source=%_WISE_%\UNWISE32.EXE
      Destination=%UNINSTALL_PATH%
      Flags=0000000000000010
    end
    2.而Uninstall (Unwise.EXE, Unwise32.EXE)帮助说明
       When you use command line options for the uninstall program, you must send it the path to the log file as a parameter. It must be the log file that is in the same folder as unwise.exe. If the path to the log file contains spaces, it must be surrounded by quotation s.   也就是Unistall时需要Install.Log.而Install.Log记录了你安装的信息
    因此要实现你的要求,有二种方法:1.如果你的DataBase不是由wise自动创建就不会被删除,按照这个思路作setup或程序
    2.如果wise安装的你要从Install.Log中清除与DataBase有关的信息.
      

  2.   

    stevenpeng(第九种兵器)回答得已经非常全面了,如果觉得还不够理想我们可以进行下面的操作:
    在进行操作之前,我们要知道,Uinstall文件生成的过程。
    1、打开install.log文件开始写操作
    2、通过include action进入Uninstall Script界面操作,包括声称UNWISE>EXE程序。
    3、继续写Install.log文件,记录安装信息。所以如果想保留某一文件或文件夹不被删除
    1、调用Open/Close INSTALL.LOG操作,强行关闭写INSTALL.LOG操作
    2、手动安装你不想被删除的文件夹
    3、调用Open/Close INSTALL.LOG操作,打开写INSTALL.LOG操作