Archive: outfile directory


outfile directory
When I create a new install.exe I want it to go into a new directory based on the version number. Is this possible?

OutFile ".\${APP_VERSION}\${INSTALLER_NAME}"

If the new directory does not exists I get an error stating "Can't open output file"

I can manually create the directory and then it works but I was hoping the script would be able to do it automatically.


you could look into using the compile-time commands !execute and/or !system to create the dir first?


That's how I do it:

!define BUILD_NO "49"
!define COMPILE_DATE "2009-01-21"

!define PATH_OUT "D:\dev\app_name\release\${COMPILE_DATE}.Build-${BUILD_NO}"
!system 'md "${PATH_OUT}"'

OutFile "${Path_Out}\Install.exe"

Thanks, that worked perfectly.