[Qt-interest] Windows 7 and VirtualStore woes
Gabe Rudy
rudy at goldenhelix.com
Mon Sep 28 16:54:35 CEST 2009
On Fri, Sep 11, 2009 at 1:54 PM, Oliver Demetz <
forenbeitraege at oliverdemetz.de> wrote:
> BUT:
> This still does not give me a location where all system users are
> allowed to write (at least on my Windows 7 RC1 box), it gives me a path
> inside the homedir of the current user!
>
I have a similar situation (although the update tool is not automatic, users
launch it when they want an update or to check for an update), and like
someone else suggested I find the best solution is to _skip_ the middle man.
Don't write to a file. Get the version information directly from your
program.
Since your update tool clearly knows the install location of your program,
have the update program call your program with some "--version" flag and
read from stdout what version the program itself reports. With QProcess,
running a application and reading all of it's stdout is like a two liner.
If you have trouble because your application is built with subsystem:windows
and doesn't have the ability to write to stdout, there are multiple
workarounds, including a project I posted:
http://code.google.com/p/dualsubsystem/
Why would you want to trust the accuracy and up-to-date status of a file
sitting on a customers hard drive anyway?
--
Gabe Rudy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090928/8d9fde10/attachment.html
More information about the Qt-interest-old
mailing list