我想在Windows上更改安装目录,我的Electron应用是使用
我尝试将
这是我的
有人成功使用electron-builder更改默认安装目录吗?
谢谢!
electron-builder
构建的。我尝试将
installer.nsh
文件放置在构建文件夹中,但结果仍然相同,它总是安装在默认路径AppData/Roaming/
下。这是我的
installer.nsh
:!macro preInit
SetRegView 64
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\CustomPath"
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\CustomPath"
SetRegView 32
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\CustomPath"
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\CustomPath"
!macroend
有人成功使用electron-builder更改默认安装目录吗?
谢谢!
target:["nsis"]
。 - Samuel Thompson