[Qt-interest] Windows 7 and VirtualStore woes
Nikolay Moskvichev
nikolay.moskvichev at gmail.com
Thu Sep 17 07:28:30 CEST 2009
Hello, Oliver Demetz
10.09.2009 22:55 you 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
Change your update-tool exe name to smething without "install","setup"
or "update" in file name. When i check it on vista, this funny os
recognise elevate or not app just by executable name.
> 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
More information about the Qt-interest-old
mailing list