Re: Inno User Input Form and ODBC DSN

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: DavidM (spam_at_spam.net)
Date: 01/04/05


Date: Tue, 4 Jan 2005 13:13:58 -0600

Here ya go ---

this is a sample on how to create a form to ask some data, IS ver 4.X, if
you use IS 5.X additional form system is changed.
http://www13.brinkster.com/vincenzog/isxart.asp?idart=52

then you canuse a [Registry] section to create the ODBC DSN, somentihng like
http://www13.brinkster.com/vincenzog/isxart.asp?idart=23

and to store user input data you have to use some {code:} functions.

ciao

-- 
Vincenzo Giordano - Inno Setup Extensions Knowledgebase
http://www13.brinkster.com/vincenzog
http://www.vincenzo.net/isxkb
"Jan Hyde" <StellaDrinker@REMOVE.ME.uboot.com> wrote in message 
news:fsjlt0dnt3jr0mk59pevbtdohf6748a10q@4ax.com...
> "DavidM" <spam@spam.net>'s wild thoughts were released on
> Tue, 4 Jan 2005 09:12:33 -0600 bearing the following fruit:
>
>>I've gotten a couple replies on Inno newsgroup for this.  Apparently, I 
>>can
>>write a script within Inno that would prompt for the information as part 
>>of
>>the setup.  This sounds like the best way to do it.  I got some sample 
>>code
>>now.
>
> Perhaps you'd post it here in case someone else shares your
> problem.
>
> J
>
>>Thanks
>>
>>
>>"Jan Hyde" <StellaDrinker@REMOVE.ME.uboot.com> wrote in message
>>news:27nkt0pqnsabpn0cn4bjgfkhbq6qnm94as@4ax.com...
>>> "DavidM" <spam@spam.net>'s wild thoughts were released on
>>> Sun, 2 Jan 2005 17:35:22 -0600 bearing the following fruit:
>>>
>>>>Hello Inno/VB gurus!  I'm an InnoSetup newbie and have a question.  I 
>>>>hope
>>>>someone can help.
>>>>
>>>>I have a third party application that we currently install to hundreds 
>>>>of
>>>>our customers.
>>>>
>>>>The application has its own setup program, however there is one step 
>>>>that
>>>>must manually be created on each computer that the application is
>>>>installed
>>>>on.  It is an ODBC System DSN.
>>>>
>>>>The settings are unique per customer -- each customer has its own SQL
>>>>Server
>>>>login, Password, and Database.
>>>>
>>>>Currently today, we manually create the ODBC and select the default
>>>>database
>>>>for the login.  When we launch the application, it will list all the
>>>>System
>>>>DSNs and the client will choose the DSN that related to his database.
>>>>
>>>>What I would like to do is use InnoSetup to run after we run the normal
>>>>application setup program.  The only thing I would like Inno to do is
>>>>display a form that prompts the user for Server Name, Username, 
>>>>Password,
>>>>and Database, and then have it generate the ODBC DSN entry within the
>>>>registry.
>>>>
>>>>I'm not sure how to go about creating the form or how to get the ODBC in
>>>>the
>>>>registry based on user input.
>>>>
>>>>Any help, direction, or guidance would be most appreciated.
>>>>
>>>
>>> Simply write a program to present a form, which will create
>>> the DSN. Then have inno launch this program at the end of
>>> the setup.
>>>
>>> I suggest creating a DSN manually then looking at the
>>> registry entries it creates to get an idea of what is
>>> involved.
>>>
>>>
>>>
>>> Jan Hyde (VB MVP)
>>>
>>> -- 
>>> Have you heard about the downhill skier who was an exhibitionist?
>>> He was arrested for in-descent exposure. (Richard Lederer)
>>>
>>> [Abolish the TV License - http://www.tvlicensing.biz/]
>>>
>>
>
>
> Jan Hyde (VB MVP)
>
> -- 
> If the trumpet and clarinet had a fight, the clarinet woodwind?
> (Perfect Tommy)
>
> [Abolish the TV License - http://www.tvlicensing.biz/]
> 


Relevant Pages

  • Re: Inno User Input Form and ODBC DSN
    ... Vincenzo Giordano - Inno Setup Extensions Knowledgebase ... It is an ODBC System DSN. ...
    (microsoft.public.vb.general.discussion)
  • Re: Inno User Input Form and ODBC DSN
    ... I've gotten a couple replies on Inno newsgroup for this. ... It is an ODBC System DSN. ... >>application setup program. ...
    (microsoft.public.vb.database)
  • Re: Inno User Input Form and ODBC DSN
    ... I've gotten a couple replies on Inno newsgroup for this. ... It is an ODBC System DSN. ... >>application setup program. ...
    (microsoft.public.vb.general.discussion)
  • Re: Slightly OT: Client / Server design with Access
    ... the DSN, their username and password - the app will remember the DSN, ... how would you handle a multi BE linked table setup? ... Ashish has on his ODBC relinking page? ... another, eg/ SQL Server to Oracle, MySQL to PostGres. ...
    (comp.databases.ms-access)
  • Re: Perl Code Connects to Database Across IP and Not Host Header
    ... I have the perl script setup in IIS as a virtual directory in Default ... access your ODBC DSN the way your http:///DOMAIN/page.pl ... DSN as a System DSN. ...
    (comp.lang.perl.misc)