[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)?
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)?
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
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
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.
1 Attachment(s)
Re: Display a message using Inno Setup
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.
Re: Display a message using Inno Setup
Thanks randem. I'm trying it now at work.