I have an installer that installs our software as well as runs an installer from another 3rd party. After the 3rd party installation finishes I need to copy some dll's into their Program Files folder. The 3rd party installer sets some environment variables which tells me the directory their software installed in. However my "Copy File(s)" is not working. Here's my script code:


! Copy OpenSSL libraries to Synergy folders
If %WOW64STATUS% Equals "1" Then
! 64-Bit Synergy
Copy File(s) from "%TMPDIR%\1033c_x64\libeay32.dll" to "%%SYNERGYDE64%%\dbl\bin"
Copy File(s) from "%TMPDIR%\1033c_x64\ssleay32.dll" to "%%SYNERGYDE64%%\dbl\bin"

! 32-Bit Synergy
Copy File(s) from "%TMPDIR%\1033c_x86\libeay32.dll" to "%%SYNERGYDE32%%\dbl\bin"
Copy File(s) from "%TMPDIR%\1033c_x86\ssleay32.dll" to "%%SYNERGYDE32%%\dbl\bin"
Else
! 32-Bit Synergy
Copy File(s) from "%TMPDIR%\1033c_x86\libeay32.dll" to "%%SYNERGYDE32%%\dbl\bin"
Copy File(s) from "%TMPDIR%\1033c_x86\ssleay32.dll" to "%%SYNERGYDE32%%\dbl\bin"
End

I have also tried Set Variable X to Function:Get System Info(Expand Environment Variable) and used that variable on the copy. That didn't work either.


What do I have wrong?