Selecting a second destination folder

Got a problem you cannot solve? Try here.
marcra
Posts: 5
Joined: Tue Feb 06, 2007 12:04 pm
Location: UK
Contact:

Selecting a second destination folder

Postby marcra » Thu Jul 05, 2007 12:14 pm

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)

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Jul 05, 2007 12:30 pm

You can actually merge both fields into the same dialog now. Please see the new feature description/how to's for the InstallAware 6.5 release on this forum. There was a step by step guide there on how to do that.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 121 guests