PDA

View Full Version : Clarion 10 Manager



NewsArchive
03-18-2016, 03:34 AM
Hi Friedrich,

When I run it, it tells me that C10 is not registered and that the
serial number is not verified.

WHAT does it do to find that information? My serial number IS verified
(I re-registered it just now, no change) and all the registry settings I
can find point to the correct C10 folder.

But it causes ClarionCL.exe to fail when called to export a dct for
example and I think it may also fail registering templates.

Can you point me to what your program is checking for so I can try to
fix it?

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
03-18-2016, 03:34 AM
Hi Arnor,

Can you post the command you are running to call ClarionCL?

And which folder do you have Clarion installed in?

Liam

NewsArchive
03-18-2016, 03:34 AM
Arnor,

Do you use /ConfigDir in your C10 shortcut?

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

NewsArchive
03-18-2016, 03:35 AM
Hi Lee,

> Do you use /ConfigDir in your C10 shortcut?

Indeed, but I would still like to know WHAT it is looking for. My
_guess_ is that it's looking for
c:\Users\<UserName>\AppData\Roaming\SoftVelocity\Clarion\10.0\Clarion Properties.xml,
which on my computer does not exist as I MOVED the flippin' folder into
the C10/bin folder;)

Perhaps, rather than stating that it's not registered, it could show
that this file doesn't exist in the expected folder and suggest checking
if C10 is being run with the /ConfigDir command line.

I WISH SV made the IDE so that using command line parameters with it
didn't BREAK other tools!!!!

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
03-18-2016, 03:36 AM
Arnor,

> I WISH SV made the IDE so that using command line parameters with it
> didn't BREAK other tools!!!!

A while back I strongly suggested that if /ConfigDir was sensed in the
command line when loading the IDE that the IDE should write the damn
thing to the registry and that should be referenced by ClarionCL
whenever it was run.

If the user decided to quit using /ConfigDir then the next time the
IDE was loaded the registry would be updated to use the new path. It's
not exactly brain surgery!<g>

A fix that would work for everyone, developer and 3rd party.

While I breathe I hope!<g>

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

NewsArchive
03-18-2016, 03:36 AM
Hi Liam,

> Can you post the command you are running to call ClarionCL?
>
> And which folder do you have Clarion installed in?

Command line and paths were 100% correct, except it was missinbg one
rather important thing: /ConfigDir!

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
03-18-2016, 03:37 AM
That's what we all thought <g>

Liam

NewsArchive
03-18-2016, 03:37 AM
Hi Lee,

> A while back I strongly suggested that if /ConfigDir was sensed in the
> command line when loading the IDE that the IDE should write the damn
> thing to the registry and that should be referenced by ClarionCL
> whenever it was run.
>
> If the user decided to quit using /ConfigDir then the next time the
> IDE was loaded the registry would be updated to use the new path. It's
> not exactly brain surgery!<g>
>
> A fix that would work for everyone, developer and 3rd party.

That should do it. It's a PITA.

Best regards,


--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
03-18-2016, 09:40 AM
Hi Arnor,

>> Do you use /ConfigDir in your C10 shortcut?

The "Clarion 10 Manager" utility makes use of the "If System does have
Clarion 10" Statement. This function returns "1" in the variable
%_SB_RETURNEX% if the Clarion 7.x, 8.x, 9.x or 10 IDE is "initialized"
(registered).

The installer runtime checks the "ClarionProperties.xml" located in the
default AppData folder to verify the registration status (you can use this
option in template registration setups to avoid a GPF when you try to
register a TPL and the IDE is not registered).

The built-in %_SB_CONFIGDIR% runtime variable lets you define the location
of the configuration directory for Clarion 10. So if you run "Clarion 10
Manager" from the command line and pass the location of your configuration
directory to the utility then it should report "REGISTERED" in your case.

Friedrich

NewsArchive
03-19-2016, 12:37 AM
Hi Friedrich,

> The installer runtime checks the "ClarionProperties.xml" located in the
> default AppData folder to verify the registration status (you can use this
> option in template registration setups to avoid a GPF when you try to
> register a TPL and the IDE is not registered).

If I may, I would suggest that:

IF you do NOT find the ClarionProperties.xml in the default %appdata%
folder AND /ConfigDir is NOT specified when running the Clarion 10
manager, that you pop up a message stating that the program cannot
locate the ClarionProperties.xml and suggest checking if you are using
/ConfigDir when running the Clarion 10 IDE:) I.e.

IF NOT EXISTS(ClarionPropertiesXMLPath)
!! The ClarionProperties.xml path is NOT where expected
ELSE
!! Check for registration
END

I had *completely* forgotten that I was using /ConfigDir on my C10
shortcuts because I use 3 different C10 installs. Note that I'm *only*
talking about the Clarion 10 Manager. In this situation it gave me
incorrect information because it didn't find the ClarionProperties.xml
and told me C10 wasn't registered.

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
03-19-2016, 04:56 AM
Hi Arnor,

>
> If I may, I would suggest that:
>

Does using /ConfigDir "move" the (default) Clarion 10 configuration folder
including "ClarionProperties.xml" to another location? I'll add a
"ClarionProperties.xml" file check to "Clarion 10 Manager", good idea!

BTW, I know that Charles' installs support %_SB_CONFIGDIR%, so his products
can handle the "/ConfigDir" scenario. But most 3rd party products do not
support it.

http://www.lindersoft.com/forums/showthread.php?46329-Clarion-3rd-party-only-Clarion-9-x-10-x-ConfigDir-support

http://www.lindersoft.com/forums/showthread.php?46263-Clarion-10-3rd-party-developers&p=82725&highlight=configdir#post82725

Friedrich

NewsArchive
03-19-2016, 05:26 AM
> Does using /ConfigDir "move" the (default) Clarion 10 configuration folder
> including "ClarionProperties.xml" to another location?

To answer my own question: No, it does not.

I have uploaded a new "C10_Manager.exe". It can detect the missing
ClarionProperties.xml in the default %appdata% folder now. And it supports
the /ConfigDir command line switch.

http://www.lindersoft.com/projects/C10_Manager.exe

Friedrich

NewsArchive
03-19-2016, 12:58 PM
> BTW, I know that Charles' installs support %_SB_CONFIGDIR%, so his products
> can handle the "/ConfigDir" scenario. But most 3rd party products do not
> support it.

We also enable the developer to specify they are using /ConfigDir inside
the installer (as well as the command line option).

They can choose to use the default location (under the /BIN folder) or they
can specify their own location.

Likewise they have the option to remember that setting. If that is
selected then all of our installers will use that location until they
change it.

It works quite well and we appreciate your adding the feature!


:-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - ProScan, ProImage, ProPath and other Clarion
developer tools!
www.solidsoftware.com - ImageEx and RichReport templates!
www.seal-soft.com - The xProduct Clarion templates - xWordCOM, xToolTip,
xDataBackup Manager and more!
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
03-19-2016, 12:58 PM
Showoff!

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
03-19-2016, 01:00 PM
Friedrich,

> BTW, I know that Charles' installs support %_SB_CONFIGDIR%, so his products
> can handle the "/ConfigDir" scenario. But most 3rd party products do not
> support it.

It's been in all my installs since it was introduced...

Lee White

NewsArchive
03-19-2016, 01:01 PM
Hi Friedrich,

> Does using /ConfigDir "move" the (default) Clarion 10 configuration folder
> including "ClarionProperties.xml" to another location? I'll add a
> "ClarionProperties.xml" file check to "Clarion 10 Manager", good idea!

No, it doesn't move it, I did that;) But it tells the IDE to look for
the settings in a different folder. IF you only use /ConfigDir, it
creates a Settings folder under the Clarion\bin folder. But you can
also use /ConfigDir=PathToTheNewSettingsFolderThingy if I understand
this correctly.

The ClarionProperties.xml can be in any one of 3 posssible places:

1. In the %appdata% folder if Clarion is started without /ConfigDir
2. In Clarion %root%\Settings if Clarion is started with /ConfigDir
3. In user specified folder if /ConfigDir="PathToFolder" is used.

So if it is not found in 1. then it indicates that /ConfigDir is used
when starting the CLarion IDE.

Now: It CAN be found in the %appdata% folder even if the Clarion IDE is
started with /ConfigDir! _I_ just moved it so that I would ONLY have
the mess in one place;)

> BTW, I know that Charles' installs support %_SB_CONFIGDIR%, so his products
> can handle the "/ConfigDir" scenario. But most 3rd party products do not
> support it.

This should be part of all my install scripts now:) It's not yet in all
the public installs, but should be with the next build(s)

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
03-21-2016, 03:56 AM
Hi Lee,

>> BTW, I know that Charles' installs support %_SB_CONFIGDIR%, so his
>> products
>> can handle the "/ConfigDir" scenario. But most 3rd party products do not
>> support it.
>
> It's been in all my installs since it was introduced...

Very cool !!!

Friedrich

NewsArchive
03-21-2016, 03:57 AM
>>> BTW, I know that Charles' installs support %_SB_CONFIGDIR%, so his
>>> products
>>> can handle the "/ConfigDir" scenario. But most 3rd party products do not
>>> support it.
>>
>> It's been in all my installs since it was introduced...
>
> Very cool !!!

See, we DO use this cool stuff that you build for us!

Thanks for doing that!

:-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - ProScan, ProImage, ProPath and other Clarion
developer tools!
www.solidsoftware.com - ImageEx and RichReport templates!
www.seal-soft.com - The xProduct Clarion templates - xWordCOM, xToolTip,
xDataBackup Manager and more!
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------