Results 1 to 8 of 8

Thread: "A License Agreement" from variable?

  1. #1

    Default "A License Agreement" from variable?

    Hi all,

    is there any way to show text file (or rtf file) in License Agreement Dialog
    but not fixed in License Agreement Dialog properties (like hardcoded file
    name to txt/rtf file) but defined somewhere and somehow before in variable?

    My idea is to use some general License Agreement Dialog and then set real
    file name depending of Product, like (in pceudo code):

    if Product = "EE" then rftfilename='ee_lic.rtf'
    or
    if Product = "ER" then rftfilename='er_lic.rtf'

    then just show "License Agreement Dialog" with rftfilename. And it should
    be compiled into setup file as well.


    gennadi

  2. #2

    Default Re: "A License Agreement" from variable?

    Guenaddi,

    something likle this maybe ?

    ! Define RTF cases
    If %IS_LICENCED_APP% Equals "1" Then
    ! Is Licenced
    If %LANG_ID% Equals "en" Then
    Set Variable %EULA% to "%TMPDIR%\readme_reinst_licenced_en.rtf"
    ElseIf %LANG_ID% Equals "fr" Then
    Set Variable %EULA% to "%TMPDIR%\readme_reinst_licenced_fr.rtf"
    End
    ElseIf %IS_EVAL_APP% Equals "1" Then
    ! Is Evaluation
    If %LANG_ID% Equals "en" Then
    Set Variable %EULA% to "%TMPDIR%\readme_reinst_eval_en.rtf"
    ElseIf %LANG_ID% Equals "fr" Then
    Set Variable %EULA% to "%TMPDIR%\readme_reinst_eval_fr.rtf"
    End
    ElseIf %REINITIALLISED_INSTALL% Equals "1" Then
    ! Is Problematic Install
    If %LANG_ID% Equals "en" Then
    Set Variable %EULA% to "%TMPDIR%\readme_reinst_pb_en.rtf"
    ElseIf %LANG_ID% Equals "fr" Then
    Set Variable %EULA% to "%TMPDIR%\readme_reinst_pb_fr.rtf"
    End
    ElseIf %REINITIALLISED_INSTALL% Equals "2" Then
    ! Is Problematic Install
    If %LANG_ID% Equals "en" Then
    Set Variable %EULA% to "%TMPDIR%\readme_reinst_pb2_en.rtf"
    ElseIf %LANG_ID% Equals "fr" Then
    Set Variable %EULA% to "%TMPDIR%\readme_reinst_pb2_fr.rtf"
    End
    End


    __________________________________________________ ____________________

    For those who do not understand ... : "Qui bene amat bene castigat."
    __________________________________________________ ____________________


    Merci

    Cordialement - Best regards
    Jean-Pierre GUTSATZ

    CGF

    DMC - Data Management Center
    A tool to let you Migrate Import Export Transfer your Data
    www.dmc-fr.com
    Certified by Microsoft : "Works with Vista" &
    "Works with Windows Server 2008"

  3. #3

    Default Re: "A License Agreement" from variable?

    Hi Jean-Pierre,

    > something likle this maybe ?
    >
    > ! Define RTF cases
    > If %IS_LICENCED_APP% Equals "1" Then
    > ! Is Licenced
    > If %LANG_ID% Equals "en" Then
    > Set Variable %EULA% to "%TMPDIR%\readme_reinst_licenced_en.rtf"

    Sure something like this!

    But then how could I set that License Agreement Dialog should use %EULA% to
    show info??

    gennadi

  4. #4

    Default Re: "A License Agreement" from variable?

    DLG_README_READMEINFO and use local://%EULA%

    __________________________________________________ ____________________

    For those who do not understand ... : "Qui bene amat bene castigat."
    __________________________________________________ ____________________


    Merci

    Cordialement - Best regards
    Jean-Pierre GUTSATZ

    CGF

    DMC - Data Management Center
    A tool to let you Migrate Import Export Transfer your Data
    www.dmc-fr.com
    Certified by Microsoft : "Works with Vista" &
    "Works with Windows Server 2008"

  5. #5

    Default Re: "A License Agreement" from variable?

    Hi Jean-Pierre,
    > DLG_README_READMEINFO and use local://%EULA%

    thanks, I will try it.

    gennadi

  6. #6

    Default Re: "A License Agreement" from variable?

    Hi all,
    >
    > is there any way to show text file (or rtf file) in License Agreement
    > Dialog
    > but not fixed in License Agreement Dialog properties (like hardcoded file
    > name to txt/rtf file) but defined somewhere and somehow before in
    > variable?
    >
    > My idea is to use some general License Agreement Dialog and then set real
    > file name depending of Product, like (in pceudo code):
    >
    > if Product = "EE" then rftfilename='ee_lic.rtf'
    > or
    > if Product = "ER" then rftfilename='er_lic.rtf'
    >
    > then just show "License Agreement Dialog" with rftfilename. And it should
    > be compiled into setup file as well.

    May be it can be done much more easy??

    in the "License Agreement Text" press change button, then Edit, then
    directly write

    file://[PRODUCT]_lic.rtf

    so it will automatically uses appropriaded rtf file name depending of
    [PRODUCT] ?

    gennadi

  7. #7

    Default Re: "A License Agreement" from variable?

    gennadi,

    >
    > May be it can be done much more easy??
    >

    See attached demo ;-)

    Friedrich

    --
    Friedrich Linder
    Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    SetupBuilder is Windows installation -- "point. click. ship"

    -- Official Comodo Code Signing and SSL Certificate Partner
    Attached Files Attached Files

  8. #8

    Default Re: "A License Agreement" from variable?

    Hi friedrich,

    >> May be it can be done much more easy??
    >>
    >
    > See attached demo ;-)

    its too easy! <g>

    gennadi

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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