How to add a directory to SupportFiles in InstallShield

Is it possible to add a directory (with subdirectories) to the SupportFiles section of installshield. I have dynamically created content (a list of file changes constantly) that I use to support my installation.

Is there any other way to add the entire directory dynamically to the installation package. I need files from this directory only during the installation process. At the end of the installation, I want IS to automatically delete these files?

+3
source share
2 answers

The ISSetupFile table (which controls the support file template) only supports extracting files to a single directory. There is no way in the user interface to say that it is dynamic, although you can have a build automation step that reflects the contents of the directory and connects it to the table using the automation interface. However, this still could not do subdirectories.

What you probably want to do is create a self-extracting ZIP file of the files you need as part of your assembly and add EXE to support the files. Then write the special actions that the EXE calls to extract the payload to support files and another CA to clear it. Take a look at the user actions of ISSetupFilesExtract and ISSetupFilesCleanup to find the best way to do this.

+5

: @BuvinJ , " " "Disk1". ( ), . SUPPORTDIR\Disk1

SUPPORTDIR - , . : C:\Users\<your user name>\AppData\Local\Temp\2\{F6B9B2D6-2A5A-4146-9297-E80A199CB0CB}.

// / , , zip .

+1

Source: https://habr.com/ru/post/1767882/


All Articles