KeenRivals 3aa4665a56 Add Windows shortcuts for all users.
The default shell context in NSIS is for the current user. This causes $SMPROGRAMS to put the link in the current user's profile. Other users on the system get no start menu link. This is causing me trouble because I'm trying to deploy Meshlab in a school and by default only the user that installs the application gets the Start Menu shortcuts.

Docs for SetShellVarContext at https://nsis.sourceforge.io/Docs/Chapter4.htmL

I also handled removing old currentuser shortcuts during uninstall/install.
2020-06-18 09:43:00 -04:00
..
2020-02-17 17:01:43 +01:00

Windows Scripts

WORK IN PROGRESS

This folder contains a series of scripts to build and deploy MeshLab under a Windows environment.

The follwing scripts are provided:

  • windows_build.ps1: this script compiles MeshLab in a Windows environment:
    • it requires a properly set Visual Studio (>=2015) and MSVC compiler;
    • it requires a properly set Qt (>= 5.9) environment;
    • without given arguments, all the binaries will be placed in the meshlab/distrib folder. You can give as argument the BUILD_PATH, and meshlab binaries will be then placed inside BUILD_PATH/distrib;
  • windows_build_meshlab_mini.ps1: this script compiles MeshLab mini in a Windows environment. Works in the same way as the windows_build.ps1 script;
  • windows_deploy.ps1: makes the distrib folder a portable version of MeshLab (no Qt and other libraries dependencies):
    • it requires a properly built meshlab distrib directory (see windows_build.ps1);
    • windeployqt.exe directly accessible by powershell and VCINSTALLDIR set to the VC Visual Studio;
    • without given arguments, the folder that will be deployed is meshlab/distrib. You can give as argument the DISTRIB_PATH;
  • windows_nsis_installer.ps1: this script generates an installer for MeshLab:
    • it requires a properly built and deployed meshlab distrib directory (see windows_deploy.ps1);
    • makensis.exe directly accessible by powershell;
    • without given arguments, the folder used for creating the installer is meshlab/distrib. You can give as argument the DISTRIB_PATH;