Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Different text based on Release


6 replies to this topic

Thomas Eskesen

Thomas Eskesen
  • Members
  • 86 posts

Posted 05 April 2001 - 14:39

Does anyone have a idéar to how I can use different "License.txt" file in the License dialog, based on the Release flag?

I want to be able to release different type of my program with different License agrements!

I would also wan to use different string table texts in the dialog dependent on the ReleaseFlag

Is this possible? How?

Thanking You in anticipation
Thomas Eskesen

Regards,
Thomas Eskesen


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 05 April 2001 - 18:22

You would have to build several dialogs, or put several similar controls on the same dialog and make them visible/invisible as required. In your conditions use ISReleaseFlags which is a property that lists the release flags that were set when you built the release.

Thomas Eskesen

Thomas Eskesen
  • Members
  • 86 posts

Posted 06 April 2001 - 09:19

Thanx!
Does that mean that I have to make two dialogs with different License.txt files - one for each of my releases?

I have two release flags.
I have tried to give two texts each some conditions e.g.:
Text1:
"Hide" _IsReleaseFlag = "SCH"
Text2:
"Hide" _IsReleaseFlag = "RM"

But no matter what - I can always se both texts?!?!??!

Regards & thanx,
Thomas

(Edited by Thomas Eskesen at 12:22 pm on April 6, 2001)


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 06 April 2001 - 16:21

You can make two dialogs or have two text controls on the same dialog.

Note that the property is ISReleaseFlags not _IsReleaseFlag. And you shouldn't put the string in quotes.

Hide ISReleaseFlags = SCH

will hide Text1 if the SCH flag is set (and no other flags are specified)


Thomas Eskesen

Thomas Eskesen
  • Members
  • 86 posts

Posted 09 April 2001 - 12:52

Hi Stefan

Now I have two ScrollableText in my dialog for the different Features.
I have entered the two filenames in the string tables as:
IDS_FILE_RM_LICENSE w:\result\UK\RM\license.txt
IDS_FILE_SC_LICENSE w:\result\UK\SC\license.txt
But I can not  get the dialog-editor to remember the FileName!??!?!?
I can select the file-name property and string table radiobutton and select the string -  and the right text shows up in the scrollabletext in the dialog.
BUT when I exit the dialog editor and enter again the text and filename are gone.....

Please help
Thomas


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 April 2001 - 16:02

Note that scrollable text must be in RTF format and must have the .rtf extension, TXT is not supported.

Thomas Eskesen

Thomas Eskesen
  • Members
  • 86 posts

Posted 10 April 2001 - 07:24

YES!
Thanx - that did the trick!

Regards, a greatfull
Thomas Eskesen

(Edited by Thomas Eskesen at 8:30 am on April 10, 2001)