View Single Post
Old 10th August 2020, 19:42   #3
galtech
Junior Member
 
Join Date: Aug 2020
Posts: 8
I assume yes, because I'm calling for the shortcut creation in the end of the script (after all my files are installed).

I'm really really new with this kind of nsis scripting, I hope someone can help...I'm so frustrated with this ... hours....

I also created a exe file that refresh my desktop icons when I double click on it, but the file not really executed through nsis.. I tired so many options.. like:

Section
ExecWait "$INSTDIR\reic\refresh.exe"
SectionEnd


So I give up on this line cause it's not working for me...


I edit the Modren.nsh file this way (current state):


;Change this file to customize zip2exe generated installers with a modern interface

!include "MUI2.nsh"
!define MUI_ICON "${NSISDIR}\contrib\graphics\icons\install.ico"

!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_LANGUAGE "English"

Section "Desktop Shortcut" SectionX
SetShellVarContext current
SetOutPath "$INSTDIR"
CreateShortCut "$DESKTOP\DeskMate.lnk" "$INSTDIR\DeskMate.exe" "" "$INSTDIR\.icon\m.ico" 0
SectionEnd
galtech is offline   Reply With Quote