-
ReadMe dialog
Hi Friedrich,
On the ReadMe dialog box there is a checkbox "Read Readme File from
Absolute Path (RTF only), see http://screencast.com/t/VDp12OhNWh
I tried it and when I ran the install in test mode the install crashed!
This checkbox is not in the documentation so I'm not sure exactly what
it does.
I was having some issues with this file so I checked this to see what
happened;) My _guess_ is that it makes the installer read the rtf file
from a specific path on the target machine?
Question: Is it possible to detect when the installer is in "test"
mode, i.e. after you click the "Test" button in the SB toolbar? When
doing quick tests I don't always want it to show me all the dialog
boxes, so it would be cool to be able to use something like:
#ifdef TESTMODE Equals "1" Then
Define Wizard Dialog "WELCOME" (Welcome)
Define Wizard Dialog "PASSWORD" (Password) (%_SB_PASSWORD%)
Define Wizard Dialog "LICENSE" (License Agreement)
#end
to skip those 3 dialogs.
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
-
Re: ReadMe dialog
Arnor,
For detecting test mode, check "Retrieve Installer Flag" from the
documentation:
/*
! Is the installer running in TEST mode?
If %_SB_INSTALLERFLAG% Equals "1" on Position "$SB_TESTMODEFLAG$" Then
Display Message Box "This demo cannot be run in test mode!" -- "Test
Mode"
Exit Installation
End
*/
I think your best bet with the wizard dialogs would be to hide them in test
mode.
As for "absolute", from the "License Agreement Dialog" topic:
"Read License Agreement File from Absolute Path (RTF only)
[in] If this checkbox is marked, the installer reads the license agreement
from a file located on the target machine. For example:
local://%TMPDIR%\license.txt. "
HTH,
jf
-
Re: ReadMe dialog
> If %_SB_INSTALLERFLAG% Equals "1" on Position "$SB_TESTMODEFLAG$" Then
> Display Message Box "This demo cannot be run in test mode!" -- "Test
> Mode"
> Exit Installation
> End
When I use:
If %_SB_INSTALLERFLAG% Equals "1" on Position "$SB_TESTMODEFLAG$" Then
Display Message Box "This is in test mode." -- "Test"
End
I get:
ITUtilities.sbp(31): error GEN1007: Reference to constant
$SB_TESTMODEFLAG$ has not been previously defined.
I wonder if some project or IDE settings need to be changed... This is
in SB 10.latest build.
> "Read License Agreement File from Absolute Path (RTF only)
>
> [in] If this checkbox is marked, the installer reads the license
> agreement from a file located on the target machine. For example:
> local://%TMPDIR%\license.txt. "
Thought as much:)
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
-
Re: ReadMe dialog
It's a constant defined on line 181 of the "Common Definitions.sbi" include
file that's created with a new installation project.
I'm still using SB 8.5.
#const $SB_TESTMODEFLAG$ = "6"
Jane Fleming
-
Re: ReadMe dialog
Hi Jane,
> It's a constant defined on line 181 of the "Common Definitions.sbi"
> include file that's created with a new installation project.
> I'm still using SB 8.5.
>
> #const $SB_TESTMODEFLAG$ = "6"
>
Thanks - realized my problem: I'd put the code to test before the
include commons. Got it working now:)
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
-
Re: ReadMe dialog
Hi Jane,
> Thanks - realized my problem: I'd put the code to test before the
> include commons. Got it working now:)
All working now.
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
-
Re: ReadMe dialog
Hi Friedrich
> Hi Friedrich,
>
> On the ReadMe dialog box there is a checkbox "Read Readme File from
> Absolute Path (RTF only), see http://screencast.com/t/VDp12OhNWh
>
> I tried it and when I ran the install in test mode the install
> crashed! This checkbox is not in the documentation so I'm not sure
> exactly what it does.
I think the problem is that the readme dialog has
"file://C:\Products\ITUtilities\Latest\Welcome.rtf" and it should be
"local://C:\Products\ITUtilities\Latest\Welcome.rtf" However it should
probably detect that and throw an error rather than crash. Note that I
was running htis in test mode, so it's possible that the resulting exe
handles it more gracefully.
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
-
Re: ReadMe dialog
Arnor,
> "local://C:\Products\ITUtilities\Latest\Welcome.rtf"
Mine use "local://%TMPDIR%\YadaYada.rtf"
With this in the support files section...
#include support file "G:\InstallScripts\YadaYada.rtf"
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Creative Reporting: http://www.CreativeReporting.com
Product Release & Update Notices
http://twitter.com/DeveloperPLUS
Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
And, now, Windows 10 brings us "The Inch Worm, Bumper Car of Wait!"
The life of a Clarion Developer: https://youtu.be/ozitqabi6UM
-
Re: ReadMe dialog
Hi Lee,
> Mine use "local://%TMPDIR%\YadaYada.rtf"
Note that I was just having a problem with the RTF so I turned this on
to see what it did and it crashed the installer in test mode. It's not
documented with the "Readme" dialog in the help. I simply wanted to
report this to Friedrich so he could check it out:)
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
-
Re: ReadMe dialog
Arnor,
> Note that I was just having a problem with the RTF so I turned
> this on to see what it did and it crashed the installer in test
> mode. It's not documented with the "Readme" dialog in the help.
> I simply wanted to report this to Friedrich so he could check
> it out:)
I tried everything, but can't reproduce the GPF :-( It displayed an empty
RTF control in my tests. Could you please create a simple test project that
demonstrates this issue?
Thank you!!!
Friedrich