PDA

View Full Version : OMIT() Directive



NewsArchive
06-28-2007, 11:47 PM
Hi Friedrich,

How about an OMIT() directive for your script?

I think it would be good for testing and more. I was looking for it when I
was playing with the block of code for manifest embedding and code signing.

JAT


Lynn Howard
www.linkedsoftware.com

NewsArchive
06-28-2007, 11:47 PM
Hi Lynn,

>I think it would be good for testing and more. I was looking for it when I
>was playing with the block of code for manifest embedding and code signing.

I'm sure you can do this in SB:

IF(1=2)
END

I.e. you use an IF statement with a condition that is always going to
be false to exclude code you don't want to execute.

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
06-28-2007, 11:47 PM
Arnór

I think what you describe would only evaluate at runtime.
If one wanted to omit a block of code for compile-time stuff like
code-signing, I think you'd need to use compiler directives.

#const $MYFAKEVAR$="1"
#ifconst $MYFAKEVAR$="2"
! begin block of code to omit or process
#embed Vista manifest
#code-sign
#whatever

#end

Jane Fleming

NewsArchive
06-28-2007, 11:48 PM
Hi Jane,

>#const $MYFAKEVAR$="1"
>#ifconst $MYFAKEVAR$="2"
>! begin block of code to omit or process
>#embed Vista manifest
>#end

Yep, same thing.

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
06-29-2007, 10:38 AM
Lynn,

Exactly what Jane and Arnór said.

And of course, you can use the new #ifcompvar conditional directive to let
compiler variables control the compilation process.

For example:

#ifcompvar [SB_RELEASEID] Equals "Full" Then
! Do actions for the full version
#end

#ifcompvar [SB_RELEASEID] Equals "Demo" Then
! Do actions for the demo version
#end

Friedrich

Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.5
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
06-29-2007, 10:39 AM
Thanks Friedrich, Jane and Arnor.

Got it but still think it would be a nice feature on the Menu along with
Comment: Out\In. <G>

Omit
End Omit

Lynn