PKG format - not update old files

Login to reply to this topic.
Mon, 2008-05-05 09:35
Joined: 2008-01-17
Forum posts: 9

My program work with user.txt file where user save his data.
During program uninstall user.txt will uninstalled too due it included into .pkg file. ("C:\user.txt"-"!:\Data\My\user.txt")
When program upgrades, user.txt on phone will be replaced on file from install package.
It is not good because user need to save his data into user.txt again.
I can't use PU Type of package because user need to have one-file install package.
Can I somehow don't overwrite this file ?


Mon, 2008-05-05 09:47
Joined: 2005-04-13
Forum posts: 121
Re: PKG format - not update old files

You can try creating user.txt file from the application. so by this approach, you can check whether this file exist or not too. If file already exist, you can ignore creating it and can proceed with you leftover acitivities.


Jupitar

Mon, 2008-05-05 09:48
Joined: 2005-04-13
Forum posts: 121
Re: PKG format - not update old files

Use RFile and RFs for creating a new file


Jupitar

Tue, 2008-05-06 10:05
Joined: 2008-01-17
Forum posts: 9
Re: PKG format - not update old files

If I'll create file from a program, then uninstaller will not remove their

Tue, 2008-05-06 10:27
Joined: 2008-01-17
Forum posts: 9
Re: PKG format - not update old files

Search for FILENULL in the SDK Help (note that FILENULL itself is deprecated - FN is what you are going to use -, it is just easier to decode I think).

  • Login to reply to this topic.