-
Notifications
You must be signed in to change notification settings - Fork 552
Add WiX installer support #1522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -101,5 +101,9 @@ SET(CPACK_SOURCE_IGNORE_FILES | |
| # Ignore build directories that may be in the source tree | ||
| FILE(GLOB_RECURSE CACHES "${CMAKE_SOURCE_DIR}/CMakeCache.txt") | ||
|
|
||
| SET(CPACK_WIX_LICENSE_RTF "${PROJECT_SOURCE_DIR}/LICENSE.rtf") | ||
| SET(CPACK_WIX_PATCH_FILE "${PROJECT_SOURCE_DIR}/wix/WIXPatch.wxs") | ||
| SET(CPACK_WIX_UPGRADE_GUID "FF9E2D77-CDC7-4D24-8B7B-99D66EDEE862") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does this number signify ?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a unique identifier for the installer, used for when users upgrade to a newer version. The existing installation can be detected by this. This way multiple entries in Programs and Features aren't created, and the existing installation can be upgraded in place. For more information, see: https://cmake.org/cmake/help/v3.6/module/CPackWIX.html
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @InBetweenNames I was wondering if this is randomly generated. If so does it need to change with every version ? Can you also add some comments on when this string needs to be preserved and when it needs to be regenerated ?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is indeed randomly generated, and if you wanted to have multiple ArrayFire installations side by side, then this number could change. Otherwise, leaving this number intact allows for future versions of ArrayFire to replace existing versions on the system. |
||
|
|
||
| # Call to CPACK | ||
| INCLUDE(CPack) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <CPackWiXPatch> | ||
| <CPackWiXFragment Id="CM_CP_libraries.lib.afcuda.dll"> | ||
| <Environment Id="ARRAYFIREPATH" Action="set" | ||
| Name="AF_PATH" Permanent="no" System="yes" Value="[INSTALL_ROOT]"/> | ||
| <Environment Id="ENVPATH" Action="set" | ||
| Name="PATH" Permanent="no" System="yes" Part="last" Value="[INSTALL_ROOT]lib"/> | ||
| <Environment Id="NVPATH" Action="set" | ||
| Name="PATH" Permanent="no" System="yes" Part="last" Value="[%CUDA_PATH]\nvvm\bin"/> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This (adding NVVM to path) is something we have discussed at length internally about and have consistently decided not to have in our installer. The single most important reason being that NVIDIA does not add it to Path themselves. Other reasons include
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May be an alternative would be to have the installer copy nvvm.dll (if it exists) into arrayfire/lib ? |
||
| </CPackWiXFragment> | ||
| </CPackWiXPatch> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this should be a top level directory. I'd rather have it go into
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree--if you're interested in another revision of this PR, I could accomodate that. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no license.rtf file in ArrayFire. If you want to link to license, the it is just LICENSE (markdown).