简体   繁体   English

使用Innosetup安装到多个目录

[英]Using Innosetup to install to multiple dirs

I'm writing an InnoSetup script to deploy software to a user's machine (default c:/programfiles) but I also want the user to be able to navigate to, say, a portable flash drive as well (like on a second page) and then have the installer load files to the HDD (programfiles) and then have it load files onto their selected flash drive - is this possible? 我正在编写一个InnoSetup脚本,以将软件部署到用户的计算机上(默认为c:/ programfiles),但我也希望用户也能够导航至便携式闪存驱动器(如第二页),并且然后让安装程序将文件加载到HDD(程序文件),然后将文件加载到其选定的闪存驱动器上-这可能吗? How would I go about executing it? 我将如何执行它?

thanks :) 谢谢 :)

I am not quite sure what you are trying to do but it sounds possible to me. 我不太确定您要做什么,但是对我来说这听起来可能。 As you stated you could do this with a second page where you allow the user to select a drive or a directory where some files are. 如您所说,可以在第二页上执行此操作,在该页上,用户可以选择一个驱动器或某些文件所在的目录。 You can then iterate over all files and install them into the selected program directory you chose in the setup before. 然后,您可以遍历所有文件并将它们安装到您之前在设置中选择的选定程序目录中。

For more information it would be good if you could provide more information but so far this is the best answer i can give you for the provided information. 有关更多信息,如果您可以提供更多信息,那将是很好,但是到目前为止,这是我可以为您提供的信息的最佳答案。

Maybe this helps you along when listing up all files in a directory: Inno Setup: list all file names in an directory 列出目录中的所有文件时,这可能会帮助您: Inno Setup:列出目录中的所有文件名

And with this you can copy them: Inno setup filecopy 并且,您可以复制它们: Inno setup filecopy

And if you want a FolderBrowser use this: Pascal Scripting: BrowseForFolder 如果您想使用FolderBrowser,请使用以下命令: Pascal脚本:BrowseForFolder

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM