<!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>
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 &lt;<A HREF="mailto:ralf.lange@longsoft.de">ralf.lange@longsoft.de</A>&gt;:
&gt; Hello,
&gt; I will prepare a windows installer for my application. The application need
&gt; GStreamer for Windows. The installer has to download the installer and start
&gt; the installer.
&gt; I have add the following command to the CMakeLists.txt file:
&gt;
&gt; SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS &quot;
&gt;
&gt; NSISdl::download
&gt; <A HREF="http://ossbuild.googlecode.com/files/GStreamer-WinBuilds-GPL-x86.msi">http://ossbuild.googlecode.com/files/GStreamer-WinBuilds-GPL-x86.msi</A>
&gt; $INSTDIR\\\\GStreamer-WinBuilds-GPL-x86.msi
&gt; ExecWait 'msiexec /i \\\&quot;$INSTDIR\\\\GStreamer-WinBuilds-GPL-x86.msi\\\&quot;
&gt; /passive '
&gt; Delete \\\&quot;$INSTDIR\\\\GStreamer-WinBuilds-GPL-x86.msi\\\&quot;
&gt; &quot;)
&gt;
&gt; But when I start the installer, there is no download, no installation and no
&gt; error message.

Did you set the variable **before**

include(CPack) ?


&gt; 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/&lt;systemname&gt;/NSIS/project.nsi



</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>