I have the need to create an environnement variable for my app. I went to the following link and I did exactly what is described in paragraph "Your own variable". It works fine, and the varibale is really created after installation.
Now I propose to the user to launch the program after installation finished :
+ If the user choose to launch the program later it continues to work fine, and my added variable is well recognised
+ But if the user choose to launch the program immediately after installation finished it does not work ! :-( I don't khnow why ?
Here is snippet of the code I use to propose launching after installation (found on NSIS site too):
.
.
.
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_TEXT "Start $(^Name)"
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
.
.
.
Function LaunchLink
ExecShell "" "$SMPROGRAMS\$StartMenuGroup\MyApp.lnk"
FunctionEnd Thanks in advance for your help.