frogman_94
22nd January 2009 00:50 UTC
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.
Animaether
22nd January 2009 01:04 UTC
you could look into using the compile-time commands !execute and/or !system to create the dir first?
LoRd_MuldeR
22nd January 2009 02:14 UTC
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"
frogman_94
22nd January 2009 17:10 UTC
Thanks, that worked perfectly.