~ubuntu-branches/ubuntu/oneiric/codeblocks/oneiric

« back to all changes in this revision

Viewing changes to src/sdk/resources/lexers/lexer_nsis.sample

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This is a sample comment box
 
3
 */
 
4
 
 
5
;-----------------------------------------
 
6
;Sets Default Compression to lzma
 
7
 
 
8
    SetCompressor lzma
 
9
 
 
10
;-----------------------------------------
 
11
;Use Modern UI
 
12
 
 
13
    !include "MUI.nsh"
 
14
 
 
15
;-----------------------------------------
 
16
;General
 
17
 
 
18
    XPStyle on
 
19
    Name "Example"
 
20
    OutFile "setup.exe"
 
21
    InstallDir $PROGRAMFILES\Example
 
22
    InstallDirRegKey HKLM "Software\Example" ""
 
23
 
 
24
;----------------------------------------
 
25
;Variables
 
26
 
 
27
  Var STARTMENU_FOLDER
 
28
 
 
29
;-----------------------------------------
 
30
;Interface Settings
 
31
 
 
32
    !define MUI_ABORTWARNING
 
33
    !define MUI_UNABORTWARNING
 
34
 
 
35
;-----------------------------------------
 
36
;Pages
 
37
 
 
38
    !insertmacro MUI_PAGE_WELCOME
 
39
    !insertmacro MUI_PAGE_DIRECTORY
 
40
    !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
 
41
    !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Example"
 
42
    !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Example"
 
43
    !insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
 
44
    !insertmacro MUI_PAGE_INSTFILES
 
45
    !define MUI_FINISHPAGE_NOREBOOTSUPPORT
 
46
    !insertmacro MUI_PAGE_FINISH
 
47
 
 
48
    !insertmacro MUI_UNPAGE_WELCOME
 
49
    !insertmacro MUI_UNPAGE_CONFIRM
 
50
    !insertmacro MUI_UNPAGE_DIRECTORY
 
51
    !insertmacro MUI_UNPAGE_INSTFILES
 
52
    !insertmacro MUI_UNPAGE_FINISH
 
53
 
 
54
;-----------------------------------------
 
55
;Languages
 
56
 
 
57
    !insertmacro MUI_LANGUAGE "English"
 
58
 
 
59
;-----------------------------------------
 
60
;Installer Section
 
61
 
 
62
Section "Install"
 
63
 
 
64
    WriteRegStr HKLM "Software\Example" "Install_Dir" $INSTDIR
 
65
    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example" "DisplayIcon" $INSTDIR\uninstall.exe,0
 
66
    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example" "DisplayName" "Example"
 
67
    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example" "InstallLocation" $INSTDIR
 
68
    WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example" "NoModify" 1
 
69
    WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example" "NoRepair" 1
 
70
    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example" "UninstallString" $INSTDIR\uninstall.exe
 
71
 
 
72
    !insertmacro MUI_STARTMENU_WRITE_BEGIN "Application"
 
73
 
 
74
    CreateDirectory $SMPROGRAMS\$STARTMENU_FOLDER
 
75
    CreateShortCut $SMPROGRAMS\$STARTMENU_FOLDER\Uninstall Example.lnk $INSTDIR\uninstall.exe
 
76
 
 
77
    !insertmacro MUI_STARTMENU_WRITE_END
 
78
 
 
79
    SetOutPath $INSTDIR
 
80
 
 
81
    WriteUninstaller "uninstall.exe"
 
82
 
 
83
SectionEnd
 
84
 
 
85
;-----------------------------------------
 
86
;Uninstaller Section
 
87
 
 
88
Section "Uninstall"
 
89
 
 
90
    DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example"
 
91
    DeleteRegKey HKLM "Software\Example"
 
92
 
 
93
    !insertmacro MUI_STARTMENU_GETFOLDER "Application" $STARTMENU_FOLDER
 
94
 
 
95
    RMDir /r $SMPROGRAMS\$STARTMENU_FOLDER
 
96
 
 
97
    Delete $INSTDIR\uninstall.exe
 
98
 
 
99
    RMDir $INSTDIR
 
100
 
 
101
SectionEnd