PDA

View Full Version : C7.2 detection failure



NewsArchive
07-09-2010, 01:47 AM
Friedrich,

I have a location that is failing version detection. They have
verified that the key below exists in their registry but even the
simple test script fails to locate the entry. Any suggestions?

This key exists and "InstallLocation" contains the correct path:
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{479A07C0-EF05-11DE-6DF1-18371B021649}


This is my simple test script:
> If System does have Clarion 7.2 Then
> Set Variable %CLARION_IDE_DIR% to "%_SB_TMP%"
> Set Variable %CLARION_IDE_DIR% to FUNCTION:Extract Full Folder(%CLARION_IDE_DIR%)
> End
> Display Message Box "%CLARION_IDE_DIR% \n\nIs the path above ...


I've attached the screen capture of the results... not exactly what I
expected!<g> HELP!

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
07-09-2010, 01:48 AM
Lee,

> I've attached the screen capture of the results... not exactly what I
> expected!<g> HELP!

;-)

That Product GUID is only one step in detecting Clarion. I think the
Clarion.exe does not exist or is not version 7.1 or 7.2.

HTH,
Friedrich

NewsArchive
07-09-2010, 01:48 AM
> That Product GUID is only one step in detecting Clarion. I think the
> Clarion.exe does not exist or is not version 7.1 or 7.2.

Should read: "I think the Clarion.exe does not exist or is not version
7.2!"

Friedrich

NewsArchive
07-09-2010, 01:49 AM
Friedrich,

> Should read: "I think the Clarion.exe does not exist or is not version
> 7.2!"

I read it that way.<g>

I'm still puzzled though. I renamed my 7.2 folder and my test script
still returned the path from the registry. (caps attached)

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
07-09-2010, 01:50 AM
Lee,

> I read it that way.<g>
>
> I'm still puzzled though. I renamed my 7.2 folder and my test script
> still returned the path from the registry. (caps attached)

But I am sure the "If System does have Clarion 7.2 Then" Statement result is
FALSE if you renamed your 7.2 folder ;-)

Perhaps the value in %_SB_TMP% comes from another function call.

Try this:

Set Variable %_SB_TMP% to ""
Set Variable %CLARION_IDE_DIR% to ""
If System does have Clarion 7.2 Then
.....
End

Friedrich

NewsArchive
07-09-2010, 01:50 AM
I have changed the runtime. %_SB_TMP% is automatically cleared in this case
now.

Friedrich

NewsArchive
07-09-2010, 01:51 AM
Friedrich,

> But I am sure the "If System does have Clarion 7.2 Then" Statement result is
> FALSE if you renamed your 7.2 folder ;-)

Something is off here. I renamed the folder and it still returned the
value in the registry. I even turned it the other way around and
renamed just the registry entry and it returned the new value.

> Perhaps the value in %_SB_TMP% comes from another function call.

No other calls. The script is too simple<g>, just this...

> #include script "Common Definitions.sbi"
>
> Set Variable %CLARION_IDE_DIR% to ""
> Set Variable %_SB_TMP% to ""
> If System does have Clarion 7.2 Then
> Set Variable %CLARION_IDE_DIR% to "%_SB_TMP%"
> Set Variable %CLARION_IDE_DIR% to FUNCTION:Extract Full Folder(%CLARION_IDE_DIR%)
> End
> Display Message Box "%CLARION_IDE_DIR% \n\nIs the path above correct? ..." -- "Clarion 7.2 Path"

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
07-09-2010, 01:52 AM
Lee,

>
> No other calls. The script is too simple<g>, just this...
>

So if you have the following three lines, you see the "WRONG! I do not
exist" message box?

If System does have Clarion 7.2 Then
Display Message Box "WRONG! I do not exist"
End

Friedrich

NewsArchive
07-09-2010, 01:52 AM
Friedrich,

> So if you have the following three lines, you see the "WRONG! I do not
> exist" message box?

Yes. I even renamed the SoftVelocity folder so the path was
nonexistent and it still displayed the message.

It DOESN'T display if I change "InstallLocation" to some other phrase
such as "YadaYada" <g>.

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
07-09-2010, 01:52 AM
Lee,

>> So if you have the following three lines, you see the "WRONG! I do not
>> exist" message box?
>
> Yes. I even renamed the SoftVelocity folder so the path was
> nonexistent and it still displayed the message.
>
> It DOESN'T display if I change "InstallLocation" to some other phrase
> such as "YadaYada" <g>.

Hmm, I fear you are right :-(

If that C71/C72 Product GUID is there and the major file version is not
7 -or- if the folder does not exist (and GUID is still there), then it
reports that Clarion 7.x does exist :-(

Fixed now. Thank you for bringing this to my attention.

Friedrich

NewsArchive
07-09-2010, 01:53 AM
Friedrich,

> Fixed now.

Thanks.

> Thank you for bringing this to my attention.

See what happens when you ANNOUNCE your vacation plans early? Next
time just tell everyone AFTER you leave.<g>

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
07-09-2010, 01:53 AM
>> Thank you for bringing this to my attention.
>
> See what happens when you ANNOUNCE your vacation plans early? Next
> time just tell everyone AFTER you leave.<g>

Hehehehe... :)

Friedrich

NewsArchive
07-09-2010, 01:53 AM
BTW, and I would suggest to "initialize" the %CLARION_IDE_DIR% variable
before the If Statement. You declare it inside the If Statement, but in
your case, the If Statement is FALSE and so %CLARION_IDE_DIR% is not
declared. That's why you see %CLARION_IDE_DIR% in the message box.

Do this:

Set Variable %CLARION_IDE_DIR% to ""
If System does have Clarion 7.2 Then
....
End

Friedrich

NewsArchive
07-09-2010, 01:53 AM
Friedrich,

> BTW, and I would suggest to "initialize" the %CLARION_IDE_DIR% variable
> before the If Statement. You declare it inside the If Statement, but in
> your case, the If Statement is FALSE and so %CLARION_IDE_DIR% is not
> declared. That's why you see %CLARION_IDE_DIR% in the message box.

I do, in the real world<g>, but for this test it didn't make any
difference.

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/