(2017-01-09, 15:46)Willy Tschager Wrote: in your installer script. I therefore wonder why you would store a change log file on the Desktop and where I do change the search path?
Willy - Sorry for the delayed response
LPub3D does not store its README on the desktop. The README is stored at install_root and install_root/docs
The 'Change log' dialogue on the Preferences form (and also on the Help->About LPub3D form) looks for the README at the current working directory (cwd.absolutePath()) - this defaults to where the LPub3d.exe is located.
I'm not sure how you got the response you did but I imagine you would have to run the LPub3D portable distribution from your desktop to get that response.
Code:
SetOutPath "$INSTDIR"
File "..\docs\README.txt"
This code is meaningless in your context. The first line instructs NSIS to set the working directory to where LPub3D will be installed. The second line defines where to find the README file for packaging in the NSIS installer.
You can follow the logic from these source files:
lpub_preferences.cpp
Code:
lpub3dPath = cwd.absolutePath();
preferencesdialog.cpp
Code:
QString readme = tr("%1/%2").arg(Preferences::lpub3dPath,"README.txt");
aboutdialog.cpp
Code:
QString readmeFile = QString("%1/%2").arg(Preferences::lpub3dPath).arg("README.txt");
Cheers,