Enviroment Variable Launching Program from Exit Dialog - 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!

birdman
Posts: 4
Joined: Mon Oct 29, 2007 9:48 am
Location: Annapolis, MD
Contact: Website

Enviroment Variable Launching Program from Exit Dialog

I am developing an install for a java application. If I launch the
application using the the exit dialog facility I get a message from
my program saying that the environment variable I need has not
been set. If I exit and then execute the application from the desktop
shortcut it runs fine, i.e. the environment variable has been set.
How can I make sure the environment variable is set when I
launch from the exit dialog.

Thanks Birdman
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
How can I make sure the environment variable is set when I
launch from the exit dialog.
Please note that the environment variable is set, but it cannot be accessed by the installation.

All environment variables created during the execution of a process are available only after the process is finished. In this case they are available after installation. This is because a copy of the environment variables is read when the process begins.

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

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”