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
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