We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Lee Bornstein
Posts: 23
Joined: Sat Feb 11, 2006 5:44 am
Location: Las Vegas, NV
Contact: Website

PATH Environment Variable

We have two different installer projects.

Both use the Environment section of Advanced installer to PrePend C:\pvsw\Bin to existing Windows Path Variable.

One installer project works correctly and the other installer project fails to update the PATH environment variable.

Here are the lines of code from the AIP files.

This Fails to update Path
<COMPONENT cid="caphyon.advinst.msicomp.MsiEnvComponent">
<ROW Environment="Path" Name="=-*Path" Value="c:\pvsw\bin;[~]" Component_="ODBCCR32.DLL"/>
</COMPONENT>
This Updates Path correctly.
<COMPONENT cid="caphyon.advinst.msicomp.MsiEnvComponent">
<ROW Environment="Path" Name="=-*Path" Value="c:\pvsw\bin;[~]" Component_="w3clnres.dll"/>
</COMPONENT>
What's the difference? And what is the purpose of the reference to Component_="xxxx.dll"

What's needed to fix this to work properly?

Lee
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Lee,

An EnvironmentVariable has an associated component. The creation of this environment variable is controlled by this component. If the component is not installed then the environment variable is not created.

For example you have this component under a feature which is not selected for installation.

You can read more about this here:
http://msdn2.microsoft.com/en-us/library/aa368369.aspx

Let me know if the problem persist.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”