将文件从当前文件夹复制到Installscript项目安装.exe的文件夹

时间:2022-10-14 22:40:16

I am using InstallShield 2011 for creating installscript project,Now the problem is i want to copy some ini file from the folder to the path where my .exe will installed.

我正在使用InstallShield 2011创建installscript项目,现在问题是我想将一些ini文件从文件夹复制到我的.exe将安装的路径。

Here is the scenario--

这是场景 -

I will give our client to a Folder which contain 2 things

我将给我们的客户端一个包含2件事的文件夹

  • Setup.exe
  • SETUP.EXE
  • ini folder which contain .ini files.
  • 包含.ini文件的ini文件夹。

Now I want that when I execute the setup.exe all the .ini file will copy on the location where the setup is install.

现在我希望在执行setup.exe时,所有.ini文件都将复制到安装安装程序的位置。

I am using now--

我现在在用 -

CopyFile (PACKAGE_LOCATION ^ "ini\\*.ini" , szSDKDirectory );

But when I debug PACKAGE_LOCATION contain null string.

但是当我调试PACKAGE_LOCATION包含空字符串时。

2 个解决方案

#1


2  

If your media type is CD-ROM, you can use SRCDIR.

如果您的媒体类型是CD-ROM,则可以使用SRCDIR。

PACKAGE_LOCATION just for Network Image media type.

PACKAGE_LOCATION仅适用于网络图像媒体类型。

#2


0  

If your media type is EXE you could have also used SETUPEXEDIR

如果您的媒体类型是EXE,您也可以使用SETUPEXEDIR

#1


2  

If your media type is CD-ROM, you can use SRCDIR.

如果您的媒体类型是CD-ROM,则可以使用SRCDIR。

PACKAGE_LOCATION just for Network Image media type.

PACKAGE_LOCATION仅适用于网络图像媒体类型。

#2


0  

If your media type is EXE you could have also used SETUPEXEDIR

如果您的媒体类型是EXE,您也可以使用SETUPEXEDIR