Private kvs As KeyValueStore
Private Sub Application_Start (Nav As NavigationController)
If File.Exists(File.DirDocuments, "Ini.dat") = False Then
kvs.Initialize(File.DirDocuments, "Ini.dat")
kvs.Put("value1",0)
End If
kvs.Initialize(File.DirDocuments, "Ini.dat")
If kvs.Get("value1")<1 Then '"1" is a mark that shows the times of app updating.
'your action
kvs.Put("value1",1)
else
'other action
end if
End sub