Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
893 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
|
||
!include "MUI.nsh" | ||
!define MUI_FINISHPAGE_RUN "$INSTDIR\TreeSheets.exe" | ||
!define MUI_HEADERIMAGE | ||
!define MUI_HEADERIMAGE_BITMAP "TreeSheets\tsinst.bmp" | ||
/* | ||
doesn't show? | ||
!define MUI_HEADERIMAGE_UNBITMAP "TreeSheets\tsinst.bmp" | ||
*/ | ||
|
||
Name "TreeSheets" | ||
|
||
OutFile "Treesheets_Setup.exe" | ||
|
||
XPStyle on | ||
|
||
InstallDir $PROGRAMFILES\TreeSheets | ||
|
||
InstallDirRegKey HKLM "Software\TreeSheets" "Install_Dir" | ||
|
||
SetCompressor /SOLID lzma | ||
XPStyle on | ||
|
||
Page components #"" ba "" | ||
Page directory | ||
Page instfiles | ||
!insertmacro MUI_PAGE_FINISH | ||
|
||
UninstPage uninstConfirm | ||
UninstPage instfiles | ||
|
||
!insertmacro MUI_LANGUAGE "English" | ||
|
||
/* | ||
AddBrandingImage top 65 | ||
Function ba | ||
File TreeSheets\dot3.bmp | ||
SetBrandingImage TreeSheets\dot3.bmp | ||
FunctionEnd | ||
Function un.ba | ||
SetBrandingImage TreeSheets\dot3.bmp | ||
FunctionEnd | ||
*/ | ||
|
||
Function .onInit | ||
FindWindow $0 "TreeSheets" "" | ||
StrCmp $0 0 continueInstall | ||
MessageBox MB_ICONSTOP|MB_OK "TreeSheets is already running, please close it and try again." | ||
Abort | ||
continueInstall: | ||
FunctionEnd | ||
|
||
Function un.onInit | ||
FindWindow $0 "TreeSheets" "" | ||
StrCmp $0 0 continueInstall | ||
MessageBox MB_ICONSTOP|MB_OK "TreeSheets is still running, please close it and try again." | ||
Abort | ||
continueInstall: | ||
FunctionEnd | ||
|
||
Section "TreeSheets (required)" | ||
|
||
SectionIn RO | ||
|
||
SetOutPath $INSTDIR | ||
|
||
File /r "TS\*.*" | ||
|
||
WriteRegStr HKLM SOFTWARE\TreeSheets "Install_Dir" "$INSTDIR" | ||
|
||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TreeSheets" "DisplayName" "TreeSheets" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TreeSheets" "UninstallString" '"$INSTDIR\uninstall.exe"' | ||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TreeSheets" "NoModify" 1 | ||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TreeSheets" "NoRepair" 1 | ||
WriteUninstaller "uninstall.exe" | ||
|
||
SectionEnd | ||
|
||
/* | ||
Section "Visual C++ redistributable runtime" | ||
ExecWait '"$INSTDIR\redist\vcredist_x86.exe"' | ||
SectionEnd | ||
*/ | ||
|
||
Section "Start Menu Shortcuts" | ||
|
||
CreateDirectory "$SMPROGRAMS\TreeSheets" | ||
CreateDirectory "$APPDATA\TreeSheetsdbs\" | ||
|
||
SetOutPath "$INSTDIR" | ||
|
||
CreateShortCut "$SMPROGRAMS\TreeSheets\TreeSheets.lnk" "$INSTDIR\TreeSheets.exe" "" "$INSTDIR\TreeSheets.exe" 0 | ||
CreateShortCut "$SMPROGRAMS\TreeSheets\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 | ||
CreateShortCut "$SMPROGRAMS\TreeSheets\Documentation.lnk" "$INSTDIR\readme.html" "" "$INSTDIR\readme.html" 0 | ||
CreateShortCut "$SMPROGRAMS\TreeSheets\Examples.lnk" "$INSTDIR\Examples\" "" "$INSTDIR\Examples\" 0 | ||
|
||
SectionEnd | ||
|
||
Section "Uninstall" | ||
|
||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TreeSheets" | ||
DeleteRegKey HKLM SOFTWARE\TreeSheets | ||
|
||
RMDir /r "$SMPROGRAMS\TreeSheets" | ||
RMDir /r "$INSTDIR" | ||
|
||
SectionEnd |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Microsoft Visual C++ generated resource script. | ||
// | ||
#include "resource.h" | ||
|
||
#define APSTUDIO_READONLY_SYMBOLS | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Generated from the TEXTINCLUDE 2 resource. | ||
// | ||
#include "afxres.h" | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
#undef APSTUDIO_READONLY_SYMBOLS | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// English (U.S.) resources | ||
|
||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) | ||
#ifdef _WIN32 | ||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US | ||
#pragma code_page(1252) | ||
#endif //_WIN32 | ||
|
||
#ifdef APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// TEXTINCLUDE | ||
// | ||
|
||
1 TEXTINCLUDE | ||
BEGIN | ||
"resource.h\0" | ||
END | ||
|
||
2 TEXTINCLUDE | ||
BEGIN | ||
"#include ""afxres.h""\r\n" | ||
"\0" | ||
END | ||
|
||
3 TEXTINCLUDE | ||
BEGIN | ||
"\r\n" | ||
"\0" | ||
END | ||
|
||
#endif // APSTUDIO_INVOKED | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Icon | ||
// | ||
|
||
// Icon with lowest ID value placed first to ensure application icon | ||
// remains consistent on all systems. | ||
tsicon ICON "icon1.ico" | ||
|
||
//#include "wx/msw/wx.rc" | ||
|
||
#endif // English (U.S.) resources | ||
///////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
|
||
#ifndef APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Generated from the TEXTINCLUDE 3 resource. | ||
// | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
#endif // not APSTUDIO_INVOKED | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//{{NO_DEPENDENCIES}} | ||
// Microsoft Visual C++ generated include file. | ||
// Used by boar.rc | ||
// | ||
#define tsicon 101 | ||
|
||
// Next default values for new objects | ||
// | ||
#ifdef APSTUDIO_INVOKED | ||
#ifndef APSTUDIO_READONLY_SYMBOLS | ||
#define _APS_NEXT_RESOURCE_VALUE 102 | ||
#define _APS_NEXT_COMMAND_VALUE 40001 | ||
#define _APS_NEXT_CONTROL_VALUE 1001 | ||
#define _APS_NEXT_SYMED_VALUE 101 | ||
#endif | ||
#endif |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "boar", "treesheets.vcxproj", "{A4C3C894-079D-4C11-9AE1-CA41875A4AFC}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Win32 = Debug|Win32 | ||
Debug|x64 = Debug|x64 | ||
Release|Win32 = Release|Win32 | ||
Release|x64 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{A4C3C894-079D-4C11-9AE1-CA41875A4AFC}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{A4C3C894-079D-4C11-9AE1-CA41875A4AFC}.Debug|Win32.Build.0 = Debug|Win32 | ||
{A4C3C894-079D-4C11-9AE1-CA41875A4AFC}.Debug|x64.ActiveCfg = Debug|x64 | ||
{A4C3C894-079D-4C11-9AE1-CA41875A4AFC}.Debug|x64.Build.0 = Debug|x64 | ||
{A4C3C894-079D-4C11-9AE1-CA41875A4AFC}.Release|Win32.ActiveCfg = Release|Win32 | ||
{A4C3C894-079D-4C11-9AE1-CA41875A4AFC}.Release|Win32.Build.0 = Release|Win32 | ||
{A4C3C894-079D-4C11-9AE1-CA41875A4AFC}.Release|x64.ActiveCfg = Release|x64 | ||
{A4C3C894-079D-4C11-9AE1-CA41875A4AFC}.Release|x64.Build.0 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.