Hi all, my installer should set some environment variabes A and B. Normaly i have to do something like this;
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="MyDir"> <Component Id="Component1" Guid="GUID"> <Environment Id="IdA" Action="set" Part="all" Name="A" Permanent="no" System="yes" Value="123" /> <Environment Id="IdB" Action="set" Part="all" Name="B" Permanent="no" System="yes" Value="456" /> </Component> </Directory> </Directory> </Directory> But what i want is installing the variables without referencing any directory Some thing like this: <Fragment > <Component Id="Component1" Guid="GUID"> <Environment Id="IdA" Action="set" Part="all" Name="A" Permanent="no" System="yes" Value="123" /> <Environment Id="IdB" Action="set" Part="all" Name="B" Permanent="no" System="yes" Value="456" /> </Component> </Fragment> But also doing so doesn't work...This is because the "directory atrribute from component element should be inserted". The question here: Why specifying a directory when installing environment variables?????????? ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users