Just trying some code & unfortunately I can't get it to work.
I've tried deleting lines 9, 10, 11, 12 & 38-42. But it still won't compile.
I've tried within one set of Apostrophe's, and within 2;
CreateShortcut "$STARTMENU\maint\maint.lnk" "$ProgramFiles\maint\maint.exe"
Yet I still find myself unable to successfully compile the script.
Could someone please help me get the following (or similar) to compile?
Thanks in advance,!include MUI2.nsh
Name `Maintenance`
OutFile `Maintenance Setup.exe`
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE license.txt
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_RUN "$DESKTOP\Maintenance MMC.msc"
!define MUI_FINISHPAGE_RUN "$DESKTOP\Maintenance.exe"
!define MUI_FINISHPAGE_RUN_TEXT "Open this"
!define MUI_FINISHPAGE_RUN_TEXT "Open that!"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE English
Section
!macro ExtractMaintenance ToDir
SetOutPath `${ToDir}`
File "Maintenance Script.exe"
File "Maintenance MMC.msc"
File "Backup Directory.exe"
!macroend
!macro ExtractMaint ToDir
SetOutPath `${ToDir}`
File "Maint.exe"
!macroend
!insertmacro ExtractMaintenance "C:\Install\CD\Applications\Tools"
!insertmacro ExtractMaint "$PROGRAMFILES\maint"
CreateShortcut "$STARTMENU\maint\maint.lnk" "$ProgramFiles\maint\" "maint.exe"
CreateShortcut "$DESKTOP\Maintenance.lnk"
"E:\Forstall\Applications\Tools\" "Maintenance Script.exe"
CreateShortcut "$DESKTOP\Maintenance MMC.lnk"
"E:\Forstall\Applications\Tools\" "Maintenance MMC.msc"
SectionEnd
Panarchy