I'm creating a MSI setup with the Visual Studio Installer.
Its supposed to copy a config file that resides in the installer directory to the target directory.
I therefore created this VBS:
' Config file verschieben
dim fso, file
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile WScript.Arguments(0), WScript.Arguments(1), true ' Installerdir\config, Targetdir, überschreiben
set fso = nothing
which works when run from CommandLine.
However, when I add a customaction and set its CustomActionData to
I get an error message when running the setup.
What am I doing wrong? Is there an easier way to accomplish this?
I cannot add the config file to the setup project, since it's generated by a separate tool and added to the already compiled setup.