Quote:
Originally Posted by Anders
!echo $EXEDIR makes no sense, you need to learn the difference between compile time and run time and variables vs defines.
You probably want "File", not "CopyFiles".
You can't mix "RequestExecutionLevel user" and $Programfiles.
|
Thank you for responding. I removed !echo and changed RequestExecutionLevel to admin, but now MakeNSISW throws an error about the missing Icon file, though that file is present in the directory. Seems the $EXEDIR variable is still incorrect. What am I doing wrong?
Updated script attached.
code:
C:\Users\CBdeV\Documents\SecureCoop_Windows_app>dir SecureCoop.ico
Volume in drive C has no label.
Volume Serial Number is 980D-C70C
Directory of C:\Users\CBdeV\Documents\SecureCoop_Windows_app
10/07/2021 10:39 PM 4,286 SecureCoop.ico
1 File(s) 4,286 bytes
0 Dir(s) 268,724,682,752 bytes free
C:\Users\CBdeV\Documents\SecureCoop_Windows_app>
Output from MakeNSISW:
code:
MakeNSIS v3.08 - Copyright 1999-2021 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.
Processing config: C:\Program Files (x86)\NSIS\nsisconf.nsh
Processing default plugins: "C:\Program Files (x86)\NSIS\Plugins\x86-unicode\*.dll"
+ Banner::destroy
+ Banner::getWindow
+ Banner::show
+ BgImage::AddImage
+ BgImage::AddText
+ BgImage::Clear
+ BgImage:
estroy
+ BgImage::Redraw
+ BgImage::SetBg
+ BgImage::SetReturn
+ BgImage::Sound
+ Dialer::AttemptConnect
+ Dialer::AutodialHangup
+ Dialer::AutodialOnline
+ Dialer::AutodialUnattended
+ Dialer::GetConnectedState
+ InstallOptions::dialog
+ InstallOptions::initDialog
+ InstallOptions::make_unicode
+ InstallOptions::show
+ KillProcWMI::KillProc
+ LangDLL::LangDialog
+ Math::Script
+ StartMenu::Init
+ StartMenu::Select
+ StartMenu::Show
+ System::Alloc
+ System::Call
+ System::Copy
+ System::Free
+ System::Get
+ System::Int64Op
+ System::Store
+ System::StrAlloc
+ TypeLib::GetLibVersion
+ TypeLib::Register
+ TypeLib::UnRegister
+ UserInfo::GetAccountType
+ UserInfo::GetName
+ UserInfo::GetOriginalAccountType
+ VPatch::GetFileCRC32
+ VPatch::GetFileMD5
+ VPatch::vpatchfile
+ advsplash::show
+ nsDialogs::Create
+ nsDialogs::CreateControl
+ nsDialogs::CreateItem
+ nsDialogs::CreateTimer
+ nsDialogs::GetUserData
+ nsDialogs::KillTimer
+ nsDialogs::OnBack
+ nsDialogs::OnChange
+ nsDialogs::OnClick
+ nsDialogs::OnNotify
+ nsDialogs::SelectFileDialog
+ nsDialogs::SelectFolderDialog
+ nsDialogs::SetRTL
+ nsDialogs::SetUserData
+ nsDialogs::Show
+ nsExec::Exec
+ nsExec::ExecToLog
+ nsExec::ExecToStack
+ nsisdl::download
+ nsisdl::download_quiet
+ splash::show
!define: "MUI_INSERT_NSISCONF"=""
Changing directory to: "C:\Users\CBdeV\Documents\SecureCoop_Windows_app"
Processing script file: "C:\Users\CBdeV\Documents\SecureCoop_Windows_app\setup.nsi" (ACP)
OutFile: "SecureCoop setup.exe"
Name: "SecureCoop"
Caption: "SecureCoop"
BrandingText: " "
InstallDir: "$PROGRAMFILES64\SecureCoop"
Icon: "$EXEDIR/SecureCoop.ico"
Error while loading icon from "$EXEDIR/SecureCoop.ico": can't open file
Error in script "C:\Users\CBdeV\Documents\SecureCoop_Windows_app\setup.nsi" on line 7 -- aborting creation process