Read-only archive of the All About Symbian forum (2001–2013) · About this archive

unable to dump the file through sis file

0 replies · 3,506 views · Started 09 July 2005

Hi
I have developed an app which just copy a videofile (which is to dump at installation throug sis file) and put it in diferent place and here is my code

................................................................

_LIT( KSoundSampleFile,"C:\\system\\apps\\test\\play.3gp"😉;
_LIT( Kpath,"C:\\nokia\\Videos\\Thinkways2.3gp"😉;

...............................................

TBuf8<40000> buf8;

// Create (replace) the direct file store
RFile f1;
RFs fsSession;
User::LeaveIfError(fsSession.Connect());
// User::LeaveIfError(fsSession.SetSessionPath(Kpath));
TInt i=0;
if( ( i=f1.Open(fsSession,KSoundSampleFile,EFileRead| EFileStreamText))==KErrNone )
{

// User::Leave(i);

}



f1.Read(buf8);
{
// User::Leave(i);
}

CFileStore* iFilestore=CDirectFileStore::ReplaceL(fsSession,Kpath,EFileWrite|EFileShareAny);
f1.Open(fsSession,Kpath,EFileWrite|EFileShareAny);
f1.Write(buf8);


f1.Close();
fsSession.Close();

and my content of pkg file is

; test.pkg
;
;Language - standard language definitions
&EN

; standard SIS file header
#{"test"},(0x0dfbe4c3),1,0,0

;Supports Series 60 v0.9
(0x101F6F87), 0, 0, 0, {"Series60ProductID"}

;
"C:\Symbian\Series60_1_2_CW\epoc32\release\armi\urel\test.APP"-"C:\system\apps\test\test.app"
"C:\Symbian\Series60_1_2_CW\epoc32\data\z\system\apps\test\test.rsc"-"C:\system\apps\test\test.rsc"
"C:\eclipse\workspace\test\wav\play.3gp"-"C:\system\apps\test\play.3gp"

Now my problem is sis file created and it installed successfully when I am trying to run it it is showing the"test app closed"

it means it is not getting the file which is to be copied.

i have done this app in series 60 1.2 sdk and installing it on Nokia 3660

Can anybody sugest what might be th eproblem

waiting for ur reply

Thanx