Copy command failed on {}

Hey,

Trying to copy file on this (special) {4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5} folder but its getting failed…

copy “__Download\uninst_setup.iss” “C:\Program Files\InstallShield Installation Information{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}”

do we need another command for copy for this…

Not 100% positive but I believe you have escape the { with another { (and})

copy “__Download\uninst_setup.iss” “C:\Program Files\InstallShield Installation Information{{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}}”

Directory location

Action

tried with sing { and {{ curly but no luck

copy “__Download\uninst_setup.iss” “C:\Program Files\InstallShield Installation Information{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}”

copy “__Download\uninst_setup.iss” “C:\Program Files\InstallShield Installation Information{{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}}”

Very close!

More details at Tip: Escaping curly brackets for substitutions in ActionScript

You need two open-curlies {{ at the beginning to avoid starting a Relevance Substitution.

You only need one close-curlie } at the end, because you are not inside a relevance substitution.

If this were inside a relevance substitution and needed to include a literal “}” as part of a string, you would have needed to escape that as “}}” to avoid ending the substitution early.

Try
copy "__Download\uninst_setup.iss" "C:\Program Files\InstallShield Installation Information{{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}"

I will also say that what you’re trying looks unusual…not sure why you’d need to manually copy files into InstallShield’s cache area, but be aware the copy will also fail if the target file already exists, so you may need to use the ‘delete’ command first before trying the ‘copy’ command. ‘copy’ will not automatically overwrite an existing file.

1 Like

Apology, above given path not correct

copy “__Download\uninst_setup.iss” “C:\Program Files\InstallShield Installation Information{{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}”

need to copy file “uninst_setup.iss” under this {4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5} directory that’s comes under “C:\Program Files\InstallShield Installation Information” folder

tried below command which is getting failed…

copy “__Download\uninst_setup.iss” "C:\Program Files\InstallShield Installation Information{{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}"
copy “__Download\uninst_setup.iss” “C:\Program Files\InstallShield Installation Information{{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}}”

not sure while posting / missing after C:\Program Files\InstallShield Installation Information folder

You need to give the full pathname (including filename) on the copy command.

Also, possibly an artefact of the forum, there seems to have been a backslash dropped from your original path (hint, use the </> button to format lines of script)…

copy "__Download\uninst_setup.iss" "C:\Program Files\InstallShield Installation Information\{{4D9CA1B8-5FF5-47A7-8BDF-C37D1F9F55A5}\uninst_setup.iss"

1 Like