Prev Previous Post   Next Post Next
Old 1st June 2009, 05:43   #1
Panarchy
Member
 
Join Date: Nov 2008
Posts: 72
Exclamation Code won't compile! - Help please!

Hi

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?

code:
!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



Thanks in advance,

Panarchy
Panarchy is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump