[CMake] NSIS no fix install path -> automatic searching for already installed programs (e.g. Matlab, Qt, ...)

Stefan stefanspage at yahoo.de
Thu Apr 10 06:02:44 EDT 2008


Okay I saw your answer, but I did not associate it with my problem. Because it is only a workaround not a good and safe solution in general.

If I overwrite the CMAKE_MODULE_PATH, does cmake find the other standard Modules if I need them?
The other problem is, that I have to choose the same filenames for the templates.

But it's nice to know a workaround to use it now. :-)

In general, perhaps a solution like this would be possible:
A variable like CPACK_NSIS_TEMPLATE could be set or not (default are the current template files).
It’s the same concept like CPACK_RESOURCE_FILE_LICENCE or CPACK_PACKAGE_ICON and so on.

Isn't this is better like overwrite the CMAKE_MODULE_PATH were other parts in the project could be depend on?

--
Stefan

-----Ursprüngliche Nachricht-----
Von: Eric NOULARD [mailto:eric.noulard at gmail.com] 
Gesendet: Donnerstag, 10. April 2008 11:22
An: stefan
Cc: cmake at cmake.org
Betreff: Re: [CMake] NSIS no fix install path -> automatic searching for already installed programs (e.g. Matlab, Qt, ...)

Le Thu, 10 Apr 2008 11:00:22 +0200,
"stefan" <stefanspage at yahoo.de> a écrit :

> Hi cmake-community,
> 
>  
> 
> Is it possible to add custom pre-install commands like the
> post-install command via the CPACK_NSIS_EXTRA_INSTALL_COMMANDS
> variable?
> 
>  
> 
> For example I want to install a self made Matlab Toolbox or a plugin
> for Winamp, Qt and so on. The installer have to search for the path
> were these programs are installed and use this path as
> Installdirectory.
> 
>  
> 
> In the current Cmake Version there is no possibility to add a
> pre-install command or choose another NSIS.template.in file.

As already answered recently 
http://www.cmake.org/pipermail/cmake/2008-April/021013.html

you should be able to use your 
own template If you add your template in your custom module Path
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

> Does anybody have solved the this problem (without changing the
> template files in the CMAKE directory) or is it a new feature to
> cmake?


	
		
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de



More information about the CMake mailing list