On Wed, Aug 13, 2008 at 1:47 PM, Stefan Kuhr <[EMAIL PROTECTED]> wrote:
>
> Hi Johan,
>
>
>
> Johan Appelgren wrote:
>>
>> Are you doing a per-user or a per-machine install?
>>
>>
>
> Oops, please excuse my ignorance, but how do I know that? The command line
> is the same as I would install as an interactive user, something like:
>
> msiexec.exe /i path-to-my.msi  /qn /l*v path-to-logfile
>
> I use the exact same command line as I would when logging in interactively,
> but now just running as SYSTEM. The real purpose of all this is to remotely
> install an MSI and the msiexec command line is executed as a scheduled task
> running as SYSTEM. However I experienced the same behaviour when starting
> this MSI from an interactive command shell run as SYSTEm with the cmdasuser
> tool.

That is determined by the ALLUSERS property. If it is not set you get
a per-user installation, so I'm guessing that is what you have.

http://msdn.microsoft.com/en-us/library/aa367559(VS.85).aspx

For a per-user installation the install is only visible to the user
who installed your package. Everything the installer does must be
unique for the installing user. That means that you should only write
to the HKCU registry hive and write files in a unique location for
that user, easiest solution is to only write files somewhere in
%userprofile%. If you write files in, for example, %ProgramFiles% and
multiple users on the same machine installs the package things can
easily break when one user uninstalls the package or installs an
upgrade.

I think it's a lot simpler to have my installers always do a
per-machine install.

/Johan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to