[Qt-interest] Windows 7 and VirtualStore woes
Constantin Makshin
dinosaur-rus at users.sourceforge.net
Thu Sep 10 22:55:43 CEST 2009
This may sound somewhat rude, but the standard way to solve self-updating
problem is to not do it. It's better to implement notifications about new
versions of your program. Something like "There's a newer version of Foo.
Do you want to download it? <Yes/No>" and when the user clicks "Yes"
button, open web page where [s]he can download new version of your program.
On Thu, 10 Sep 2009 20:55:37 +0400, Oliver Demetz
<forenbeitraege at oliverdemetz.de> wrote:
> Hi!
>
> Today I have been shocked by the absolutely needles concept of this
> f**king VirtualStore.
>
> Ok. Here is my situation:
> I have two apps: My main app, and an Update-Tool that fetches Updated
> exe's from the web.
>
> Everytime my main app starts (as normal user), it writes its
> applicationVersion string into a plain text file called "VERSION" in the
> program dir (i.e. c:\Program Files\Myapp\).
>
> Ok. I found out now, that this file access is redirected to the
> VirtualStore somwhere in the user home-dir.
>
> My update-tool - and this is already the problem - is automatically
> recognised by windows to be necessarily run with admin rights. So if I
> click the exe or a shortcut, windows automatically asks me for the
> rights.
>
> This leads to the fact that the access to the "VERSION" file is *not*
> redirected to the virtualStore. Thus, both programs use different files.
>
> What is the standard way to solve this problem?
>
> Remark: the best, easiest and simplest way of downgrading to
> good-old windows xp is unfortunately impossible in my case ;-)
>
>
> Thanks for your help in advance,
> Oliver
--
Constantin Makshin
More information about the Qt-interest-old
mailing list