How to get Inno Setup to unzip a file it installed (all as part of the one installation process)

前端 未结 4 2082
余生分开走
余生分开走 2020-11-29 06:37

To save bandwidth/space as well as prevent accidental meddling, the installation files for a database product (call it Ajax), have been zipped up (call that file \"AJAX_Inst

4条回答
  •  悲哀的现实
    2020-11-29 07:26

    I answered a very similar question and some of the details apply.

    I would question why you need a ZIP file of the contents? I personally would place the uncompressed files into the setup. I would then have two [category] entries one for the application and one for the data. Default both the be checked.

    This would allow the users to install a fresh set of the data if needed at a later date.

    If you really want a ZIP file and want to keep it easy you could, ship both the zip files and the uncompressed files in the same setup.

    Update:

    By default files that get placed in your setup.exe are compressed.

    You can also have the files extracted to a temporary location so you can run your installation application, then have them deleted.

    [Files]
    Source: "Install1.SQL"; DestDir: "{tmp}"; Flags:deleteafterinstall;
    Source: "Install2.SQL"; DestDir: "{tmp}"; Flags:deleteafterinstall;
    

提交回复
热议问题