Groups > Symbian > Symbian Tools > Re: .pkg files: if exists() condition doesn't work?




.pkg files: if exists() condition doesn't work?

.pkg files: if exists() condition doesn't work?
Thu, 2 Feb 2006 11:23:37 +0200
Hi all,
I've tried using the "if exists(filename)" condition in my .pkg file
(using 
Series 60 v2.0 SDK).
As far as I understand it checks for the existence of a file on my PC. What 
I'm trying to do is installing a configuration file only if it exists.
However, it seems that the condition is always considered true, so if the 
file doesn't exists I get a "file not found" error.
Has anybody managed to use this condition, or is this a known problem?

TIA
Uriah 

Post Reply
Re: .pkg files: if exists() condition doesn't work?
Fri, 3 Feb 2006 08:05:14 +0100
"Uriah" <uriaheisenstein@mobiletornado.com> wrote in message 
news:rJEoXo9JGHA.2552@extapps30...
> Hi all,
> I've tried using the "if exists(filename)" condition in my .pkg
file 
> (using Series 60 v2.0 SDK).
> As far as I understand it checks for the existence of a file on my PC. 
> What I'm trying to do is installing a configuration file only if it 
> exists.
> However, it seems that the condition is always considered true, so if the 
> file doesn't exists I get a "file not found" error.
> Has anybody managed to use this condition, or is this a known problem?

The file tested for is on the device and the test is run while installing, 
not while creating the sis file.

-- 
Sander van der Wal
www.mBrainSoftware.com 

Post Reply
Re: .pkg files: if exists() condition doesn't work?
Sun, 5 Feb 2006 10:49:44 +0200
Whoops... 10x. I had a feeling this is the issue after reading again the 
.pkg documentation. I also tried to test it, but I tested for the existence 
of a file which I install, and that was probably a mistake. The file did 
exist (I installed over a previous version), but I guess it was deleted 
before my installation started.

Uriah

"Sander van der Wal" <svdwal@mBrainSoftware.com> wrote in
message 
news:cq6$v%23IKGHA.2776@extapps30...
>
> "Uriah" <uriaheisenstein@mobiletornado.com> wrote in
message 
> news:rJEoXo9JGHA.2552@extapps30...
>> Hi all,
>> I've tried using the "if exists(filename)" condition in my
.pkg file 
>> (using Series 60 v2.0 SDK).
>> As far as I understand it checks for the existence of a file on my PC.

>> What I'm trying to do is installing a configuration file only if it 
>> exists.
>> However, it seems that the condition is always considered true, so if
the 
>> file doesn't exists I get a "file not found" error.
>> Has anybody managed to use this condition, or is this a known problem?
>
> The file tested for is on the device and the test is run while installing,

> not while creating the sis file.
>
> -- 
> Sander van der Wal
> www.mBrainSoftware.com
> 

Post Reply
about | contact