I have an application that is dependent on some dll's. These dll's are included in the installer. Once all the files and dll's have been installed I manipulate the search path and some system wide environment variables using Kickik's script which can be found here: http://nsis.sourceforge.net/Path_Manipulation
Once the installer has finished I can launch my application through any of the shortcuts I've created, everything works as expected.
What I would like to do is to launch the application from the finish page of the installer. The problem I have is that I get a UnsatisfiedLinkError (Java). This is because my application is not picking up the new PATH that I have just set. The new path contains the directory to my dll's.
What I need to do is to refresh the environment table after I have set the path so when my application launches from the finish page it will be able to pickup the dll's on the search path.
I have followed the following thread:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
which adds some code to Kickik's script which refreshes the environment table. However, this does not work for me.
I have included Kickik's script with the modifications.
Could somebody please help me I've spent a lot of time on this and don't seem to be getting anywhere.
Regards
Paul