PDA

View Full Version : "A License Agreement" from variable?



NewsArchive
04-24-2010, 04:19 AM
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

NewsArchive
04-24-2010, 04:20 AM
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"

NewsArchive
04-24-2010, 04:22 AM
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

NewsArchive
04-24-2010, 04:22 AM
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"

NewsArchive
04-24-2010, 04:23 AM
Hi Jean-Pierre,
> DLG_README_READMEINFO and use local://%EULA%

thanks, I will try it.

gennadi

NewsArchive
04-24-2010, 04:23 AM
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

NewsArchive
04-24-2010, 04:24 AM
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

NewsArchive
04-24-2010, 04:25 AM
Hi friedrich,

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

its too easy! <g>

gennadi