I'm trying to change ODBC settings and deploy a file automatically using a script. I have created a condition were the installation will go ahead if a file already exists. I can get the registry change to work by itself or the file copy by itself, but a can't get both to work together. Can anyone spot the error?
IF exist C:\omnis7\omnis7.exe (reg import \\xxxsql1\tynedale$\tynedale.reg) next
(COPY \\xxxsql1\tynedale$\serpath.tcs c:\omnis7)
else (Goto ;eof)
IF exist C:\omnis7\omnis7.exe (reg import \\xxxsql1\tynedale$\tynedale.reg) next
(COPY \\xxxsql1\tynedale$\serpath.tcs c:\omnis7)
else (Goto ;eof)