Browse Source

Old NSIS setup removed, CCNET configuration updated

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1753 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Christoph Wille 19 years ago
parent
commit
2d91c762d8
  1. 85
      setup/FileAssociations.nsh
  2. 224
      setup/SetupScript.nsi
  3. 479
      setup/SharpDevelop.wxs
  4. 3
      setup/buildSetup.bat
  5. 40
      setup/readme.txt
  6. BIN
      setup/wizard-image.bmp

85
setup/FileAssociations.nsh

@ -1,85 +0,0 @@ @@ -1,85 +0,0 @@
!ifndef _FILEASSOC_NSH_
!define _FILEASSOC_NSH_
!ifdef HAVE_SYSTEM_PLUGIN
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; RefreshShellIcons based on
;; http://nsis.sourceforge.net/archive/nsisweb.php?page=236&instances=0
;; by jerome tremblay - april 2003
!define SHCNE_ASSOCCHANGED 0x08000000
!define SHCNF_IDLIST 0
Function RefreshShellIcons
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v \
(${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
FunctionEnd
!define RefreshShellIcons "call RefreshShellIcons"
!else
!define RefreshShellIcons
!endif ; HAVE_SYSTEM_PLUGIN
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; parts from http://nsis.sourceforge.net/archive/viewpage.php?pageid=282 by Vytautas
;; Will add the registry entries to associate the given file extension with the
;; previously set (see CreateApplicationAssociation) appType. I.e. indicate to
;; open documents with this extension using the application specified by appType
;; registry entry. If the extension is currently associated with a different
;; appType, it will store the current association in the "prior_appType" key.
!macro CreateFileAssociation extension extType extDef exeCmd defIcon
!define skipBackupLbl "skipBackup_${__LINE__}"
push $0
; back up old value of extension (.ext) if it exists
ReadRegStr $0 HKCR "${extension}" "" ; read current value
StrCmp $0 "" "${skipBackupLbl}" ; nothing, then skip storing old value
StrCmp $0 "${extType}" "${skipBackupLbl}" ; only store if old is different than current
WriteRegStr HKCR "${extension}" "PreSD" "$0" ; actually store the old association
"${skipBackupLbl}:"
; Write File Associations
WriteRegStr HKCR "${extension}" "" "${extType}"
WriteRegStr HKCR "${extType}" "" "${extDef}"
WriteRegStr HKCR "${extType}\DefaultIcon" "" "${defIcon}"
WriteRegStr HKCR "${extType}\shell" "" "open"
WriteRegStr HKCR "${extType}\shell\open\command" "" '"${exeCmd}" "%1"'
; Force shell refresh (so icons updated as needed)
${RefreshShellIcons}
pop $0
!undef skipBackupLbl
!macroend
!define CreateFileAssociation "!insertmacro CreateFileAssociation"
; check if a file extension is associated with us and if so delete it
!macro RemoveFileAssociation extension extType
push $0
push $1
ReadRegStr $0 HKCR "${extension}" ""
StrCmp "$0" "${extType}" 0 Skip_Del_File_Assoc.${extension}
ReadRegStr $0 HKCR "${extension}" "PreSD"
StrCmp "$0" "" "DeleteFA.${extension}" 0 ; if "prior_value" is not empty
ReadRegStr $1 HKCR "$0" "" ; restore previous association
StrCmp "$1" "" DeleteFA.${extension} ; only if it is still valid (has something defined)
WriteRegStr HKCR "${extension}" "" $0 ; actually restore prior association
DeleteRegValue HKCR "${extension}" "PreSD" ; and remove stored value
DeleteRegKey HKCR "${extType}" ; remove the extension type we added
Goto Skip_Del_File_Assoc.${extension}
DeleteFA.${extension}: ; else delete file association key
DeleteRegKey HKCR "${extension}" ; actually remove file assoications
Skip_Del_File_Assoc.${extension}:
pop $1
pop $0
!macroend
!define RemoveFileAssociation "!insertmacro RemoveFileAssociation"
!endif ; _FILEASSOC_NSH_

224
setup/SetupScript.nsi

@ -1,224 +0,0 @@ @@ -1,224 +0,0 @@
!verbose 3
!define PRODUCT_NAME "SharpDevelop"
!define PRODUCT_VERSION "2.1 Preview"
!define PRODUCT_PUBLISHER "ic#code"
!define PRODUCT_WEB_SITE "http://www.icsharpcode.net/opensource/sd/"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\SharpDevelop.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\SharpDevelop2.1"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define MUI_WELCOMEFINISHPAGE_BITMAP "wizard-image.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "wizard-image.bmp"
BrandingText "© 2000-2006 ic#code, http://www.icsharpcode.net/"
SetCompressor lzma
CRCCheck on
; File Association defines
!include "FileAssociations.nsh"
; MUI 1.67 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE "..\doc\license.txt"
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN "$INSTDIR\bin\SharpDevelop.exe"
!define MUI_FINISHPAGE_RUN_TEXT "Run #develop"
!insertmacro MUI_PAGE_FINISH
; Uninstaller pages
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
; Language files
!insertmacro MUI_LANGUAGE "English"
; Reserve files
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Setup.exe"
InstallDir "$PROGRAMFILES\SharpDevelop\2.1\"
ShowInstDetails show
ShowUnInstDetails show
; .NET Framework check
; http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dnnetdep/html/redistdeploy1_1.asp
; Section "Detecting that the .NET Framework 2.0 is installed"
Function .onInit
ReadRegDWORD $R0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727" Install
StrCmp $R0 "" 0 CheckPreviousVersion
MessageBox MB_OK "Microsoft .NET Framework 2.0 was not found on this system.$\r$\n$\r$\nUnable to continue this installation."
Abort
CheckPreviousVersion:
ReadRegStr $R0 ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName"
StrCmp $R0 "" CheckOSVersion 0
MessageBox MB_OK "An old version of SharpDevelop is installed on this computer, please uninstall first.$\r$\n$\r$\nUnable to continue this installation."
Abort
CheckOSVersion:
Call IsSupportedWindowsVersion
Pop $R0
StrCmp $R0 "False" NoAbort 0
MessageBox MB_OK "The operating system you are using is not supported by SharpDevelop (95/98/ME/NT3.x/NT4.x)."
Abort
NoAbort:
FunctionEnd
Section "MainSection" SEC01
SetOverwrite ifnewer
; any file that would go in the root
SetOutPath "$INSTDIR"
SetOutPath "$INSTDIR\AddIns"
File /r /x .svn ..\AddIns\*.*
SetOutPath "$INSTDIR\bin"
File /r /x .svn ..\bin\*.*
SetOutPath "$INSTDIR\data"
File /r /x .svn ..\data\*.*
SetOutPath "$INSTDIR\doc"
File /r /x .svn ..\doc\*.*
CreateDirectory "$SMPROGRAMS\SharpDevelop 2.1"
CreateShortCut "$SMPROGRAMS\SharpDevelop 2.1\SharpDevelop 2.1.lnk" "$INSTDIR\bin\SharpDevelop.exe"
CreateShortCut "$DESKTOP\SharpDevelop 2.1.lnk" "$INSTDIR\bin\SharpDevelop.exe"
SectionEnd
Section -AdditionalIcons
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateShortCut "$SMPROGRAMS\SharpDevelop 2.1\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\SharpDevelop 2.1\Uninstall.lnk" "$INSTDIR\uninst.exe"
SectionEnd
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\bin\SharpDevelop.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\bin\SharpDevelop.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
; now finally call our post install tasks
SetOutPath "$INSTDIR\bin\setup"
; return code goes to $0 -> don't fail setup when there are Help2 problems
ExecWait '"$INSTDIR\bin\setup\PostInstallTasks.bat"' $0
SectionEnd
Section Uninstall
Delete "$DESKTOP\SharpDevelop 2.1.lnk"
Delete "$SMPROGRAMS\SharpDevelop 2.1\*.*"
; first, remove all dependencies from the GAC etc
SetOutPath "$INSTDIR\bin\setup"
ExecWait '"$INSTDIR\bin\setup\PreUninstallTasks.bat"' $0
; set OutPath to somewhere else because the current working directory cannot be deleted!
SetOutPath "$DESKTOP"
RMDir "$SMPROGRAMS\SharpDevelop 2.1"
RMDir /r "$INSTDIR"
; NOTE: this application configuration deletion is now deactivated post-1.0 releases
; RMDir /r "$APPDATA\.ICSharpCode"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
SectionEnd
; GetWindowsVersion, taken from NSIS help, modified for our purposes
Function IsSupportedWindowsVersion
Push $R0
Push $R1
ReadRegStr $R0 HKLM \
"SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
IfErrors 0 lbl_winnt
; we are not NT
ReadRegStr $R0 HKLM \
"SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber
StrCpy $R1 $R0 1
StrCmp $R1 '4' 0 lbl_error
StrCpy $R1 $R0 3
StrCmp $R1 '4.0' lbl_win32_95
StrCmp $R1 '4.9' lbl_win32_ME lbl_win32_98
lbl_win32_95:
StrCpy $R0 'False'
Goto lbl_done
lbl_win32_98:
StrCpy $R0 'False'
Goto lbl_done
lbl_win32_ME:
StrCpy $R0 'False'
Goto lbl_done
lbl_winnt:
StrCpy $R1 $R0 1
StrCmp $R1 '3' lbl_winnt_x
StrCmp $R1 '4' lbl_winnt_x
StrCpy $R1 $R0 3
StrCmp $R1 '5.0' lbl_winnt_2000
StrCmp $R1 '5.1' lbl_winnt_XP
StrCmp $R1 '5.2' lbl_winnt_2003 lbl_error
lbl_winnt_x:
StrCpy $R0 'False'
Goto lbl_done
lbl_winnt_2000:
Strcpy $R0 'True'
Goto lbl_done
lbl_winnt_XP:
Strcpy $R0 'True'
Goto lbl_done
lbl_winnt_2003:
Strcpy $R0 'True'
Goto lbl_done
lbl_error:
Strcpy $R0 'False'
lbl_done:
Pop $R1
Exch $R0
FunctionEnd

479
setup/SharpDevelop.wxs

@ -1,479 +0,0 @@ @@ -1,479 +0,0 @@
<?xml version='1.0'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
<Product
Id = 'A0AB2551-A579-42D3-9A90-D6424B3AC2CD'
Name = 'Sharp Develop'
Language = '1033'
Version = '1.0.0.0'
Manufacturer = 'ic#code, http://www.icsharpcode.net/'
>
<Package
Id = 'A0AB2551-A579-42D3-9A90-D6424B3AC2CD'
Description = '#Develop installer package'
Comments = 'This installs #Develop on your harddrive.'
InstallerVersion = '200'
Compressed = 'yes'
/>
<Property Id="AcceptLicense">No</Property>
<!--BUTTON TEXTS-->
<Property Id="Button_Back">&lt; &amp;Back</Property>
<Property Id="Button_Next">&amp;Next &gt;</Property>
<Property Id="Button_Finish">&amp;Finish</Property>
<Property Id="Button_OK">OK</Property>
<Property Id="Button_Cancel">Cancel</Property>
<Property Id="Button_Browse">Br&amp;owse...</Property>
<Property Id="Button_Exit">&amp;Exit</Property>
<Property Id="Button_Ignore">&amp;Ignore</Property>
<Property Id="Button_Install">&amp;Install</Property>
<Property Id="Button_Remove">&amp;Remove</Property>
<Property Id="Button_Repair">&amp;Repair</Property>
<Property Id="Button_Reset">&amp;Reset</Property>
<Property Id="Button_Resume">&amp;Resume</Property>
<Property Id="Button_Retry">&amp;Retry</Property>
<Property Id="Button_Return">&amp;Return</Property>
<Property Id="Button_Yes">&amp;Yes</Property>
<Property Id="Button_No">&amp;No</Property>
<!--END BUTTON TEXTS-->
<CustomAction Id="SET_TARGETDIR" Property="TARGETDIR" Value="[ProgramFilesFolder]\[ProductName]" Execute="firstSequence" />
<!-- INSTALL DESCRIPTION -->
<Media Id='1' Cabinet='contents.cab' EmbedCab='yes' />
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='5FCE1CEA-AF02-4C5A-8387-24AB28BD88B4' Name='bin'>
<Component Id='BASE_BIN_DIR' DiskId='1'>
<FileGroup Prefix = "BASE_BIN_DIR" src='../bin' />
</Component>
<Directory Id='0A3A9CF1-60A4-4A00-B0EF-480AE4FCCEC4' Name='nant'>
<Component Id='BASE_NANT_DIR' DiskId='1'>
<FileGroup Prefix = "BASE_NANT_DIR" src='../bin/nant' />
</Component>
</Directory>
<Directory Id='E57DF4C3-C972-46EA-A82B-D610FDD99158' Name='ndoc'>
<Component Id='BASE_NDOC_DIR' DiskId='1'>
<FileGroup Prefix = "BASE_NDOC_DIR" src='../bin/ndoc' />
</Component>
</Directory>
<Directory Id='D960B8A4-44AE-4705-A8E3-E76AB14EA40E' Name='nprof'>
<Component Id='BASE_NPROF_DIR' DiskId='1'>
<FileGroup Prefix = "BASE_NPROF_DIR" src='../bin/nprof' />
</Component>
</Directory>
<Directory Id='5E5E378B-A842-439B-A2C1-5F944D7529AA' Name='tools'>
<Component Id='BASE_TOOLS_DIR' DiskId='1'>
<FileGroup Prefix = "BASE_TOOLS_DIR" src='../bin/tools' />
</Component>
</Directory>
<Directory Id='2AB643E0-55AD-469D-964A-9944D5808CC0' Name='wix'>
<Component Id='BASE_WIX_DIR' DiskId='1'>
<FileGroup Prefix = "BASE_WIX_DIR" src='../bin/wix' />
</Component>
</Directory>
</Directory>
<Directory Id='F6B07878-64C7-4CBD-875C-DE3584A9FF07' Name='AddIns'>
<Component Id='ADDIN_DIR' DiskId='1'>
<FileGroup Prefix = "b" src='../AddIns' />
<FileGroup Prefix = "c" src='../AddIns/AddIns/BackendBindings' />
<FileGroup Prefix = "d" src='../AddIns/AddIns/DisplayBindings' />
<FileGroup Prefix = "e" src='../AddIns/AddIns/Misc/AddinScout' />
<FileGroup Prefix = "f" src='../AddIns/AddIns/Misc/AssemblyAnalyser' />
<FileGroup Prefix = "g" src='../AddIns/AddIns/Misc/FiletypeRegisterer' />
<FileGroup Prefix = "h" src='../AddIns/AddIns/Misc/HighlightingEditor' />
<FileGroup Prefix = "i" src='../AddIns/AddIns/Misc/NUnitPad' />
<FileGroup Prefix = "j" src='../AddIns/AddIns/Misc/ProjectImporterExporter' />
<FileGroup Prefix = "k" src='../AddIns/AddIns/Misc/RegExpTk' />
<FileGroup Prefix = "l" src='../AddIns/AddIns/Misc/SharpQuery' />
<FileGroup Prefix = "m" src='../AddIns/AddIns/Misc/StartPage' />
<FileGroup Prefix = "n" src='../AddIns/AddIns/Wizards' />
</Component>
</Directory>
</Directory>
<Feature Id='MyFeature' Title='Required Files' Level='1'>
<ComponentRef Id='BASE_BIN_DIR' />
<ComponentRef Id='BASE_NANT_DIR' />
<ComponentRef Id='BASE_NDOC_DIR' />
<ComponentRef Id='BASE_NPROF_DIR' />
<ComponentRef Id='BASE_TOOLS_DIR' />
<ComponentRef Id='BASE_WIX_DIR' />
<ComponentRef Id='ADDIN_DIR' />
</Feature>
<!-- END INSTALL DESCRIPTION -->
<UI>
<!-- FONT DEFINITION -->
<Property Id="TitleFont">{&amp;DlgFontBold8}</Property>
<Property Id="BigFont">{&amp;VerdanaBold13}</Property>
<Property Id="DefaultUIFont">DlgFont8</Property>
<TextStyle Id="DlgFont8" FaceName="Tahoma" Size="8" />
<TextStyle Id="DlgFontBold8" FaceName="Tahoma" Size="8" Bold="yes" />
<TextStyle Id="VerdanaBold13" FaceName="Verdana" Size="13" Bold="yes" />
<!-- END FONT DEFINITION -->
<!-- DIALOG DEFINITION -->
<Dialog Id="WelcomeDialog" Width="370" Height="270" Title="[ProductName] [Setup]">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[Button_Next]">
<Publish Event="NewDialog" Value="ViewLicenseAgreement">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="[Button_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDialog">1</Publish>
</Control>
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" FixedSize="yes" TabSkip="no" Text="dialog.bmp" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="[Button_Back]" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="374" Height="0" />
<Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="90" Transparent="yes" NoPrefix="yes">
<Text>The installer will guide you through the steps required to install [ProductName] on your computer.</Text>
</Control>
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>[BigFont]Welcome to the [ProductName] installation</Text>
</Control>
</Dialog>
<Dialog Id="ViewLicenseAgreement" Width="370" Height="270" Title="[ProductName]">
<Control Id="Buttons" Type="RadioButtonGroup" X="20" Y="187" Width="330" Height="40" Property="AcceptLicense" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="[Button_Back]">
<Publish Event="NewDialog" Value="WelcomeDialog">1</Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[Button_Next]">
<Publish Event="NewDialog" Value="SelectFolderDialog">AcceptLicense = "Yes"</Publish>
<Condition Action="disable">AcceptLicense &lt;&gt; "Yes"</Condition>
<Condition Action="enable">AcceptLicense = "Yes"</Condition>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="[Button_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDialog">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374" Height="44" FixedSize="yes" TabSkip="no" Text="banner.bmp" />
<Control Id="AgreementText" Type="ScrollableText" X="20" Y="60" Width="330" Height="120" Sunken="yes" TabSkip="no">
<Text src="../doc/license.rtf"/>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
<Text>Please read the following license agreement carefully!</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>[TitleFont]End-User License Agreement</Text>
</Control>
</Dialog>
<RadioGroup Property="AcceptLicense">
<RadioButton Text="I &amp;accept the terms in the License Agreement" X="5" Y="0" Width="300" Height="15">Yes</RadioButton>
<RadioButton Text="I &amp;do not accept the terms in the License Agreement" X="5" Y="20" Width="300" Height="15">No</RadioButton>
</RadioGroup>
<Dialog Id="SelectFolderDialog" Width="370" Height="270" Title="[ProductName]" TrackDiskSpace="yes">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[Button_Next]">
<Publish Event="NewDialog" Value="VerifyReadyDialog">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="[Button_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDialog">1</Publish>
</Control>
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="[Button_Back]">
<Publish Event="NewDialog" Value="ViewLicenseAgreement">1</Publish>
</Control>
<Control Id="FolderEdit" Type="PathEdit" X="18" Y="126" Width="252" Height="18" Property="TARGETDIR" Sunken="yes" />
<Control Id="Browse" Type="PushButton" X="276" Y="126" Width="90" Height="18" Text="[Button_Browse]">
<Publish Property="_BrowseProperty" Value="TARGETDIR">1</Publish>
<Publish Event="SpawnDialog" Value="BrowseDialog">1</Publish>
</Control>
<Control Id="Text" Type="Text" X="25" Y="70" Width="320" Height="40">
<Text>To install in this folder, click "Next". To install to a different folder, enter it below or click "Browse".</Text>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374" Height="44" FixedSize="yes" Text="banner.bmp" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
<Text>This is the folder where [ProductName] will be installed.</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>[TitleFont]Select Installation Folder</Text>
</Control>
<Control Id="FolderLabel" Type="Text" X="20" Y="114" Width="348" Height="12" Text="&amp;Folder:" />
</Dialog>
<Dialog Id="VerifyReadyDialog" Width="370" Height="270" Title="[ProductName]" TrackDiskSpace="yes">
<Control Id="Install" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[Button_Install]">
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace &lt;&gt; 1</Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="[Button_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDialog">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374" Height="44" FixedSize="yes" TabSkip="no" Text="banner.bmp" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="[Button_Back]">
<!-- <Publish Event="NewDialog" Value="AdminInstallPointDlg">InstallMode = "Server Image"</Publish>
<Publish Event="NewDialog" Value="CustomizeDlg">InstallMode = "Custom" OR InstallMode = "Change"</Publish>
<Publish Event="NewDialog" Value="MaintenanceTypeDlg">InstallMode = "Repair"</Publish> InstallMode = "Typical" OR InstallMode = "Complete" -->
<Publish Event="NewDialog" Value="SelectFolderDialog"></Publish>
</Control>
<Control Id="Text" Type="Text" X="25" Y="70" Width="320" Height="80">
<Text>Click Install to begin the installation. If you want to review or change any of your installation settings, click Back. Click Cancel to exit the wizard.</Text>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
<Text>The [Wizard] is ready to begin the [InstallMode] installation</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>[TitleFont]Ready to Install</Text>
</Control>
</Dialog>
<Dialog Id="ProgressDialog" Width="370" Height="270" Title="[ProductName]" Modeless="yes">
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="[Button_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDialog">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374" Height="44" FixedSize="yes" TabSkip="no" Text="banner.bmp" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="[Button_Back]" />
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Disabled="yes" Text="[Button_Next]" />
<Control Id="Text" Type="Text" X="35" Y="65" Width="300" Height="20">
<Text>Please wait while [ProductName] is installed.</Text>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="370" Height="0" />
<Control Id="Title" Type="Text" X="20" Y="15" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>Install [ProductName]</Text>
</Control>
<Control Id="ActionText" Type="Text" X="70" Y="100" Width="265" Height="10">
<Subscribe Event="ActionText" Attribute="Text" />
</Control>
<Control Id="ProgressBar" Type="ProgressBar" X="35" Y="115" Width="300" Height="10" ProgressBlocks="yes" Text="Progress done">
<Subscribe Event="SetProgress" Attribute="Progress" />
</Control>
<Control Id="StatusLabel" Type="Text" X="35" Y="100" Width="35" Height="10" Text="Status:" />
</Dialog>
<Dialog Id="CancelDialog" Width="260" Height="85" Title="[ProductName] [Setup]" NoMinimize="yes">
<Control Id="Text" Type="Text" X="48" Y="15" Width="194" Height="30">
<Text>Are you sure you want to cancel [ProductName] installation?</Text>
</Control>
<Control Id="Yes" Type="PushButton" X="72" Y="57" Width="56" Height="17" Text="[Button_Yes]">
<Publish Event="EndDialog" Value="Exit">1</Publish>
</Control>
<Control Id="No" Type="PushButton" X="132" Y="57" Width="56" Height="17" Default="yes" Cancel="yes" Text="[Button_No]">
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
<Control Id="Icon" Type="Icon" X="15" Y="15" Width="24" Height="24" FixedSize="yes" IconSize="32" Text="info.bmp" />
</Dialog>
<Dialog Id="BrowseDialog" Width="370" Height="270" Title="[ProductName] [Setup]" NoMinimize="yes">
<Control Id="PathEdit" Type="PathEdit" X="84" Y="202" Width="261" Height="18" Property="_BrowseProperty" Indirect="yes" />
<Control Id="OK" Type="PushButton" X="304" Y="243" Width="56" Height="17" Default="yes" Text="[Button_OK]">
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="240" Y="243" Width="56" Height="17" Cancel="yes" Text="[Button_Cancel]">
<Publish Event="Reset" Value="0">1</Publish>
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
<Control Id="ComboLabel" Type="Text" X="25" Y="58" Width="44" Height="10" TabSkip="no" Text="&amp;Look in:" />
<Control Id="DirectoryCombo" Type="DirectoryCombo" X="70" Y="55" Width="220" Height="80" Property="_BrowseProperty" Indirect="yes" Fixed="yes" Remote="yes">
<Subscribe Event="IgnoreChange" Attribute="IgnoreChange" />
</Control>
<Control Id="Up" Type="PushButton" X="298" Y="55" Width="19" Height="19" Icon="yes" FixedSize="yes" IconSize="16" Text="up.bmp">
<Publish Event="DirectoryListUp" Value="0">1</Publish>
</Control>
<Control Id="NewFolder" Type="PushButton" X="325" Y="55" Width="19" Height="19" Icon="yes" FixedSize="yes" IconSize="16" Text="new.bmp">
<Publish Event="DirectoryListNew" Value="0">1</Publish>
</Control>
<Control Id="DirectoryList" Type="DirectoryList" X="25" Y="83" Width="320" Height="110" Property="_BrowseProperty" Sunken="yes" Indirect="yes" TabSkip="no" />
<Control Id="PathLabel" Type="Text" X="25" Y="205" Width="59" Height="10" TabSkip="no" Text="&amp;Folder name:" />
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374" Height="44" FixedSize="yes" TabSkip="no" Text="banner.bmp" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
<Text>Browse to the destination folder</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>[TitleFont]Change current destination folder</Text>
</Control>
</Dialog>
<Dialog Id="UserExit" Width="370" Height="270" Title="[ProductName] [Setup]">
<Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="[Button_Finish]">
<Publish Event="EndDialog" Value="Exit">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Text="[Button_Cancel]" />
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" FixedSize="yes" TabSkip="no" Text="dialog.bmp" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="[Button_Back]" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="374" Height="0" />
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>[BigFont][ProductName] installation was interrupted</Text>
</Control>
<Control Id="Description1" Type="Text" X="135" Y="70" Width="220" Height="40" Transparent="yes" NoPrefix="yes">
<Text>The installation was interrupted before [ProductName] could be installed. You need to restart the installer to try again.</Text>
</Control>
<Control Id="Description2" Type="Text" X="135" Y="215" Width="220" Height="20" Transparent="yes" NoPrefix="yes">
<Text>Click the Finish button to exit.</Text>
</Control>
</Dialog>
<Dialog Id="ExitDialog" Width="370" Height="270" Title="[ProductName]" NoMinimize="yes">
<Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="[Button_Finish]">
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Text="[Button_Cancel]" />
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" FixedSize="yes" TabSkip="no" Text="dialog.bmp" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="[Button_Back]" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="374" Height="0" />
<Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="20" Transparent="yes" NoPrefix="yes">
<Text>Click the Finish button to exit.</Text>
</Control>
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>[BigFont]Completing the [ProductName] installation.</Text>
</Control>
</Dialog>
<Dialog Id="OutOfDiskDlg" Width="370" Height="270" Title="[ProductName] [Setup]" NoMinimize="yes">
<Control Id="OK" Type="PushButton" X="304" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="[Button_OK]">
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374" Height="44" FixedSize="yes" TabSkip="no" Text="banner.bmp" />
<Control Id="Text" Type="Text" X="20" Y="53" Width="330" Height="40">
<Text>The highlighted volumes do not have enough disk space available for the currently selected features. You can either remove some files from the highlighted volumes, or choose to install less features onto local drive(s), or select different destination drive(s).</Text>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="20" Y="20" Width="280" Height="20" Transparent="yes" NoPrefix="yes">
<Text>Disk space required for the installation exceeds available disk space.</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>[TitleFont]Out of Disk Space</Text>
</Control>
<Control Id="VolumeList" Type="VolumeCostList" X="20" Y="100" Width="330" Height="120" Sunken="yes" Fixed="yes" Remote="yes">
<Text>{120}{70}{70}{70}{70}</Text>
</Control>
</Dialog>
<Dialog Id="OutOfRbDiskDlg" Width="370" Height="270" Title="[ProductName] [Setup]" NoMinimize="yes">
<Control Id="No" Type="PushButton" X="304" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="[Button_No]">
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
<Control Id="Yes" Type="PushButton" X="240" Y="243" Width="56" Height="17" Text="[Button_Yes]">
<Publish Event="EnableRollback" Value="False">1</Publish>
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374" Height="44" FixedSize="yes" TabSkip="no" Text="banner.bmp" />
<Control Id="Text" Type="Text" X="20" Y="53" Width="330" Height="40">
<Text>The highlighted volumes do not have enough disk space available for the currently selected features. You can either remove some files from the highlighted volumes, or choose to install less features onto local drive(s), or select different destination drive(s).</Text>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="20" Y="20" Width="280" Height="20" Transparent="yes" NoPrefix="yes">
<Text>Disk space required for the installation exceeds available disk space.</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>[TitleFont]Out of Disk Space</Text>
</Control>
<Control Id="VolumeList" Type="VolumeCostList" X="20" Y="140" Width="330" Height="80" Sunken="yes" Fixed="yes" Remote="yes" ShowRollbackCost="yes">
<Text>{120}{70}{70}{70}{70}</Text>
</Control>
<Control Id="Text2" Type="Text" X="20" Y="94" Width="330" Height="40">
<Text>Alternatively, you may choose to disable the installer's rollback functionality. This allows the installer to restore your computer's original state should the installation be interrupted in any way. Click Yes if you wish to take the risk to disable rollback.</Text>
</Control>
</Dialog>
<Dialog Id="FatalError" Width="370" Height="270" Title="[ProductName]" NoMinimize="yes">
<Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="[Button_Finish]">
<Publish Event="EndDialog" Value="Exit">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Text="[Button_Cancel]" />
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" FixedSize="yes" TabSkip="no" Text="dialog.bmp" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="[Button_Back]" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="374" Height="0" />
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>[BigFont][ProductName] ended prematurely</Text>
</Control>
<Control Id="Description1" Type="Text" X="135" Y="70" Width="220" Height="40" Transparent="yes" NoPrefix="yes">
<Text>[ProductName] setup ended prematurely because of an error. Your system has not been modified. To install this program at a later time, please run the installation again.</Text>
</Control>
<Control Id="Description2" Type="Text" X="135" Y="115" Width="220" Height="20" Transparent="yes" NoPrefix="yes">
<Text>Click the Finish button to exit the.</Text>
</Control>
</Dialog>
<!-- END DIALOG DEFINITION -->
<InstallUISequence>
<Custom Action="SET_TARGETDIR" Before="CostInitialize">TARGETDIR=""</Custom>
<Show Dialog="WelcomeDialog" After="MigrateFeatureStates" />
<Show Dialog="ProgressDialog" After="WelcomeDialog" />
<Show Dialog="UserExit" OnExit="cancel" />
<Show Dialog="ExitDialog" OnExit="success" />
<Show Dialog="FatalError" OnExit="error" />
</InstallUISequence>
<AdminUISequence>
<Custom Action="SET_TARGETDIR" Before="CostInitialize">TARGETDIR=""</Custom>
<Show Dialog="WelcomeDialog" After="CostFinalize" />
<Show Dialog="ProgressDialog" After="WelcomeDialog" />
<Show Dialog="UserExit" OnExit="cancel" />
<Show Dialog="ExitDialog" OnExit="success" />
<Show Dialog="FatalError" OnExit="error" />
</AdminUISequence>
</UI>
<AdminExecuteSequence>
</AdminExecuteSequence>
<InstallExecuteSequence>
</InstallExecuteSequence>
<Binary Id="dialog.bmp" src = "../data/resources/InstallerBitmaps/default-dialog.bmp" />
<Binary Id="banner.bmp" src = "../data/resources/InstallerBitmaps/default-banner.bmp" />
<Binary Id="info.bmp" src = "../data/resources/InstallerBitmaps/info.bmp" />
<Binary Id="up.bmp" src = "../data/resources/InstallerBitmaps/up.bmp" />
<Binary Id="new.bmp" src = "../data/resources/InstallerBitmaps/new.bmp" />
</Product>
</Wix>

3
setup/buildSetup.bat

@ -1,3 +0,0 @@ @@ -1,3 +0,0 @@
del "Setup.exe"
"%PROGRAMFILES%\NSIS\makensis" /V2 "SetupScript.nsi"
@IF %ERRORLEVEL% NEQ 0 PAUSE

40
setup/readme.txt

@ -1,40 +0,0 @@ @@ -1,40 +0,0 @@
The setup program is maintained by Christoph Wille, christophw@icsharpcode.net
Information
Setup uses NSIS 2.08 Release - http://nsis.sourceforge.net
CHANGELOG
4/13/2005:
* Fixed installation in path with spaces.
4/12/2005:
* SetOutputPath
* Exclusion of directories
10/07/2004:
* Batch files replaced with WSH scripts
9/13/2004:
* bin\setup directory created, batch files added
* gacutil2 source code added
* setup changed to call post & pre batch files, disabled app data deletion
6/23/2004:
* http://abiword.pchasm.org/source/cvs/abiword-cvs/abi/src/pkg/win/setup/NSISv2/abi_util_fileassoc.nsh added
* abi_util_fileassoc.nsh modified (now named fileassoc.nsh) to allow icons per extension in CreateFileAssociation
* modified fileassoc.nsh to match file type registerer in Tools / Options
* Compressor set to lzma in Fidalgo.nsi
2/18/2004: changes for .99 and NSIS 2.0 Release
8/25/2003: added check to .onInit for installed previous version (protect us from
partially overwriting previous installations)
8/23/2003: added check to .onInit for installed .NET 1.1 Framework

BIN
setup/wizard-image.bmp

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

Loading…
Cancel
Save