Posted 10 June 2009 - 17:00
) from within a merge module project?
Since any properties defined/set within the context of a merge module automatically have the module id appended to the property name, the custom action will not work. I can work around the problem by modifying the custom action code to append the module id to the property name as well, but this requires me to hard code the module id in the custom action source, which is far from ideal.
I imagine that this is a common problem. Is anyone aware of an elegant solution?
The root problem I am trying to solve is setting folder permissions for the USERS group in a localized installation.
Posted 10 June 2009 - 17:46
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.
Posted 10 June 2009 - 20:42
Posted 10 June 2009 - 22:51
|QUOTE (Stefan Krueger @ 2009-06-10 20:42)|
|Is the problem that your authpring tool automatiocally creates USERS_guid when you enter USERS? Maybe you can turn this off some way? In InstallShield you could go to the Direct Editor to remove the guid.|
Yes, wix appends the merge module id to any properties defined within the context of the merge module at compile time, and documentation suggests that it is a good practice, so I don't want to turn it off it I don't have too (first have to see if I can). Might be a feature request to selectively toggle the option on an item by item basis.
Great suggestion. I'll look into it.
Posted 15 June 2009 - 08:45