Results 1 to 8 of 8

Thread: [RESOLVED] Display a message using Inno Setup

  1. #1

    Thread Starter
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Resolved [RESOLVED] Display a message using Inno Setup

    I'm building an installation script using Inno Setup and need some help on displaying a text file to the user. I have two files that will display based on the setup type the user selects. How do I display them? Also how do I place an entry in the RunOnce registry setting (I want to run a database build script if the user select to install SQL Server Express)?
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  2. #2

    Thread Starter
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Display a message using Inno Setup

    OK I found the entry:

    InfoAfterFile=

    That allows me to display a file after the install is completed. But is it possible to choose between two different files based on the setup selected to be perfomed (Components)?
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Display a message using Inno Setup

    In the Inno documentation online, they have an example on how to install X vs Y when running different windows version.... so, I imagine some form of it could be used to do the same here.... but I'm not sure how that works.

    =-tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Display a message using Inno Setup

    I have followed things for different installs and that is complete. I just can't figure out how to change the file for display (InfoAfterFile=) based on the selected install option
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Display a message using Inno Setup

    I believe you can change that via the code section. I haven't checked yet though. But you can definitely do it thru code or even with the [Tasks] section and the [Run] sections. If you create a task for the different install then you can run Notepad with the selected task in the [Run] section.

  6. #6

    Thread Starter
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Display a message using Inno Setup

    This is my script:
    Attached Files Attached Files
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Display a message using Inno Setup

    Ok, then since you are using [Components] Use a [Run] section line with the notepad/wordpad entry to open the test file of your choice. All you need to do is to include the Components: Full parameter on the line and it will only run when the Full installation is chosen.

  8. #8

    Thread Starter
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Display a message using Inno Setup

    Thanks randem. I'm trying it now at work.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width