Yep, as you say, the well-known directories wouldn't necessarily be used in
an MSI and so wouldn't have a corresponding directory Id, which is a
requirement of the function.

-----Original Message-----
From: Peter Hull [mailto:peterhul...@hotmail.com] 
Sent: 05 October 2012 13:31
To: WiX Users
Subject: Re: [WiX-users] Question about Properties and Custom Actions

Thanks for the replies.

> You can use MsiSetTargetPath() in your custom action to update an 
> existing directory Id. That would more closely model your intent and 
> requires less code.

Good point, that's another option. I have been looking at what was done in
the WixQueryOsDirs custom action - there they used secure public properties
rather than MsiSetTargetPath. I don't know why - maybe because that extension
defines about 20 different paths, most of which wouldn't be used in a
particular installer?

Pete                                      
-----------------------------------------------------------------------------
-
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly what is
happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at
no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to