PDA

View Full Version : Search For File option


JXBURNS
05-08-2002, 04:26 AM
Obviously I have done something wrong but not sure where.

In Actions, Before Installing I have a set an action of "Search for File". Store result in %AIMSInstalled%, Default value is FALSE, Search for file AIMS*.EXE, Scope is Search Specific Directory (F:\AIMS) no recursion. Other scope options unticked.

In F:\AIMS I have a number of files beginning with "AIMS" but don't care what they are called as only checking to see if system is installed. (F:\AIMS could exist but system not be installed unless files in there).

In File Properties on CD-ROM tab, have an entry to install a file to F:\AIMS (overwrite if older or same) with condition of %AIMSInstalled% <> "FALSE".

Now the way I see this is that %AIMSInstalled% should have picked up the path\files in F:\AIMS starting with AIMS and put into that variable. Then the condition should have said "OK, %AIMSInstalled% is not equal to the word 'FALSE' so let's install the file". But it does not. (There are no security implications as logged on as ADMIN on a Novell server). Other files without a condition install fine...

HELP!

Thanks

John

Laslie Toth
05-08-2002, 08:18 AM
Hi

Try this:
Default value is NOT FOUND
in condition "%AIMSInstalled%" <> "NOT FOUND"

JXBURNS
05-08-2002, 08:28 AM
I will have a go but any reason why this should make any difference other than FALSE may perhaps be a keyword in SUF6?

Thanks

John

Laslie Toth
05-08-2002, 08:59 AM
The FALSE is boolean value in SF6.

Lorne
05-08-2002, 09:22 AM
Hi Laslie. http://www.indigorose.com/ubb/images/icons/smile.gif

What version are you using? There was a bug fixed in 6.0.1.0 that prevented run-time conditions from working properly when a variable was used.

(The variable was being expanded too soon; we changed the code to expand variables within the expression parsing class a couple versions back, but when we removed the old calls that expanded the variables earlier, we missed one...unfortunately, none of our test cases caught it. We've made an effort to fix that as well. http://www.indigorose.com/ubb/images/icons/smile.gif)

JXBURNS
05-08-2002, 10:19 AM
Lorne,

This was my question originally. The EXE was built using 6.0.0.4 (I am now on 6.0.1.0) but has already been dispatched to various ships across the world. Not a major problem as the Captain's can manually copy the files from the CD but I will rebuild/test the project with the later version.

Rgds

John

Lorne
05-08-2002, 10:26 AM
Ah, right you are John. Hello to you as well. http://www.indigorose.com/ubb/images/icons/smile.gif

It seems to me there was a workaround of sorts, but I don't remember off-hand what it is...and it's ultimately better to upgrade to 6.0.1.0 anyway.

JXBURNS
05-11-2002, 06:18 PM
Just to confirm that recompiling in 6.0.1.0 fixed the variable not being processed correctly.

Thanks John