<html><body><div>Hi,<br><br>I know that the install commands collect files and copy them into the temporary cpack directory for the specified generator.<br>How is it possible to install an application for example into those folders:<br><span style="font-family: courier new,monospace; font-size: 12px;">C:\myapp</span><br><span style="font-family: courier new,monospace; font-size: 12px;">C:\somefolder</span><br><br>I defined '<span style="font-family: courier new,monospace; color: rgb(6, 6, 6); font-size: 12px;">Var CustomDir="C:\somefolder"</span>' in the NSIS template.<br><br>When I then use the following in the CMakeLists.txt:<br><span style="font-family: courier new,monospace; font-size: 12px;">install(FILES ${CMAKE_SOURCE_DIR}/somefolder/myfile.txt DESTINATION $CustomDir)</span><br><br>Then the files are installed in <span style="font-family: courier new,monospace; font-size: 12px;">_CPACK_PACKAGES/NSIS/myproject_1.0.0.1/$CustomDir</span>.<br>The generated project.nsi has the content: <span style="font-size: 12px; font-family: courier new,monospace;">$INSTDIR\$CustomDir\...</span><br><br>How can I avoid that <span style="font-family: courier new,monospace; font-size: 12px;">$INSTDIR\</span> is added, or did I need to use the install command in a different way?<br><br>Thanks in advance<br><br>Best Regards<br>NoRulez<br data-mce-bogus="1"></div></body></html>