target folder & odbc datasource

Got a problem you cannot solve? Try here.
Post Reply
iso96
Posts: 5
Joined: Tue Jul 26, 2005 4:59 am

target folder & odbc datasource

Post by iso96 »

Hello,

Hope somebody can help me with this.

On installation i would like the user to be able to browse to a specific location instead of C:\\Program Files. This new location needs then to be set within the odbc datasource attributes

DBQ=C:\\Program Files\\xxx\\yyydb.mdb
FIL=MS Access
UID=

thankyou for looking

regards

lance
iso96
Posts: 5
Joined: Tue Jul 26, 2005 4:59 am

Post by iso96 »

can nobody help on this!

is it not possible in installware? i would have thought this was a common problem!

thanks

lance
Roostar2004
Posts: 155
Joined: Mon Nov 12, 2007 11:59 am

Try this.

Post by Roostar2004 »

Have you tried using the variable $TARGETDIR$ this si the variable that get populated when the user chose which directory they would like to install it. So in the case of c:\\Program Files\\Application $TARGETDIR$ would = c:\\Program Files\\Application. This is what my company uses for our registry keys so I would imagine it would work the same with ODBC.I hope this helps.
iso96
Posts: 5
Joined: Tue Jul 26, 2005 4:59 am

Post by iso96 »

thanks roostar

thats exactly what i was after the only difference is within the odbc you use sq brackets instead of $$

thanks again
Roostar2004
Posts: 155
Joined: Mon Nov 12, 2007 11:59 am

Post by Roostar2004 »

No problem glad I could help.
Post Reply