bool Install (bool unattended)
{
// note: user-initiated check is done in unmanaged code
if (!NativeMethods.application_install (NativeHandle, unattended))
return false;
// once installed the default quota for isolated storage is augmented to 25MB (instead of 1MB)
// note: this applies only to the browser (not desktop) assemblies (it won't compile otherwise)
#if !NET_3_0
const long OutOfBrowserQuota = 25 * IsolatedStorage.DefaultQuota;
if (IsolatedStorage.Quota < OutOfBrowserQuota)
IsolatedStorage.Quota = OutOfBrowserQuota;
#endif
return true;
}