Title: Re: [WiX-users] change install location based on privledge
Don,
 
You can set the Directory property using a type 51 custom action. 
    <CustomAction Id="SetDir" Property="INSTALLDIR" Value="some path" />
 
You can then condition the execution of the custom action based on your AdminUser.
 
Michael
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Don Tasanasanta
Sent: Fri 16/06/2006 3:49 AM
To: Rob Hamflett; wix-users@lists.sourceforge.net
Cc:
Subject: Re: [WiX-users] change install location based on privledge

I know that directory ids can be treated like properties and I know how
to detect AdminUser

My problem is how to write the conditional that will assign my install
directory accordingly based on AdminUser.

Do I add a conditional to the directory tag?
Try to set a property with the property tag? If that's the case then
where? And how do you put a conditional on the property tag?

I can do it in the UI but I'd like to set it outside of the UI Sequence
before the Execute sequence. 


______________________

Don Tasanasanta
VIACK Corporation
425-605-7423


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Rob
Hamflett
Sent: Thursday, June 15, 2006 12:25 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] change install location based on privledge

You can treat Directory Ids like properties if they are all in
uppercase.  You can detect the privilege level early on in the sequence
and then set your product directory to an appropriate path.
  All sub-directories will get resolved as you'd expect.

Rob

Don Tasanasanta wrote:
> I would like to create an install that will install to Program Files
> if an admin is installing and will install to local user folder if a
> user is installing.
>
> Any suggestions on how to get my installation directory property to
> switch from one location to the other before the UI sequence is
called?
>
> ______________________
>

>
> Don Tasanasanta
>
> VIACK Corporation
>
> 425-605-7423
>

>
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users



_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to