Archive: Two output files


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?


You can't mix run time and compile time instructions i.e. CreateDirectory and CopyFiles are both run time instructions. Use a batch file and execute it with !system.

Stu


I can't simple write a batch file because I do not have access to all information which are inside my installation script (app name, version, etc) from batch file. I don't want to duplicate all those information in separate files. This will become hard to manage and update.

Is there a library you I could use to create directory and copy file at compile time?


http://www.rgagnon.com/gp/gp-0009.html

Stu