I am trying to build an install at the moment for our application that uses an Oracle backend. I have the installer working fine for the application and I am now trying to add some extra bits to help with the set-up. I need to browse to the directory that contains the Oracle TNSNames file. I am using the destination dialog again, and I am saving the TARGETDIR into a temp variable then setting TARGETDIR to the default directory to browse to. The problem I get is when you then click the browse button and select a different directory this gets appended into the directory name already there, i.e. I set c:\\bar and then browse to the directory c:\\foo the variable gets set to c:\\foo\\bar. If I comment out the two 'set variable' commands the dialog works correctly.
Can anyone help me with a suggestion of how to do a second directory browse to work? I am sure I am missing something simple.
here is the code
Code: Select all
Display Dialog: destination, wait for dialog to return (modal)
Set Variable TMPTEMPDIR to $TARGETDIR$
Set Variable TARGETDIR to c:\\bar
Display Dialog: destination, wait for dialog to return (modal)