PDA

View Full Version : Can this be done - checkbox



John Fligg
08-25-2005, 05:35 AM
Hi

I believe I have found a large hole in SUF which is not a criticism.

I want to achieve the following:

At the end of my installation, I want to include a checkbox perhaps 2. Ideally I would like to offer the user the choice to launch a readme file and start the program.

It would be even better if the readme file could be a chm help file and even better still if it could be opened at a specific topis (i.e. latest changes).

Can this be done?

Thank you

John Fligg

csd214
08-25-2005, 06:33 AM
The hole is plugged! :D

As far as I remember the SUF70 Setup itself ends with a screen with two checkboxes. Simply use a CheckBox screen to replace the ordinary Finished Install.

(But you can’t have a bottom text with another font than the top text (if you use the side banner).)

Brett
08-25-2005, 09:03 AM
You can open a help file to a specific topic by doing a File.Open where you run "hh.exe" and passing it the topic that you want to open.

From MSDN Web site (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwHTMLHelpFrequentlyAskedQuestions.asp):


Is it possible to open a specific topic from the Hh.exe command line?
Yes, try:
hh mk:@MSITStore:/path/filename.chm::/path\topicname.htm

For example, with the compiled help file htmlhelp.chm, you can use:


hh mk:@MSITStore:htmlhelp.chm::/api.htm
hh mk:@MSITStore:c:\windows\help\htmlhelp.chm::/flash\browse.htm

skite
10-13-2005, 11:58 PM
The hole is plugged! :D

As far as I remember the SUF70 Setup itself ends with a screen with two checkboxes. Simply use a CheckBox screen to replace the ordinary Finished Install.

(But you can’t have a bottom text with another font than the top text (if you use the side banner).)

ok, i made the same "style" as you, but....i'm a scripter n00b :( how can i accomplish, that my readme-file /or other files are opened -> I don't know :huh

csd214
10-14-2005, 03:19 AM
Welcome to the forum; stay tuned. :)

The Settings tab shows you that you the object CTRL_CHECK_BOX_01 with the associated Lua variable check01. This is a global Boolean variable meaning that the value is true if checked and false if not checked.

In the section ‘On Shutdown’ (that’s after your finished screen is released) add this code:


if check01 then
File.Open(SessionVar.Expand("%AppFolder%".."\\Readme.htm"), "", SW_SHOWNORMAL); -- a HTML file
end

I suppose you have installed Readme.htm/Readme.txt into %AppFolder%. If the file has to be viewed before the installation, you have to add the Readme file as a primer file.

HTH.

skite
10-14-2005, 06:26 AM
hey, VERY GREAT!!!
working^^

thx!
skite

csd214
10-14-2005, 06:32 AM
Nice to hear. It is VERY SIMPLE……..(when you know “how to do”) :D

skite
10-14-2005, 12:29 PM
yeah, WHEN you know HOWTO *lol*