timbojones
09-25-2006, 01:31 PM
We currently have two installer project files corresponding to two versions of our product. I was trying to combine these into a single installer project file that chooses its source and output directories based on ini file settings. But I find that the output still gets written to the default location.
i.e., my script contains
#const $INSTALL_TYPE$ = Get Value from INI file: [SB5_PROJECT]\setup.ini
#set compiler variable [OUTPUTDIR] = "[SB5_PROJECT]\$INSTALL_TYPE$\Output"
#msgbox "OUTPUTDIR = [OUTPUTDIR]"
The message box displays the appropriate value, but my output appears in the directory defined in Project Properties. I cannot set the output directory directly in Project Properties because $INSTALL_TYPE$ is undefined when SB tries to clean the output directory.
i.e., my script contains
#const $INSTALL_TYPE$ = Get Value from INI file: [SB5_PROJECT]\setup.ini
#set compiler variable [OUTPUTDIR] = "[SB5_PROJECT]\$INSTALL_TYPE$\Output"
#msgbox "OUTPUTDIR = [OUTPUTDIR]"
The message box displays the appropriate value, but my output appears in the directory defined in Project Properties. I cannot set the output directory directly in Project Properties because $INSTALL_TYPE$ is undefined when SB tries to clean the output directory.