Preserve Existing Environment Variable - 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!

phancox
Posts: 17
Joined: Sat Jun 24, 2006 11:03 am

Preserve Existing Environment Variable

What is the best way to avoid overwriting an existing environment variable?

I want to set system environment variable "CONFIG_DIR=ABCD" but if variable "CONFIG_DIR" is already defined then I don't want to change it.

Thanks for any guidance.
phancox
Posts: 17
Joined: Sat Jun 24, 2006 11:03 am

Re: Preserve Existing Environment Variable

Humblest apologies.

Didn't see the "On install:" option in the environment variables properties dialogue :oops:

Return to “Building Installers”