Two output files
I was trying to generate two output files but is seems to be impossible. I've tried to use two OutFile commands. Next one OutFile with CopyFiles. Any of those work.
CreateDirectory "Deploy\${PRODUCT_DEPLOY_NAME}\${PRODUCT_MAJOR_VER}.${PRODUCT_MINOR_VER}.${PRODUCT_REVISION_VER}.${PRODUCT_BUILD_VER}\"
OutFile "Deploy\${PRODUCT_DEPLOY_NAME}\${PRODUCT_MAJOR_VER}.${PRODUCT_MINOR_VER}.${PRODUCT_REVISION_VER}.${PRODUCT_BUILD_VER}\${PRODUCT_SETUP_FILE_NAME}"
CreateDirectory "Deploy\${PRODUCT_DEPLOY_NAME}\Current\"
CopyFiles "Deploy\${PRODUCT_DEPLOY_NAME}\${PRODUCT_MAJOR_VER}.${PRODUCT_MINOR_VER}.${PRODUCT_REVISION_VER}.${PRODUCT_BUILD_VER}\${PRODUCT_SETUP_FILE_NAME}" "Deploy\${PRODUCT_DEPLOY_NAME}\Current\${PRODUCT_CURRENT_SETUP_FILE_NAME}"
Second problem I see is that OutFile doesn't create directories when writing setup file and I can't use CreateDirectory because it's used outside a Function or Section.
Can any one light this subject? Any ideas how solve it?