<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.0.1">
</HEAD>
<BODY>
Now the solution of the problem:<BR>
the company firewall blocks the access to the download server. When I remove the /passive option, a error message are displayed.<BR>
<BR>
Thanks for the support.<BR>
Ralf<BR>
<BR>
-------- Weitergeleitete Nachricht --------<BR>
<B>Von</B>: Ralf Lange <<A HREF="mailto:Ralf%20Lange%20%3cralf.lange@longsoft.de%3e">ralf.lange@longsoft.de</A>><BR>
<B>An</B>: Eric Noulard <<A HREF="mailto:Eric%20Noulard%20%3ceric.noulard@gmail.com%3e">eric.noulard@gmail.com</A>><BR>
<B>Kopie</B>: <A HREF="mailto:cmake@cmake.org">cmake@cmake.org</A><BR>
<B>Betreff</B>: Re: [CMake] CPACK and NSIS: Download a msi-installer and install it didn't work<BR>
<B>Datum</B>: Thu, 26 Jan 2012 08:19:57 +0100<BR>
<BR>
The variable is set bevor include(CPack) and the generated nsi file locks OK.<BR>
I test the installer on a 32bit Windows7 system and it works, but on a 64bit Windows7 system it works not. So I think it is a NSIS problem, not a CPACK problem.<BR>
<BR>
Thanks for the tips.<BR>
Ralf<BR>
<BR>
Am Mittwoch, den 25.01.2012, 22:33 +0100 schrieb Eric Noulard:
<BLOCKQUOTE TYPE=CITE>
<PRE>
2012/1/25 Ralf Lange <<A HREF="mailto:ralf.lange@longsoft.de">ralf.lange@longsoft.de</A>>:
> Hello,
> I will prepare a windows installer for my application. The application need
> GStreamer for Windows. The installer has to download the installer and start
> the installer.
> I have add the following command to the CMakeLists.txt file:
>
> SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
>
> NSISdl::download
> <A HREF="http://ossbuild.googlecode.com/files/GStreamer-WinBuilds-GPL-x86.msi">http://ossbuild.googlecode.com/files/GStreamer-WinBuilds-GPL-x86.msi</A>
> $INSTDIR\\\\GStreamer-WinBuilds-GPL-x86.msi
> ExecWait 'msiexec /i \\\"$INSTDIR\\\\GStreamer-WinBuilds-GPL-x86.msi\\\"
> /passive '
> Delete \\\"$INSTDIR\\\\GStreamer-WinBuilds-GPL-x86.msi\\\"
> ")
>
> But when I start the installer, there is no download, no installation and no
> error message.
Did you set the variable **before**
include(CPack) ?
> What's the reason?
Did you check that the project.nsi file generated by CPack contains
your specific
extra install commands?
The file may be found in
buildtree/_CPack_Packages/<systemname>/NSIS/project.nsi
</PRE>
</BLOCKQUOTE>
<BR>
<PRE>
--
Powered by <A HREF="http://www.kitware.com">www.kitware.com</A>
Visit other Kitware open-source projects at <A HREF="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A>
Please keep messages on-topic and check the CMake FAQ at: <A HREF="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</A>
Follow this link to subscribe/unsubscribe:
<A HREF="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</A>
</PRE>
<BR>
</BODY>
</HTML>