PDA

View Full Version : The Clarion Environment Detection dialog ?



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

I have the Clarion Environment Detection dialog, on the properties, tab
Advanced I can select "Supported Clarion Versions" by set/unset checkboxes.
So I need to do it manually before compile sb script.

But is it possible to set needed checkboxes programmatically from sb script?

gennadi

NewsArchive
04-24-2010, 04:25 AM
gennadi,

> I have the Clarion Environment Detection dialog, on the properties, tab
> Advanced I can select "Supported Clarion Versions" by set/unset
> checkboxes.
> So I need to do it manually before compile sb script.
>
> But is it possible to set needed checkboxes programmatically from sb
> script?

No, this is not possible. All your script logic is based on these settings
so programmatically enabling/disabling these options would not make much
sense.

Friedrich

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


>> I have the Clarion Environment Detection dialog, on the properties, tab
>> Advanced I can select "Supported Clarion Versions" by set/unset
>> checkboxes.
>> So I need to do it manually before compile sb script.
>>
>> But is it possible to set needed checkboxes programmatically from sb
>> script?
>
> No, this is not possible. All your script logic is based on these
> settings
> so programmatically enabling/disabling these options would not make much
> sense.

The idea is to have one Clarion Environment Detection dialog for different
products. Each products support different combinations of the Clarions.

so I know for each product this combination and need to just set it to
Clarion Environment Detection dialog. Then Clarion Environment Detection
dialog will work as usual - so check Clarions installed and depending of my
setting show Clarion versions to be selected. Then Clarion Environment
Detection dialog just return Clarion path as usual and so on.

I just need to change "Supported Clarion Versions" checkboxes
programmatically before Dialog shown (see attached image)

There is nothing illogical or particular in this idea, I think. or not?

gennadi

NewsArchive
04-24-2010, 04:27 AM
gennadi,

> The idea is to have one Clarion Environment Detection dialog for different
> products. Each products support different combinations of the Clarions.

The compiler directives are there to handle this scenario.

Similar to this:

#ifcompvar [C7_COMPATIBLE] Equals "Yes" Then
! C5.x, C6.x, C7.x
Define Wizard Dialog "CLARIONDETECTION" (Clarion Environment Detection) ()
#else
! C5.x, C6.x
Define Wizard Dialog "CLARIONDETECTION" (Clarion Environment Detection) ()
#end

This method allows you to compile completely different installs for
different products from the very same .sb7 project without having to modify
the project before you compile the setup.exe.

Related features are "SKU Management Wizard", "Releases" and "command line
compiler". These features help you to automate the process of generating
different outputs from the same source. BTW, one of our customers uses this
method to generate (automatic nightly build) about 1,000 completely
different installs (one individual setup.exe for each of their stores) from
the very same project.

Friedrich

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

>> The idea is to have one Clarion Environment Detection dialog for
>> different products. Each products support different combinations of the
>> Clarions.
>
> The compiler directives are there to handle this scenario.
>
> Similar to this:
>
> #ifcompvar [C7_COMPATIBLE] Equals "Yes" Then
> ! C5.x, C6.x, C7.x
> Define Wizard Dialog "CLARIONDETECTION" (Clarion Environment Detection) ()
> #else
> ! C5.x, C6.x
> Define Wizard Dialog "CLARIONDETECTION" (Clarion Environment Detection) ()
> #end
>
> This method allows you to compile completely different installs for
> different products from the very same .sb7 project without having to
> modify the project before you compile the setup.exe.

OK! I got your idea. So I can create different compiler directives and then
in #ifcompvar I can define different "CLARIONDETECTION" dialog with
appropriated settings?



> Related features are "SKU Management Wizard",
Yes,I have already read about this feature, it sound helpful too.


Thanks
Gennadi

NewsArchive
04-24-2010, 04:27 AM
> OK! I got your idea. So I can create different compiler directives and
> then in #ifcompvar I can define different "CLARIONDETECTION" dialog with
> appropriated settings?

Yes, correct.

Friedrich

NewsArchive
04-24-2010, 04:28 AM
Hi friedrich,
>> OK! I got your idea. So I can create different compiler directives and
>> then in #ifcompvar I can define different "CLARIONDETECTION" dialog with
>> appropriated settings?
>
> Yes, correct.

great!

gennadi