CPack/WIX: Setting CPACK_WIX_ROOT_FOLDER_ID to local non-admin path fails
I'm trying to package an application and install it in %AppData%
so people don't need admin rights to install it.
Setting set(CPACK_WIX_ROOT_FOLDER_ID "AppDataFolder")
fails with errors on all files:
4\WIX\files.wxs(64) : error LGHT0204 : ICE38: Component CM_CP_my_component.boost_program_options_vc142_mt_x64_1_75.dll installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file.
NOTE: This combination does not work as expected, it ask user to install to C:/AppDataFolder/My Company/My App
instead of C:/Users/myuser/AppData
etc
set(CPACK_WIX_SKIP_PROGRAM_FOLDER true)
set(CPACK_PACKAGE_INSTALL_DIRECTORY "AppDataFolder/My Company/My App")
Similar issue: #20907
Edited by Brad King