This is either a hole in the API or I'm missing something obvious.
During an install how can I tell if the install is per-user or per-machine? Windows Installer obviously makes this decision at some stage. The ALLUSERS property can't be used. A verbose log doesn't show any likely properties. There appears to nothing in the condition syntax to support it. The Mode method of the session object doesn't supply it. No other objects seem to supply it.
Any ideas? At this stage I'll call this a limitation (if only in documentation)...
I probably wouldn't care too much if it wasn't for the limitation in the "Environment" table where unlike the "Registry" table I can't leave the per-user/per-machine decision up to Windows Installer.
> This is either a hole in the API or I'm missing something obvious.
> During an install how can I tell if the install is per-user or > per-machine? > Windows Installer obviously makes this decision at some stage. > The ALLUSERS property can't be used. > A verbose log doesn't show any likely properties. > There appears to nothing in the condition syntax to support it. > The Mode method of the session object doesn't supply it. > No other objects seem to supply it.
> Any ideas? At this stage I'll call this a limitation (if only in > documentation)...
> I probably wouldn't care too much if it wasn't for the limitation in > the "Environment" table where unlike the "Registry" table I can't > leave the per-user/per-machine decision up to Windows Installer.
It doesn't work on W9X. Of course, I *think* the expression
Version9X or (ALLUSERS=1) or (ALLUSERS=2 and Privileged)
might be pretty close to determining whether this is an allusers install - except that, on W9x, allusers depends on whether the system has user profiles or not.
On Tue, 24 Aug 2004 08:28:15 +0200, "Martin v. Löwis"
<mar...@v.loewis.de> wrote: >Phil Wilson wrote: >> Why can't ALLUSERS be used?
>It doesn't work on W9X. Of course, I *think* the >expression
>Version9X or (ALLUSERS=1) or (ALLUSERS=2 and Privileged)
>might be pretty close to determining whether this is an >allusers install - except that, on W9x, allusers depends >on whether the system has user profiles or not.
Thanks, I'd guessed that it was going to be something like that but I was hoping that Windows Installer was smarter than that (I should have known better).
You'd think that MS could at least have documented the workaround to this issue (a condition that complicated is not something we should have to guess). But again I suppose only a small fraction of what you need to know is documented..
I'll use your condition as it is close to my "worrst case scenario guess".