How do I...
How do I...
create a dialogue that will prompt for a folder location and use that location when setting up a ODBC DSN?
I've had a play around with the Enterprise edition but can't readiiy see how to get the path in the dialogue used when installing the ODBC DSN.
Sorting this out would help decided whether to recommend this installation product over a more expensive alternative which has a clear way of doing this...
I've had a play around with the Enterprise edition but can't readiiy see how to get the path in the dialogue used when installing the ODBC DSN.
Sorting this out would help decided whether to recommend this installation product over a more expensive alternative which has a clear way of doing this...
First you need to use either a pre-built dialog (destination), or a custom made dialog, to capture the path you desire. Lets say you store that path in the variable TARGETDIR (this is the default behavior of destination).
Next, just use the Create ODBC DSN command, and in the attributes field, enter a line that reads like DBQ=[TARGETDIR]\\databasefile.dat
Hope this helps...
Next, just use the Create ODBC DSN command, and in the attributes field, enter a line that reads like DBQ=[TARGETDIR]\\databasefile.dat
Hope this helps...
ah - I was trying to use my own-named variable rather than TARGETDIR and getting an error 2715 when testing...
how would that be possible? I.e. - have a text edit field which can be assigned to a variable?
---
edit: tried that and still get the 2715 error - debugging shows the right value going into the variable so not sure what's happening...
how would that be possible? I.e. - have a text edit field which can be assigned to a variable?
---
edit: tried that and still get the 2715 error - debugging shows the right value going into the variable so not sure what's happening...
I looked up your error in MSDN, and it says:
SDK Error messages can be cryptic at times. If you're having problems please send me your setup project (.mia and .mpr files) and I'll take a look at it for you.
[/quote]
I'm not sure if that helps you of course2715 The specified File key ('[2]') not found in the File table.
Something I've noticed is that I have a MSM module to install the db ODBC driver but can't see where that is being called in the script.
I have the VFPODBC.MSM module so that the appropiate Visual FoxPro driver can be installed. I am then setting up an ODBC DSN to use that driver. It seems that the driver isn't being installed which is causing the problem...
Do I need to do anything to actually install the MSM module or is that automatically processed? Or is the preferred method to install the ODBC driver? (Only using the VFPODBC.MSM as that ensures the correct versions of the files)
---
What files would you need to check out this?
I appreciate your help - this is the only thing holding back me recommending InstallAware as the install application to use...
I have the VFPODBC.MSM module so that the appropiate Visual FoxPro driver can be installed. I am then setting up an ODBC DSN to use that driver. It seems that the driver isn't being installed which is causing the problem...
Do I need to do anything to actually install the MSM module or is that automatically processed? Or is the preferred method to install the ODBC driver? (Only using the VFPODBC.MSM as that ensures the correct versions of the files)
---
What files would you need to check out this?
I appreciate your help - this is the only thing holding back me recommending InstallAware as the install application to use...
Having problems (again)...
I have a PTShellTree and a Edit box. The PTShellTree recieves no information and writes data to variable ODBCLoc. The Edit recieves no information and writes data variable ODBCLoc as well.
When the PTShellTree directory changes, the Edit doesn't show this (where as it does if it's set to receive information from Installation Folder).
How do I have so that the Tree and Edit store the data into ODBCLoc and the edit is updated when the Tree changes? I'm just trying to replicate a Install Destination type dialgoue but don't won't the Install Destination as that won't be the same location as the ODBCLoc...

I have a PTShellTree and a Edit box. The PTShellTree recieves no information and writes data to variable ODBCLoc. The Edit recieves no information and writes data variable ODBCLoc as well.
When the PTShellTree directory changes, the Edit doesn't show this (where as it does if it's set to receive information from Installation Folder).
How do I have so that the Tree and Edit store the data into ODBCLoc and the edit is updated when the Tree changes? I'm just trying to replicate a Install Destination type dialgoue but don't won't the Install Destination as that won't be the same location as the ODBCLoc...
This is exactly why the "Receives Information" field exists.
Before you call the ODBC dialog, backup the TARGETDIR variable, and set it to the value of your ODBCLOC variable. Update your ODBC dialog so it receives info and writes to TARGETDIR. After the ODBC dialog returns, update set the ODBCLOC variable to the TARGETDIR variable, and restore the value of the TARGETDIR variable.
Before you call the ODBC dialog, backup the TARGETDIR variable, and set it to the value of your ODBCLOC variable. Update your ODBC dialog so it receives info and writes to TARGETDIR. After the ODBC dialog returns, update set the ODBCLOC variable to the TARGETDIR variable, and restore the value of the TARGETDIR variable.

