Harish
Posts: 35
Joined: Tue Dec 27, 2005 9:25 am

Environment variable setting up.

Hi,

When will the environment variable will be set. In our application we have some dll's that will register based on environment variables. Is there any way to set the environment variable before registering the dll's.

Thanks in Advance,
Harish.Y
Harish
Posts: 35
Joined: Tue Dec 27, 2005 9:25 am

Hi Team,

No answer for the question? When will be the environment variable set?

Is the feature available to set the environment variable at particular time,

that is as soon as the target dir is choosed.

Thanks,
Harish
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

The environment variables will be set during the WriteEnvironmentStrings standard action. I'm afraid that this cannot be changed.

The DLL files will be registered when the SelfRegModules action is executed. This standard action is scheduled for execution after the WriteEnvironmentStrings action.

However the new values for the environment variables will be available after the install process has ended. Any module that is scheduled to be executed after the the environment variables are set, will still use the old values. This is the way Windows Installer works.

For more details please see:
http://msdn.microsoft.com/library/defau ... _table.asp

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
Harish
Posts: 35
Joined: Tue Dec 27, 2005 9:25 am

Thanks a lot for information you have given.

Thanks,
Harish.

Return to “Common Problems”