Customize setup!!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gianmaria

    #1

    Customize setup!!

    Hi,
    i'm workin on a deployment project... i added two custom screen to make some
    tasks.

    1) I need that user insert a serial number for my setup.. next i check the
    validity of this serial by a function that returns true if the serial is
    valid.. or false if not. Next i want my user interface to stop installation
    while the seial is not a valid one. Now, i know how to pass the string of
    the serial to my funtion but i dont know how to stop setup if it's not...
    something like.. "not valid serial.. try again".

    2) I need tha user insert the path for a db, so i have a screen with a text
    box where the user can write the db path... how can i do it using a
    browse... ??? so i later write this path to a ini file.


    Regards,
    Gianmaria


  • David Guyer [MS]

    #2
    RE: Customize setup!!

    For #1, you should throw a new InstallerExcept ion (or something similar to
    that) to fail and rollback the installation.
    For #2, there's no easy way to do that.


    ---
    David Guyer - VBQA Deployment Testing
    This posting is provided "AS IS" with no warranties, and confers no rights.
    --------------------[color=blue]
    >From: "Gianmaria" <noSpamGianmari a@telenet.it>
    >Subject: Customize setup!!
    >Date: Mon, 3 Nov 2003 12:39:00 +0100
    >Lines: 20
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    >Message-ID: <O0Nnm5foDHA.36 0@TK2MSFTNGP12. phx.gbl>
    >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
    >NNTP-Posting-Host: host84-14.pool80117.in terbusiness.it 80.117.14.84
    >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
    >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1962 15
    >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
    >
    >Hi,
    >i'm workin on a deployment project... i added two custom screen to make[/color]
    some[color=blue]
    >tasks.
    >
    >1) I need that user insert a serial number for my setup.. next i check the
    >validity of this serial by a function that returns true if the serial is
    >valid.. or false if not. Next i want my user interface to stop installation
    >while the seial is not a valid one. Now, i know how to pass the string of
    >the serial to my funtion but i dont know how to stop setup if it's not...
    >something like.. "not valid serial.. try again".
    >
    >2) I need tha user insert the path for a db, so i have a screen with a text
    >box where the user can write the db path... how can i do it using a
    >browse... ??? so i later write this path to a ini file.
    >
    >
    >Regards,
    >Gianmaria
    >
    >
    >[/color]

    Comment

    Working...