Environment variables - Advanced Installer Community

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!

Stella
Posts: 20
Joined: Thu Oct 05, 2006 4:33 pm

Environment variables

Hello,

I'm trying to generate an installer that should only set certain environment variables if they don't already exists. In the Edit Environment Property dialog, i set "Adding/Removing", "On install" to "create if doesn't exist only". However, when the installer is run, the property is still updated according to the behaviour defined on the "When Existing" section.

Should this be happening? Is this the correct way to set a property only if it doesn't already exist?

Thanks in advance for any reply,
Stella
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

To do this use following options in the "Edit Environment Variable" dialog:
On the "Adding/Removing" section:
On install: "Create if doesn't exist only".
On the "When Existing" section:
Behavior: "Replace".

With those options set the variable will not be modified if its already exist. I test this and works just fine.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Stella
Posts: 20
Joined: Thu Oct 05, 2006 4:33 pm

Thank you, that did the trick! I couldn't find any reference to that in the user documentation, I was starting to go crazy with it!

Cheers,
Stella

Return to “Common Problems”