PDA

View Full Version : Show message on Developer machine only



NewsArchive
09-16-2005, 02:44 AM
Hi Friedrich,

Thought I'd post this little tip:)

In a WebUpdate install I need to make sure that I remember to update
certain things, compiler variables etc. etc. every time I release a
new build. So I decided to use SB5 to do that automatically for me.

In the "Initialize Setup" section I put this code, right after the
#include script "Common Definitions.sbi":

Set Variable %DEVMODE% to GetIni("Location") from MySB5Setup.ini
If %DEVMODE% Equals "1" Then
Display Message Box "Remember to check ..." -- "Developer Mode"
End

Then I created a the MySB5Setup.ini file in my windows directory that
contains:

[Location]
Location=1

Since this INI ONLY exists on _MY_ development machine whatever is
conditioned to show up if %DEVMODE% = 1 will only ever show up on my
machine.

If you feel better about using the registry, then by all means use the
registry:)

Best regards,

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


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

NewsArchive
09-16-2005, 02:44 AM
Hi Arnór,

Very interesting tip! Thanks for sharing :)

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
09-17-2005, 06:56 AM
Arnor,

Not quite the same thing, but have you noticed there's also the ability to
have the compiler give you a message (I use it for a similar reminder) each
time you compile your script? It's the #msgbox option in Compiler
Directives.

Jane

NewsArchive
09-17-2005, 06:57 AM
Hi Jane,

>Not quite the same thing, but have you noticed there's also the ability to
>have the compiler give you a message (I use it for a similar reminder) each
>time you compile your script? It's the #msgbox option in Compiler
>Directives.

Cool! No I hadn't noticed that. Even though I have built several
installs (including a web updater) in SB5 I'm just starting to scratch
the surface!

Also, you can use the #msg to show a message in the compile window.
That could come in really handy as well:) So does the #run if you
need to call an external program to prepare a file or something.

Best regards,

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


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