Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
cmake /
Modules /
[ HOME SHELL ]
Name
Size
Permission
Action
CMakeAddFortranSubdirectory
[ DIR ]
drwxr-xr-x
Compiler
[ DIR ]
drwxr-xr-x
CompilerId
[ DIR ]
drwxr-xr-x
FindCUDA
[ DIR ]
drwxr-xr-x
FortranCInterface
[ DIR ]
drwxr-xr-x
IntelVSImplicitPath
[ DIR ]
drwxr-xr-x
Platform
[ DIR ]
drwxr-xr-x
AddFileDependencies.cmake
1002
B
-rw-r--r--
AutomocInfo.cmake.in
675
B
-rw-r--r--
BasicConfigVersion-AnyNewerVer...
1.34
KB
-rw-r--r--
BasicConfigVersion-ExactVersio...
1.8
KB
-rw-r--r--
BasicConfigVersion-SameMajorVe...
1.69
KB
-rw-r--r--
BundleUtilities.cmake
28.62
KB
-rw-r--r--
CMake.cmake
772
B
-rw-r--r--
CMakeASM-ATTInformation.cmake
1020
B
-rw-r--r--
CMakeASMCompiler.cmake.in
545
B
-rw-r--r--
CMakeASMInformation.cmake
5.28
KB
-rw-r--r--
CMakeASM_MASMInformation.cmake
903
B
-rw-r--r--
CMakeASM_NASMInformation.cmake
1.45
KB
-rw-r--r--
CMakeAddFortranSubdirectory.cm...
7.73
KB
-rw-r--r--
CMakeAddNewLanguage.txt
1.49
KB
-rw-r--r--
CMakeBackwardCompatibilityC.cm...
3.38
KB
-rw-r--r--
CMakeBackwardCompatibilityCXX....
2.12
KB
-rw-r--r--
CMakeBorlandFindMake.cmake
736
B
-rw-r--r--
CMakeBuildSettings.cmake.in
681
B
-rw-r--r--
CMakeCCompiler.cmake.in
1.85
KB
-rw-r--r--
CMakeCCompilerABI.c
572
B
-rw-r--r--
CMakeCCompilerId.c.in
7.41
KB
-rw-r--r--
CMakeCInformation.cmake
7.56
KB
-rw-r--r--
CMakeCXXCompiler.cmake.in
2.01
KB
-rw-r--r--
CMakeCXXCompilerABI.cpp
450
B
-rw-r--r--
CMakeCXXCompilerId.cpp.in
7.32
KB
-rw-r--r--
CMakeCXXInformation.cmake
10.41
KB
-rw-r--r--
CMakeClDeps.cmake
1.64
KB
-rw-r--r--
CMakeCommonLanguageInclude.cma...
5.11
KB
-rw-r--r--
CMakeCompilerABI.h
1.18
KB
-rw-r--r--
CMakeConfigurableFile.in
35
B
-rw-r--r--
CMakeDependentOption.cmake
2.03
KB
-rw-r--r--
CMakeDetermineASM-ATTCompiler....
859
B
-rw-r--r--
CMakeDetermineASMCompiler.cmak...
7.24
KB
-rw-r--r--
CMakeDetermineASM_MASMCompiler...
942
B
-rw-r--r--
CMakeDetermineASM_NASMCompiler...
1011
B
-rw-r--r--
CMakeDetermineCCompiler.cmake
7.23
KB
-rw-r--r--
CMakeDetermineCXXCompiler.cmak...
7.31
KB
-rw-r--r--
CMakeDetermineCompiler.cmake
3.37
KB
-rw-r--r--
CMakeDetermineCompilerABI.cmak...
5.9
KB
-rw-r--r--
CMakeDetermineCompilerId.cmake
19.06
KB
-rw-r--r--
CMakeDetermineFortranCompiler....
9.94
KB
-rw-r--r--
CMakeDetermineJavaCompiler.cma...
4.13
KB
-rw-r--r--
CMakeDetermineRCCompiler.cmake
2.52
KB
-rw-r--r--
CMakeDetermineSystem.cmake
7.41
KB
-rw-r--r--
CMakeDetermineVSServicePack.cm...
6.6
KB
-rw-r--r--
CMakeExpandImportedTargets.cma...
5.77
KB
-rw-r--r--
CMakeExportBuildSettings.cmake
1.67
KB
-rw-r--r--
CMakeExtraGeneratorDetermineCo...
4.94
KB
-rw-r--r--
CMakeFindBinUtils.cmake
2.76
KB
-rw-r--r--
CMakeFindCodeBlocks.cmake
1.06
KB
-rw-r--r--
CMakeFindEclipseCDT4.cmake
4.65
KB
-rw-r--r--
CMakeFindFrameworks.cmake
1.16
KB
-rw-r--r--
CMakeFindKDevelop3.cmake
934
B
-rw-r--r--
CMakeFindPackageMode.cmake
6.2
KB
-rw-r--r--
CMakeFindWMake.cmake
737
B
-rw-r--r--
CMakeFindXCode.cmake
720
B
-rw-r--r--
CMakeForceCompiler.cmake
2.98
KB
-rw-r--r--
CMakeFortranCompiler.cmake.in
2.09
KB
-rw-r--r--
CMakeFortranCompilerABI.F
1023
B
-rw-r--r--
CMakeFortranCompilerId.F.in
4.38
KB
-rw-r--r--
CMakeFortranInformation.cmake
9.62
KB
-rw-r--r--
CMakeGenericSystem.cmake
6.66
KB
-rw-r--r--
CMakeGraphVizOptions.cmake
3
KB
-rw-r--r--
CMakeImportBuildSettings.cmake
1008
B
-rw-r--r--
CMakeJOMFindMake.cmake
736
B
-rw-r--r--
CMakeJavaCompiler.cmake.in
538
B
-rw-r--r--
CMakeJavaInformation.cmake
2.19
KB
-rw-r--r--
CMakeMSYSFindMake.cmake
954
B
-rw-r--r--
CMakeMinGWFindMake.cmake
1.24
KB
-rw-r--r--
CMakeNMakeFindMake.cmake
738
B
-rw-r--r--
CMakeNinjaFindMake.cmake
740
B
-rw-r--r--
CMakePackageConfigHelpers.cmak...
11.29
KB
-rw-r--r--
CMakeParseArguments.cmake
5.65
KB
-rw-r--r--
CMakeParseImplicitLinkInfo.cma...
6.88
KB
-rw-r--r--
CMakePlatformId.h.in
4.29
KB
-rw-r--r--
CMakePrintHelpers.cmake
4.32
KB
-rw-r--r--
CMakePrintSystemInformation.cm...
2.38
KB
-rw-r--r--
CMakePushCheckState.cmake
3.33
KB
-rw-r--r--
CMakeRCCompiler.cmake.in
267
B
-rw-r--r--
CMakeRCInformation.cmake
1.88
KB
-rw-r--r--
CMakeSystem.cmake.in
537
B
-rw-r--r--
CMakeSystemSpecificInformation...
2.79
KB
-rw-r--r--
CMakeTestASM-ATTCompiler.cmake
992
B
-rw-r--r--
CMakeTestASMCompiler.cmake
1.3
KB
-rw-r--r--
CMakeTestASM_MASMCompiler.cmak...
1021
B
-rw-r--r--
CMakeTestASM_NASMCompiler.cmak...
989
B
-rw-r--r--
CMakeTestCCompiler.cmake
3.52
KB
-rw-r--r--
CMakeTestCXXCompiler.cmake
3.41
KB
-rw-r--r--
CMakeTestCompilerCommon.cmake
894
B
-rw-r--r--
CMakeTestFortranCompiler.cmake
4.76
KB
-rw-r--r--
CMakeTestGNU.c
175
B
-rw-r--r--
CMakeTestJavaCompiler.cmake
950
B
-rw-r--r--
CMakeTestRCCompiler.cmake
1.01
KB
-rw-r--r--
CMakeTestWatcomVersion.c
20
B
-rw-r--r--
CMakeUnixFindMake.cmake
1.02
KB
-rw-r--r--
CMakeVS10FindMake.cmake
2.65
KB
-rw-r--r--
CMakeVS11FindMake.cmake
2.61
KB
-rw-r--r--
CMakeVS12FindMake.cmake
1.09
KB
-rw-r--r--
CMakeVS6BackwardCompatibility....
1.4
KB
-rw-r--r--
CMakeVS6FindMake.cmake
1
KB
-rw-r--r--
CMakeVS71FindMake.cmake
1.06
KB
-rw-r--r--
CMakeVS7BackwardCompatibility....
1.4
KB
-rw-r--r--
CMakeVS7FindMake.cmake
1021
B
-rw-r--r--
CMakeVS8FindMake.cmake
1.45
KB
-rw-r--r--
CMakeVS9FindMake.cmake
1.76
KB
-rw-r--r--
CMakeVerifyManifest.cmake
4.16
KB
-rw-r--r--
CPack.DS_Store.in
12
KB
-rw-r--r--
CPack.Description.plist.in
438
B
-rw-r--r--
CPack.Info.plist.in
1.1
KB
-rw-r--r--
CPack.OSXScriptLauncher.in
28.9
KB
-rw-r--r--
CPack.OSXScriptLauncher.rsrc.i...
362
B
-rw-r--r--
CPack.OSXX11.Info.plist.in
1.57
KB
-rw-r--r--
CPack.OSXX11.main.scpt.in
1.83
KB
-rw-r--r--
CPack.RuntimeScript.in
1.85
KB
-rw-r--r--
CPack.STGZ_Header.sh.in
3.76
KB
-rw-r--r--
CPack.VolumeIcon.icns.in
44.67
KB
-rw-r--r--
CPack.background.png.in
45.97
KB
-rw-r--r--
CPack.cmake
22.86
KB
-rw-r--r--
CPack.distribution.dist.in
448
B
-rw-r--r--
CPackBundle.cmake
1.77
KB
-rw-r--r--
CPackComponent.cmake
20.24
KB
-rw-r--r--
CPackCygwin.cmake
1.13
KB
-rw-r--r--
CPackDMG.cmake
2.66
KB
-rw-r--r--
CPackDeb.cmake
15.34
KB
-rw-r--r--
CPackNSIS.cmake
4.57
KB
-rw-r--r--
CPackPackageMaker.cmake
1.56
KB
-rw-r--r--
CPackRPM.cmake
42.01
KB
-rw-r--r--
CPackWIX.cmake
4.32
KB
-rw-r--r--
CPackZIP.cmake
1.42
KB
-rw-r--r--
CTest.cmake
9.7
KB
-rw-r--r--
CTestScriptMode.cmake
989
B
-rw-r--r--
CTestTargets.cmake
3.42
KB
-rw-r--r--
CTestUseLaunchers.cmake
2.7
KB
-rw-r--r--
CheckCCompilerFlag.cmake
2.9
KB
-rw-r--r--
CheckCSourceCompiles.cmake
3.45
KB
-rw-r--r--
CheckCSourceRuns.cmake
3.44
KB
-rw-r--r--
CheckCXXCompilerFlag.cmake
3.07
KB
-rw-r--r--
CheckCXXSourceCompiles.cmake
3.48
KB
-rw-r--r--
CheckCXXSourceRuns.cmake
3.46
KB
-rw-r--r--
CheckCXXSymbolExists.cmake
1.94
KB
-rw-r--r--
CheckForPthreads.c
701
B
-rw-r--r--
CheckFortranFunctionExists.cma...
2.49
KB
-rw-r--r--
CheckFunctionExists.c
380
B
-rw-r--r--
CheckFunctionExists.cmake
2.97
KB
-rw-r--r--
CheckIncludeFile.c.in
130
B
-rw-r--r--
CheckIncludeFile.cmake
3.03
KB
-rw-r--r--
CheckIncludeFile.cxx.in
65
B
-rw-r--r--
CheckIncludeFileCXX.cmake
3.05
KB
-rw-r--r--
CheckIncludeFiles.cmake
3.47
KB
-rw-r--r--
CheckLanguage.cmake
2.64
KB
-rw-r--r--
CheckLibraryExists.cmake
2.79
KB
-rw-r--r--
CheckLibraryExists.lists.in
298
B
-rw-r--r--
CheckPrototypeDefinition.c.in
514
B
-rw-r--r--
CheckPrototypeDefinition.cmake
4.04
KB
-rw-r--r--
CheckSizeOf.cmake
813
B
-rw-r--r--
CheckStructHasMember.cmake
1.77
KB
-rw-r--r--
CheckSymbolExists.cmake
4.16
KB
-rw-r--r--
CheckTypeSize.c.in
801
B
-rw-r--r--
CheckTypeSize.cmake
7.47
KB
-rw-r--r--
CheckTypeSizeMap.cmake.in
31
B
-rw-r--r--
CheckVariableExists.c
363
B
-rw-r--r--
CheckVariableExists.cmake
2.47
KB
-rw-r--r--
Dart.cmake
4.06
KB
-rw-r--r--
DartConfiguration.tcl.in
2.74
KB
-rw-r--r--
DeployQt4.cmake
13.19
KB
-rw-r--r--
Documentation.cmake
1.45
KB
-rw-r--r--
DummyCXXFile.cxx
27
B
-rw-r--r--
ExternalData.cmake
29.97
KB
-rw-r--r--
ExternalData_config.cmake.in
268
B
-rw-r--r--
ExternalProject.cmake
61.48
KB
-rw-r--r--
FLTKCompatibility.cmake
635
B
-rw-r--r--
FeatureSummary.cmake
19.38
KB
-rw-r--r--
FindALSA.cmake
2.14
KB
-rw-r--r--
FindASPELL.cmake
1.47
KB
-rw-r--r--
FindAVIFile.cmake
1.74
KB
-rw-r--r--
FindArmadillo.cmake
3.82
KB
-rw-r--r--
FindBISON.cmake
7.11
KB
-rw-r--r--
FindBLAS.cmake
16.39
KB
-rw-r--r--
FindBZip2.cmake
2.38
KB
-rw-r--r--
FindBoost.cmake
48.76
KB
-rw-r--r--
FindBullet.cmake
3.18
KB
-rw-r--r--
FindCABLE.cmake
2.84
KB
-rw-r--r--
FindCUDA.cmake
65.86
KB
-rw-r--r--
FindCURL.cmake
2.29
KB
-rw-r--r--
FindCVS.cmake
2.18
KB
-rw-r--r--
FindCoin3D.cmake
2.67
KB
-rw-r--r--
FindCups.cmake
2.91
KB
-rw-r--r--
FindCurses.cmake
6.57
KB
-rw-r--r--
FindCxxTest.cmake
7.61
KB
-rw-r--r--
FindCygwin.cmake
924
B
-rw-r--r--
FindDCMTK.cmake
4.44
KB
-rw-r--r--
FindDart.cmake
1.32
KB
-rw-r--r--
FindDevIL.cmake
2.82
KB
-rw-r--r--
FindDoxygen.cmake
5.05
KB
-rw-r--r--
FindEXPAT.cmake
2.37
KB
-rw-r--r--
FindFLEX.cmake
6.27
KB
-rw-r--r--
FindFLTK.cmake
11.1
KB
-rw-r--r--
FindFLTK2.cmake
9.01
KB
-rw-r--r--
FindFreetype.cmake
5.08
KB
-rw-r--r--
FindGCCXML.cmake
960
B
-rw-r--r--
FindGDAL.cmake
3.26
KB
-rw-r--r--
FindGIF.cmake
2.66
KB
-rw-r--r--
FindGLEW.cmake
1.27
KB
-rw-r--r--
FindGLU.cmake
1020
B
-rw-r--r--
FindGLUT.cmake
3.01
KB
-rw-r--r--
FindGTK.cmake
4.11
KB
-rw-r--r--
FindGTK2.cmake
22.83
KB
-rw-r--r--
FindGTest.cmake
5.41
KB
-rw-r--r--
FindGettext.cmake
8.1
KB
-rw-r--r--
FindGit.cmake
2.06
KB
-rw-r--r--
FindGnuTLS.cmake
2.37
KB
-rw-r--r--
FindGnuplot.cmake
1.96
KB
-rw-r--r--
FindHDF5.cmake
14.34
KB
-rw-r--r--
FindHSPELL.cmake
2.04
KB
-rw-r--r--
FindHTMLHelp.cmake
1.8
KB
-rw-r--r--
FindHg.cmake
1.79
KB
-rw-r--r--
FindITK.cmake
2.19
KB
-rw-r--r--
FindIcotool.cmake
1.66
KB
-rw-r--r--
FindImageMagick.cmake
9.96
KB
-rw-r--r--
FindJNI.cmake
9.93
KB
-rw-r--r--
FindJPEG.cmake
1.57
KB
-rw-r--r--
FindJasper.cmake
2.16
KB
-rw-r--r--
FindJava.cmake
7.83
KB
-rw-r--r--
FindKDE3.cmake
10.27
KB
-rw-r--r--
FindKDE4.cmake
3.48
KB
-rw-r--r--
FindLAPACK.cmake
9.28
KB
-rw-r--r--
FindLATEX.cmake
3.24
KB
-rw-r--r--
FindLibArchive.cmake
2.87
KB
-rw-r--r--
FindLibLZMA.cmake
3.53
KB
-rw-r--r--
FindLibXml2.cmake
2.67
KB
-rw-r--r--
FindLibXslt.cmake
2.86
KB
-rw-r--r--
FindLua50.cmake
2.75
KB
-rw-r--r--
FindLua51.cmake
2.58
KB
-rw-r--r--
FindLua52.cmake
2.2
KB
-rw-r--r--
FindMFC.cmake
2.24
KB
-rw-r--r--
FindMPEG.cmake
1.62
KB
-rw-r--r--
FindMPEG2.cmake
1.88
KB
-rw-r--r--
FindMPI.cmake
29.25
KB
-rw-r--r--
FindMatlab.cmake
3.39
KB
-rw-r--r--
FindMotif.cmake
1.29
KB
-rw-r--r--
FindOpenAL.cmake
3.85
KB
-rw-r--r--
FindOpenGL.cmake
5.29
KB
-rw-r--r--
FindOpenMP.cmake
5.3
KB
-rw-r--r--
FindOpenSSL.cmake
9.44
KB
-rw-r--r--
FindOpenSceneGraph.cmake
7.26
KB
-rw-r--r--
FindOpenThreads.cmake
4.16
KB
-rw-r--r--
FindPHP4.cmake
2.48
KB
-rw-r--r--
FindPNG.cmake
4.29
KB
-rw-r--r--
FindPackageHandleStandardArgs....
13.01
KB
-rw-r--r--
FindPackageMessage.cmake
1.92
KB
-rw-r--r--
FindPerl.cmake
3.03
KB
-rw-r--r--
FindPerlLibs.cmake
8.08
KB
-rw-r--r--
FindPhysFS.cmake
1.61
KB
-rw-r--r--
FindPike.cmake
1.19
KB
-rw-r--r--
FindPkgConfig.cmake
14.5
KB
-rw-r--r--
FindPostgreSQL.cmake
7.57
KB
-rw-r--r--
FindProducer.cmake
2.7
KB
-rw-r--r--
FindProtobuf.cmake
7.89
KB
-rw-r--r--
FindPythonInterp.cmake
6.07
KB
-rw-r--r--
FindPythonLibs.cmake
11.29
KB
-rw-r--r--
FindQt.cmake
6.07
KB
-rw-r--r--
FindQt3.cmake
9.48
KB
-rw-r--r--
FindQt4.cmake
59.73
KB
-rw-r--r--
FindQuickTime.cmake
1.39
KB
-rw-r--r--
FindRTI.cmake
3.57
KB
-rw-r--r--
FindRuby.cmake
9.85
KB
-rw-r--r--
FindSDL.cmake
7.24
KB
-rw-r--r--
FindSDL_image.cmake
3.88
KB
-rw-r--r--
FindSDL_mixer.cmake
3.88
KB
-rw-r--r--
FindSDL_net.cmake
3.74
KB
-rw-r--r--
FindSDL_sound.cmake
13.48
KB
-rw-r--r--
FindSDL_ttf.cmake
3.74
KB
-rw-r--r--
FindSWIG.cmake
2.89
KB
-rw-r--r--
FindSelfPackers.cmake
1.84
KB
-rw-r--r--
FindSquish.cmake
10.14
KB
-rw-r--r--
FindSubversion.cmake
5.65
KB
-rw-r--r--
FindTCL.cmake
7.97
KB
-rw-r--r--
FindTIFF.cmake
1.92
KB
-rw-r--r--
FindTclStub.cmake
4.73
KB
-rw-r--r--
FindTclsh.cmake
3.74
KB
-rw-r--r--
FindThreads.cmake
5.84
KB
-rw-r--r--
FindUnixCommands.cmake
1.48
KB
-rw-r--r--
FindVTK.cmake
5.78
KB
-rw-r--r--
FindWget.cmake
1.26
KB
-rw-r--r--
FindWish.cmake
3.01
KB
-rw-r--r--
FindX11.cmake
20.05
KB
-rw-r--r--
FindXMLRPC.cmake
4.97
KB
-rw-r--r--
FindZLIB.cmake
3.58
KB
-rw-r--r--
Findosg.cmake
2.21
KB
-rw-r--r--
FindosgAnimation.cmake
2.17
KB
-rw-r--r--
FindosgDB.cmake
2.08
KB
-rw-r--r--
FindosgFX.cmake
2.08
KB
-rw-r--r--
FindosgGA.cmake
2.09
KB
-rw-r--r--
FindosgIntrospection.cmake
2.26
KB
-rw-r--r--
FindosgManipulator.cmake
2.24
KB
-rw-r--r--
FindosgParticle.cmake
2.17
KB
-rw-r--r--
FindosgPresentation.cmake
2.33
KB
-rw-r--r--
FindosgProducer.cmake
2.18
KB
-rw-r--r--
FindosgQt.cmake
2.14
KB
-rw-r--r--
FindosgShadow.cmake
2.14
KB
-rw-r--r--
FindosgSim.cmake
2.09
KB
-rw-r--r--
FindosgTerrain.cmake
2.15
KB
-rw-r--r--
FindosgText.cmake
2.09
KB
-rw-r--r--
FindosgUtil.cmake
2.1
KB
-rw-r--r--
FindosgViewer.cmake
2.13
KB
-rw-r--r--
FindosgVolume.cmake
2.13
KB
-rw-r--r--
FindosgWidget.cmake
2.18
KB
-rw-r--r--
Findosg_functions.cmake
3.05
KB
-rw-r--r--
FindwxWidgets.cmake
36.04
KB
-rw-r--r--
FindwxWindows.cmake
24.15
KB
-rw-r--r--
FortranCInterface.cmake
12.16
KB
-rw-r--r--
GNUInstallDirs.cmake
7.18
KB
-rw-r--r--
GenerateExportHeader.cmake
12.41
KB
-rw-r--r--
GetPrerequisites.cmake
28.59
KB
-rw-r--r--
ITKCompatibility.cmake
689
B
-rw-r--r--
InstallRequiredSystemLibraries...
14.93
KB
-rw-r--r--
KDE3Macros.cmake
13.26
KB
-rw-r--r--
MacOSXBundleInfo.plist.in
1.22
KB
-rw-r--r--
MacOSXFrameworkInfo.plist.in
886
B
-rw-r--r--
MacroAddFileDependencies.cmake
1.29
KB
-rw-r--r--
NSIS.InstallOptions.ini.in
678
B
-rw-r--r--
NSIS.template.in
27.82
KB
-rw-r--r--
ProcessorCount.cmake
6.84
KB
-rw-r--r--
Qt4ConfigDependentSettings.cma...
7.9
KB
-rw-r--r--
Qt4Macros.cmake
18.11
KB
-rw-r--r--
RepositoryInfo.txt.in
56
B
-rw-r--r--
SelectLibraryConfigurations.cm...
3.39
KB
-rw-r--r--
Squish4RunTestCase.bat
629
B
-rw-r--r--
Squish4RunTestCase.sh
773
B
-rw-r--r--
SquishRunTestCase.bat
219
B
-rw-r--r--
SquishRunTestCase.sh
272
B
-rw-r--r--
SquishTestScript.cmake
3.8
KB
-rw-r--r--
SystemInformation.cmake
3.57
KB
-rw-r--r--
SystemInformation.in
4.59
KB
-rw-r--r--
TestBigEndian.cmake
4.51
KB
-rw-r--r--
TestCXXAcceptsFlag.cmake
1.78
KB
-rw-r--r--
TestEndianess.c.in
871
B
-rw-r--r--
TestForANSIForScope.cmake
1.77
KB
-rw-r--r--
TestForANSIStreamHeaders.cmake
1.29
KB
-rw-r--r--
TestForANSIStreamHeaders.cxx
60
B
-rw-r--r--
TestForAnsiForScope.cxx
87
B
-rw-r--r--
TestForSSTREAM.cmake
1.74
KB
-rw-r--r--
TestForSSTREAM.cxx
154
B
-rw-r--r--
TestForSTDNamespace.cmake
1.69
KB
-rw-r--r--
TestForSTDNamespace.cxx
75
B
-rw-r--r--
UseEcos.cmake
10.1
KB
-rw-r--r--
UseJava.cmake
35.32
KB
-rw-r--r--
UseJavaClassFilelist.cmake
2.13
KB
-rw-r--r--
UseJavaSymlinks.cmake
1.09
KB
-rw-r--r--
UsePkgConfig.cmake
2.95
KB
-rw-r--r--
UseQt4.cmake
2.96
KB
-rw-r--r--
UseSWIG.cmake
9.97
KB
-rw-r--r--
UseVTK40.cmake
1.14
KB
-rw-r--r--
UseVTKBuildSettings40.cmake
1.89
KB
-rw-r--r--
UseVTKConfig40.cmake
13.12
KB
-rw-r--r--
Use_wxWindows.cmake
2.37
KB
-rw-r--r--
UsewxWidgets.cmake
3.17
KB
-rw-r--r--
VTKCompatibility.cmake
2.13
KB
-rw-r--r--
WIX.template.in
1.47
KB
-rw-r--r--
WriteBasicConfigVersionFile.cm...
1.72
KB
-rw-r--r--
ecos_clean.cmake
968
B
-rw-r--r--
exportheader.cmake.in
911
B
-rw-r--r--
kde3init_dummy.cpp.in
227
B
-rw-r--r--
kde3uic.cmake
1.21
KB
-rw-r--r--
readme.txt
9.1
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : NSIS.template.in
; CPack install script designed for a nmake build ;-------------------------------- ; You must define these values !define VERSION "@CPACK_PACKAGE_VERSION@" !define PATCH "@CPACK_PACKAGE_VERSION_PATCH@" !define INST_DIR "@CPACK_TEMPORARY_DIRECTORY@" ;-------------------------------- ;Variables Var MUI_TEMP Var STARTMENU_FOLDER Var SV_ALLUSERS Var START_MENU Var DO_NOT_ADD_TO_PATH Var ADD_TO_PATH_ALL_USERS Var ADD_TO_PATH_CURRENT_USER Var INSTALL_DESKTOP Var IS_DEFAULT_INSTALLDIR ;-------------------------------- ;Include Modern UI !include "MUI.nsh" ;Default installation folder InstallDir "@CPACK_NSIS_INSTALL_ROOT@\@CPACK_PACKAGE_INSTALL_DIRECTORY@" ;-------------------------------- ;General ;Name and file Name "@CPACK_NSIS_PACKAGE_NAME@" OutFile "@CPACK_TOPLEVEL_DIRECTORY@/@CPACK_OUTPUT_FILE_NAME@" ;Set compression SetCompressor @CPACK_NSIS_COMPRESSOR@ ;Require administrator access RequestExecutionLevel admin @CPACK_NSIS_DEFINES@ !include Sections.nsh ;--- Component support macros: --- ; The code for the add/remove functionality is from: ; http://nsis.sourceforge.net/Add/Remove_Functionality ; It has been modified slightly and extended to provide ; inter-component dependencies. Var AR_SecFlags Var AR_RegFlags @CPACK_NSIS_SECTION_SELECTED_VARS@ ; Loads the "selected" flag for the section named SecName into the ; variable VarName. !macro LoadSectionSelectedIntoVar SecName VarName SectionGetFlags ${${SecName}} $${VarName} IntOp $${VarName} $${VarName} & ${SF_SELECTED} ;Turn off all other bits !macroend ; Loads the value of a variable... can we get around this? !macro LoadVar VarName IntOp $R0 0 + $${VarName} !macroend ; Sets the value of a variable !macro StoreVar VarName IntValue IntOp $${VarName} 0 + ${IntValue} !macroend !macro InitSection SecName ; This macro reads component installed flag from the registry and ;changes checked state of the section on the components page. ;Input: section index constant name specified in Section command. ClearErrors ;Reading component status from registry ReadRegDWORD $AR_RegFlags HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@\Components\${SecName}" "Installed" IfErrors "default_${SecName}" ;Status will stay default if registry value not found ;(component was never installed) IntOp $AR_RegFlags $AR_RegFlags & ${SF_SELECTED} ;Turn off all other bits SectionGetFlags ${${SecName}} $AR_SecFlags ;Reading default section flags IntOp $AR_SecFlags $AR_SecFlags & 0xFFFE ;Turn lowest (enabled) bit off IntOp $AR_SecFlags $AR_RegFlags | $AR_SecFlags ;Change lowest bit ; Note whether this component was installed before !insertmacro StoreVar ${SecName}_was_installed $AR_RegFlags IntOp $R0 $AR_RegFlags & $AR_RegFlags ;Writing modified flags SectionSetFlags ${${SecName}} $AR_SecFlags "default_${SecName}:" !insertmacro LoadSectionSelectedIntoVar ${SecName} ${SecName}_selected !macroend !macro FinishSection SecName ; This macro reads section flag set by user and removes the section ;if it is not selected. ;Then it writes component installed flag to registry ;Input: section index constant name specified in Section command. SectionGetFlags ${${SecName}} $AR_SecFlags ;Reading section flags ;Checking lowest bit: IntOp $AR_SecFlags $AR_SecFlags & ${SF_SELECTED} IntCmp $AR_SecFlags 1 "leave_${SecName}" ;Section is not selected: ;Calling Section uninstall macro and writing zero installed flag !insertmacro "Remove_${${SecName}}" WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@\Components\${SecName}" \ "Installed" 0 Goto "exit_${SecName}" "leave_${SecName}:" ;Section is selected: WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@\Components\${SecName}" \ "Installed" 1 "exit_${SecName}:" !macroend !macro RemoveSection_CPack SecName ; This macro is used to call section's Remove_... macro ;from the uninstaller. ;Input: section index constant name specified in Section command. !insertmacro "Remove_${${SecName}}" !macroend ; Determine whether the selection of SecName changed !macro MaybeSelectionChanged SecName !insertmacro LoadVar ${SecName}_selected SectionGetFlags ${${SecName}} $R1 IntOp $R1 $R1 & ${SF_SELECTED} ;Turn off all other bits ; See if the status has changed: IntCmp $R0 $R1 "${SecName}_unchanged" !insertmacro LoadSectionSelectedIntoVar ${SecName} ${SecName}_selected IntCmp $R1 ${SF_SELECTED} "${SecName}_was_selected" !insertmacro "Deselect_required_by_${SecName}" goto "${SecName}_unchanged" "${SecName}_was_selected:" !insertmacro "Select_${SecName}_depends" "${SecName}_unchanged:" !macroend ;--- End of Add/Remove macros --- ;-------------------------------- ;Interface Settings !define MUI_HEADERIMAGE !define MUI_ABORTWARNING ;-------------------------------- ; path functions !verbose 3 !include "WinMessages.NSH" !verbose 4 ;---------------------------------------- ; based upon a script of "Written by KiCHiK 2003-01-18 05:57:02" ;---------------------------------------- !verbose 3 !include "WinMessages.NSH" !verbose 4 ;==================================================== ; get_NT_environment ; Returns: the selected environment ; Output : head of the stack ;==================================================== !macro select_NT_profile UN Function ${UN}select_NT_profile StrCmp $ADD_TO_PATH_ALL_USERS "1" 0 environment_single DetailPrint "Selected environment for all users" Push "all" Return environment_single: DetailPrint "Selected environment for current user only." Push "current" Return FunctionEnd !macroend !insertmacro select_NT_profile "" !insertmacro select_NT_profile "un." ;---------------------------------------------------- !define NT_current_env 'HKCU "Environment"' !define NT_all_env 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"' !ifndef WriteEnvStr_RegKey !ifdef ALL_USERS !define WriteEnvStr_RegKey \ 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"' !else !define WriteEnvStr_RegKey 'HKCU "Environment"' !endif !endif ; AddToPath - Adds the given dir to the search path. ; Input - head of the stack ; Note - Win9x systems requires reboot Function AddToPath Exch $0 Push $1 Push $2 Push $3 # don't add if the path doesn't exist IfFileExists "$0\*.*" "" AddToPath_done ReadEnvStr $1 PATH ; if the path is too long for a NSIS variable NSIS will return a 0 ; length string. If we find that, then warn and skip any path ; modification as it will trash the existing path. StrLen $2 $1 IntCmp $2 0 CheckPathLength_ShowPathWarning CheckPathLength_Done CheckPathLength_Done CheckPathLength_ShowPathWarning: Messagebox MB_OK|MB_ICONEXCLAMATION "Warning! PATH too long installer unable to modify PATH!" Goto AddToPath_done CheckPathLength_Done: Push "$1;" Push "$0;" Call StrStr Pop $2 StrCmp $2 "" "" AddToPath_done Push "$1;" Push "$0\;" Call StrStr Pop $2 StrCmp $2 "" "" AddToPath_done GetFullPathName /SHORT $3 $0 Push "$1;" Push "$3;" Call StrStr Pop $2 StrCmp $2 "" "" AddToPath_done Push "$1;" Push "$3\;" Call StrStr Pop $2 StrCmp $2 "" "" AddToPath_done Call IsNT Pop $1 StrCmp $1 1 AddToPath_NT ; Not on NT StrCpy $1 $WINDIR 2 FileOpen $1 "$1\autoexec.bat" a FileSeek $1 -1 END FileReadByte $1 $2 IntCmp $2 26 0 +2 +2 # DOS EOF FileSeek $1 -1 END # write over EOF FileWrite $1 "$\r$\nSET PATH=%PATH%;$3$\r$\n" FileClose $1 SetRebootFlag true Goto AddToPath_done AddToPath_NT: StrCmp $ADD_TO_PATH_ALL_USERS "1" ReadAllKey ReadRegStr $1 ${NT_current_env} "PATH" Goto DoTrim ReadAllKey: ReadRegStr $1 ${NT_all_env} "PATH" DoTrim: StrCmp $1 "" AddToPath_NTdoIt Push $1 Call Trim Pop $1 StrCpy $0 "$1;$0" AddToPath_NTdoIt: StrCmp $ADD_TO_PATH_ALL_USERS "1" WriteAllKey WriteRegExpandStr ${NT_current_env} "PATH" $0 Goto DoSend WriteAllKey: WriteRegExpandStr ${NT_all_env} "PATH" $0 DoSend: SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 AddToPath_done: Pop $3 Pop $2 Pop $1 Pop $0 FunctionEnd ; RemoveFromPath - Remove a given dir from the path ; Input: head of the stack Function un.RemoveFromPath Exch $0 Push $1 Push $2 Push $3 Push $4 Push $5 Push $6 IntFmt $6 "%c" 26 # DOS EOF Call un.IsNT Pop $1 StrCmp $1 1 unRemoveFromPath_NT ; Not on NT StrCpy $1 $WINDIR 2 FileOpen $1 "$1\autoexec.bat" r GetTempFileName $4 FileOpen $2 $4 w GetFullPathName /SHORT $0 $0 StrCpy $0 "SET PATH=%PATH%;$0" Goto unRemoveFromPath_dosLoop unRemoveFromPath_dosLoop: FileRead $1 $3 StrCpy $5 $3 1 -1 # read last char StrCmp $5 $6 0 +2 # if DOS EOF StrCpy $3 $3 -1 # remove DOS EOF so we can compare StrCmp $3 "$0$\r$\n" unRemoveFromPath_dosLoopRemoveLine StrCmp $3 "$0$\n" unRemoveFromPath_dosLoopRemoveLine StrCmp $3 "$0" unRemoveFromPath_dosLoopRemoveLine StrCmp $3 "" unRemoveFromPath_dosLoopEnd FileWrite $2 $3 Goto unRemoveFromPath_dosLoop unRemoveFromPath_dosLoopRemoveLine: SetRebootFlag true Goto unRemoveFromPath_dosLoop unRemoveFromPath_dosLoopEnd: FileClose $2 FileClose $1 StrCpy $1 $WINDIR 2 Delete "$1\autoexec.bat" CopyFiles /SILENT $4 "$1\autoexec.bat" Delete $4 Goto unRemoveFromPath_done unRemoveFromPath_NT: StrCmp $ADD_TO_PATH_ALL_USERS "1" unReadAllKey ReadRegStr $1 ${NT_current_env} "PATH" Goto unDoTrim unReadAllKey: ReadRegStr $1 ${NT_all_env} "PATH" unDoTrim: StrCpy $5 $1 1 -1 # copy last char StrCmp $5 ";" +2 # if last char != ; StrCpy $1 "$1;" # append ; Push $1 Push "$0;" Call un.StrStr ; Find `$0;` in $1 Pop $2 ; pos of our dir StrCmp $2 "" unRemoveFromPath_done ; else, it is in path # $0 - path to add # $1 - path var StrLen $3 "$0;" StrLen $4 $2 StrCpy $5 $1 -$4 # $5 is now the part before the path to remove StrCpy $6 $2 "" $3 # $6 is now the part after the path to remove StrCpy $3 $5$6 StrCpy $5 $3 1 -1 # copy last char StrCmp $5 ";" 0 +2 # if last char == ; StrCpy $3 $3 -1 # remove last char StrCmp $ADD_TO_PATH_ALL_USERS "1" unWriteAllKey WriteRegExpandStr ${NT_current_env} "PATH" $3 Goto unDoSend unWriteAllKey: WriteRegExpandStr ${NT_all_env} "PATH" $3 unDoSend: SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 unRemoveFromPath_done: Pop $6 Pop $5 Pop $4 Pop $3 Pop $2 Pop $1 Pop $0 FunctionEnd ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Uninstall sutff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ########################################### # Utility Functions # ########################################### ;==================================================== ; IsNT - Returns 1 if the current system is NT, 0 ; otherwise. ; Output: head of the stack ;==================================================== ; IsNT ; no input ; output, top of the stack = 1 if NT or 0 if not ; ; Usage: ; Call IsNT ; Pop $R0 ; ($R0 at this point is 1 or 0) !macro IsNT un Function ${un}IsNT Push $0 ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion StrCmp $0 "" 0 IsNT_yes ; we are not NT. Pop $0 Push 0 Return IsNT_yes: ; NT!!! Pop $0 Push 1 FunctionEnd !macroend !insertmacro IsNT "" !insertmacro IsNT "un." ; StrStr ; input, top of stack = string to search for ; top of stack-1 = string to search in ; output, top of stack (replaces with the portion of the string remaining) ; modifies no other variables. ; ; Usage: ; Push "this is a long ass string" ; Push "ass" ; Call StrStr ; Pop $R0 ; ($R0 at this point is "ass string") !macro StrStr un Function ${un}StrStr Exch $R1 ; st=haystack,old$R1, $R1=needle Exch ; st=old$R1,haystack Exch $R2 ; st=old$R1,old$R2, $R2=haystack Push $R3 Push $R4 Push $R5 StrLen $R3 $R1 StrCpy $R4 0 ; $R1=needle ; $R2=haystack ; $R3=len(needle) ; $R4=cnt ; $R5=tmp loop: StrCpy $R5 $R2 $R3 $R4 StrCmp $R5 $R1 done StrCmp $R5 "" done IntOp $R4 $R4 + 1 Goto loop done: StrCpy $R1 $R2 "" $R4 Pop $R5 Pop $R4 Pop $R3 Pop $R2 Exch $R1 FunctionEnd !macroend !insertmacro StrStr "" !insertmacro StrStr "un." Function Trim ; Added by Pelaca Exch $R1 Push $R2 Loop: StrCpy $R2 "$R1" 1 -1 StrCmp "$R2" " " RTrim StrCmp "$R2" "$\n" RTrim StrCmp "$R2" "$\r" RTrim StrCmp "$R2" ";" RTrim GoTo Done RTrim: StrCpy $R1 "$R1" -1 Goto Loop Done: Pop $R2 Exch $R1 FunctionEnd Function ConditionalAddToRegisty Pop $0 Pop $1 StrCmp "$0" "" ConditionalAddToRegisty_EmptyString WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" \ "$1" "$0" ;MessageBox MB_OK "Set Registry: '$1' to '$0'" DetailPrint "Set install registry entry: '$1' to '$0'" ConditionalAddToRegisty_EmptyString: FunctionEnd ;-------------------------------- !ifdef CPACK_USES_DOWNLOAD Function DownloadFile IfFileExists $INSTDIR\* +2 CreateDirectory $INSTDIR Pop $0 ; Skip if already downloaded IfFileExists $INSTDIR\$0 0 +2 Return StrCpy $1 "@CPACK_DOWNLOAD_SITE@" try_again: NSISdl::download "$1/$0" "$INSTDIR\$0" Pop $1 StrCmp $1 "success" success StrCmp $1 "Cancelled" cancel MessageBox MB_OK "Download failed: $1" cancel: Return success: FunctionEnd !endif ;-------------------------------- ; Installation types @CPACK_NSIS_INSTALLATION_TYPES@ ;-------------------------------- ; Component sections @CPACK_NSIS_COMPONENT_SECTIONS@ ;-------------------------------- ; Define some macro setting for the gui @CPACK_NSIS_INSTALLER_MUI_ICON_CODE@ @CPACK_NSIS_INSTALLER_ICON_CODE@ @CPACK_NSIS_INSTALLER_MUI_COMPONENTS_DESC@ @CPACK_NSIS_INSTALLER_MUI_FINISHPAGE_RUN_CODE@ ;-------------------------------- ;Pages !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_LICENSE "@CPACK_RESOURCE_FILE_LICENSE@" Page custom InstallOptionsPage !insertmacro MUI_PAGE_DIRECTORY ;Start Menu Folder Page Configuration !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX" !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" !insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER @CPACK_NSIS_PAGE_COMPONENTS@ !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES ;-------------------------------- ;Languages !insertmacro MUI_LANGUAGE "English" ;first language is the default language !insertmacro MUI_LANGUAGE "Albanian" !insertmacro MUI_LANGUAGE "Arabic" !insertmacro MUI_LANGUAGE "Basque" !insertmacro MUI_LANGUAGE "Belarusian" !insertmacro MUI_LANGUAGE "Bosnian" !insertmacro MUI_LANGUAGE "Breton" !insertmacro MUI_LANGUAGE "Bulgarian" !insertmacro MUI_LANGUAGE "Croatian" !insertmacro MUI_LANGUAGE "Czech" !insertmacro MUI_LANGUAGE "Danish" !insertmacro MUI_LANGUAGE "Dutch" !insertmacro MUI_LANGUAGE "Estonian" !insertmacro MUI_LANGUAGE "Farsi" !insertmacro MUI_LANGUAGE "Finnish" !insertmacro MUI_LANGUAGE "French" !insertmacro MUI_LANGUAGE "German" !insertmacro MUI_LANGUAGE "Greek" !insertmacro MUI_LANGUAGE "Hebrew" !insertmacro MUI_LANGUAGE "Hungarian" !insertmacro MUI_LANGUAGE "Icelandic" !insertmacro MUI_LANGUAGE "Indonesian" !insertmacro MUI_LANGUAGE "Irish" !insertmacro MUI_LANGUAGE "Italian" !insertmacro MUI_LANGUAGE "Japanese" !insertmacro MUI_LANGUAGE "Korean" !insertmacro MUI_LANGUAGE "Kurdish" !insertmacro MUI_LANGUAGE "Latvian" !insertmacro MUI_LANGUAGE "Lithuanian" !insertmacro MUI_LANGUAGE "Luxembourgish" !insertmacro MUI_LANGUAGE "Macedonian" !insertmacro MUI_LANGUAGE "Malay" !insertmacro MUI_LANGUAGE "Mongolian" !insertmacro MUI_LANGUAGE "Norwegian" !insertmacro MUI_LANGUAGE "Polish" !insertmacro MUI_LANGUAGE "Portuguese" !insertmacro MUI_LANGUAGE "PortugueseBR" !insertmacro MUI_LANGUAGE "Romanian" !insertmacro MUI_LANGUAGE "Russian" !insertmacro MUI_LANGUAGE "Serbian" !insertmacro MUI_LANGUAGE "SerbianLatin" !insertmacro MUI_LANGUAGE "SimpChinese" !insertmacro MUI_LANGUAGE "Slovak" !insertmacro MUI_LANGUAGE "Slovenian" !insertmacro MUI_LANGUAGE "Spanish" !insertmacro MUI_LANGUAGE "Swedish" !insertmacro MUI_LANGUAGE "Thai" !insertmacro MUI_LANGUAGE "TradChinese" !insertmacro MUI_LANGUAGE "Turkish" !insertmacro MUI_LANGUAGE "Ukrainian" !insertmacro MUI_LANGUAGE "Welsh" ;-------------------------------- ;Reserve Files ;These files should be inserted before other files in the data block ;Keep these lines before any File command ;Only for solid compression (by default, solid compression is enabled for BZIP2 and LZMA) ReserveFile "NSIS.InstallOptions.ini" !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS ;-------------------------------- ;Installer Sections Section "-Core installation" ;Use the entire tree produced by the INSTALL target. Keep the ;list of directories here in sync with the RMDir commands below. SetOutPath "$INSTDIR" @CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS@ @CPACK_NSIS_FULL_INSTALL@ ;Store installation folder WriteRegStr SHCTX "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "" $INSTDIR ;Create uninstaller WriteUninstaller "$INSTDIR\Uninstall.exe" Push "DisplayName" Push "@CPACK_NSIS_DISPLAY_NAME@" Call ConditionalAddToRegisty Push "DisplayVersion" Push "@CPACK_PACKAGE_VERSION@" Call ConditionalAddToRegisty Push "Publisher" Push "@CPACK_PACKAGE_VENDOR@" Call ConditionalAddToRegisty Push "UninstallString" Push "$INSTDIR\Uninstall.exe" Call ConditionalAddToRegisty Push "NoRepair" Push "1" Call ConditionalAddToRegisty !ifdef CPACK_NSIS_ADD_REMOVE ;Create add/remove functionality Push "ModifyPath" Push "$INSTDIR\AddRemove.exe" Call ConditionalAddToRegisty !else Push "NoModify" Push "1" Call ConditionalAddToRegisty !endif ; Optional registration Push "DisplayIcon" Push "$INSTDIR\@CPACK_NSIS_INSTALLED_ICON_NAME@" Call ConditionalAddToRegisty Push "HelpLink" Push "@CPACK_NSIS_HELP_LINK@" Call ConditionalAddToRegisty Push "URLInfoAbout" Push "@CPACK_NSIS_URL_INFO_ABOUT@" Call ConditionalAddToRegisty Push "Contact" Push "@CPACK_NSIS_CONTACT@" Call ConditionalAddToRegisty !insertmacro MUI_INSTALLOPTIONS_READ $INSTALL_DESKTOP "NSIS.InstallOptions.ini" "Field 5" "State" !insertmacro MUI_STARTMENU_WRITE_BEGIN Application ;Create shortcuts CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER" @CPACK_NSIS_CREATE_ICONS@ @CPACK_NSIS_CREATE_ICONS_EXTRA@ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe" ;Read a value from an InstallOptions INI file !insertmacro MUI_INSTALLOPTIONS_READ $DO_NOT_ADD_TO_PATH "NSIS.InstallOptions.ini" "Field 2" "State" !insertmacro MUI_INSTALLOPTIONS_READ $ADD_TO_PATH_ALL_USERS "NSIS.InstallOptions.ini" "Field 3" "State" !insertmacro MUI_INSTALLOPTIONS_READ $ADD_TO_PATH_CURRENT_USER "NSIS.InstallOptions.ini" "Field 4" "State" ; Write special uninstall registry entries Push "StartMenu" Push "$STARTMENU_FOLDER" Call ConditionalAddToRegisty Push "DoNotAddToPath" Push "$DO_NOT_ADD_TO_PATH" Call ConditionalAddToRegisty Push "AddToPathAllUsers" Push "$ADD_TO_PATH_ALL_USERS" Call ConditionalAddToRegisty Push "AddToPathCurrentUser" Push "$ADD_TO_PATH_CURRENT_USER" Call ConditionalAddToRegisty Push "InstallToDesktop" Push "$INSTALL_DESKTOP" Call ConditionalAddToRegisty !insertmacro MUI_STARTMENU_WRITE_END @CPACK_NSIS_EXTRA_INSTALL_COMMANDS@ SectionEnd Section "-Add to path" Push $INSTDIR\bin StrCmp "@CPACK_NSIS_MODIFY_PATH@" "ON" 0 doNotAddToPath StrCmp $DO_NOT_ADD_TO_PATH "1" doNotAddToPath 0 Call AddToPath doNotAddToPath: SectionEnd ;-------------------------------- ; Create custom pages Function InstallOptionsPage !insertmacro MUI_HEADER_TEXT "Install Options" "Choose options for installing @CPACK_NSIS_PACKAGE_NAME@" !insertmacro MUI_INSTALLOPTIONS_DISPLAY "NSIS.InstallOptions.ini" FunctionEnd ;-------------------------------- ; determine admin versus local install Function un.onInit ClearErrors UserInfo::GetName IfErrors noLM Pop $0 UserInfo::GetAccountType Pop $1 StrCmp $1 "Admin" 0 +3 SetShellVarContext all ;MessageBox MB_OK 'User "$0" is in the Admin group' Goto done StrCmp $1 "Power" 0 +3 SetShellVarContext all ;MessageBox MB_OK 'User "$0" is in the Power Users group' Goto done noLM: ;Get installation folder from registry if available done: FunctionEnd ;--- Add/Remove callback functions: --- !macro SectionList MacroName ;This macro used to perform operation on multiple sections. ;List all of your components in following manner here. @CPACK_NSIS_COMPONENT_SECTION_LIST@ !macroend Section -FinishComponents ;Removes unselected components and writes component status to registry !insertmacro SectionList "FinishSection" !ifdef CPACK_NSIS_ADD_REMOVE ; Get the name of the installer executable System::Call 'kernel32::GetModuleFileNameA(i 0, t .R0, i 1024) i r1' StrCpy $R3 $R0 ; Strip off the last 13 characters, to see if we have AddRemove.exe StrLen $R1 $R0 IntOp $R1 $R0 - 13 StrCpy $R2 $R0 13 $R1 StrCmp $R2 "AddRemove.exe" addremove_installed ; We're not running AddRemove.exe, so install it CopyFiles $R3 $INSTDIR\AddRemove.exe addremove_installed: !endif SectionEnd ;--- End of Add/Remove callback functions --- ;-------------------------------- ; Component dependencies Function .onSelChange !insertmacro SectionList MaybeSelectionChanged FunctionEnd ;-------------------------------- ;Uninstaller Section Section "Uninstall" ReadRegStr $START_MENU SHCTX \ "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "StartMenu" ;MessageBox MB_OK "Start menu is in: $START_MENU" ReadRegStr $DO_NOT_ADD_TO_PATH SHCTX \ "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "DoNotAddToPath" ReadRegStr $ADD_TO_PATH_ALL_USERS SHCTX \ "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "AddToPathAllUsers" ReadRegStr $ADD_TO_PATH_CURRENT_USER SHCTX \ "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "AddToPathCurrentUser" ;MessageBox MB_OK "Add to path: $DO_NOT_ADD_TO_PATH all users: $ADD_TO_PATH_ALL_USERS" ReadRegStr $INSTALL_DESKTOP SHCTX \ "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "InstallToDesktop" ;MessageBox MB_OK "Install to desktop: $INSTALL_DESKTOP " @CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS@ ;Remove files we installed. ;Keep the list of directories here in sync with the File commands above. @CPACK_NSIS_DELETE_FILES@ @CPACK_NSIS_DELETE_DIRECTORIES@ !ifdef CPACK_NSIS_ADD_REMOVE ;Remove the add/remove program Delete "$INSTDIR\AddRemove.exe" !endif ;Remove the uninstaller itself. Delete "$INSTDIR\Uninstall.exe" DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" ;Remove the installation directory if it is empty. RMDir "$INSTDIR" ; Remove the registry entries. DeleteRegKey SHCTX "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" ; Removes all optional components !insertmacro SectionList "RemoveSection_CPack" !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk" @CPACK_NSIS_DELETE_ICONS@ @CPACK_NSIS_DELETE_ICONS_EXTRA@ ;Delete empty start menu parent diretories StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP" startMenuDeleteLoop: ClearErrors RMDir $MUI_TEMP GetFullPathName $MUI_TEMP "$MUI_TEMP\.." IfErrors startMenuDeleteLoopDone StrCmp "$MUI_TEMP" "$SMPROGRAMS" startMenuDeleteLoopDone startMenuDeleteLoop startMenuDeleteLoopDone: ; If the user changed the shortcut, then untinstall may not work. This should ; try to fix it. StrCpy $MUI_TEMP "$START_MENU" Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk" @CPACK_NSIS_DELETE_ICONS_EXTRA@ ;Delete empty start menu parent diretories StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP" secondStartMenuDeleteLoop: ClearErrors RMDir $MUI_TEMP GetFullPathName $MUI_TEMP "$MUI_TEMP\.." IfErrors secondStartMenuDeleteLoopDone StrCmp "$MUI_TEMP" "$SMPROGRAMS" secondStartMenuDeleteLoopDone secondStartMenuDeleteLoop secondStartMenuDeleteLoopDone: DeleteRegKey /ifempty SHCTX "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" Push $INSTDIR\bin StrCmp $DO_NOT_ADD_TO_PATH_ "1" doNotRemoveFromPath 0 Call un.RemoveFromPath doNotRemoveFromPath: SectionEnd ;-------------------------------- ; determine admin versus local install ; Is install for "AllUsers" or "JustMe"? ; Default to "JustMe" - set to "AllUsers" if admin or on Win9x ; This function is used for the very first "custom page" of the installer. ; This custom page does not show up visibly, but it executes prior to the ; first visible page and sets up $INSTDIR properly... ; Choose different default installation folder based on SV_ALLUSERS... ; "Program Files" for AllUsers, "My Documents" for JustMe... Function .onInit StrCmp "@CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL@" "ON" 0 inst ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "UninstallString" StrCmp $0 "" inst MessageBox MB_YESNOCANCEL|MB_ICONEXCLAMATION \ "@CPACK_NSIS_PACKAGE_NAME@ is already installed. $\n$\nDo you want to uninstall the old version before installing the new one?" \ IDYES uninst IDNO inst Abort ;Run the uninstaller uninst: ClearErrors StrLen $2 "\Uninstall.exe" StrCpy $3 $0 -$2 # remove "\Uninstall.exe" from UninstallString to get path ExecWait '$0 _?=$3' ;Do not copy the uninstaller to a temp file IfErrors uninst_failed inst uninst_failed: MessageBox MB_OK|MB_ICONSTOP "Uninstall failed." Abort inst: ; Reads components status for registry !insertmacro SectionList "InitSection" ; check to see if /D has been used to change ; the install directory by comparing it to the ; install directory that is expected to be the ; default StrCpy $IS_DEFAULT_INSTALLDIR 0 StrCmp "$INSTDIR" "@CPACK_NSIS_INSTALL_ROOT@\@CPACK_PACKAGE_INSTALL_DIRECTORY@" 0 +2 StrCpy $IS_DEFAULT_INSTALLDIR 1 StrCpy $SV_ALLUSERS "JustMe" ; if default install dir then change the default ; if it is installed for JustMe StrCmp "$IS_DEFAULT_INSTALLDIR" "1" 0 +2 StrCpy $INSTDIR "$DOCUMENTS\@CPACK_PACKAGE_INSTALL_DIRECTORY@" ClearErrors UserInfo::GetName IfErrors noLM Pop $0 UserInfo::GetAccountType Pop $1 StrCmp $1 "Admin" 0 +4 SetShellVarContext all ;MessageBox MB_OK 'User "$0" is in the Admin group' StrCpy $SV_ALLUSERS "AllUsers" Goto done StrCmp $1 "Power" 0 +4 SetShellVarContext all ;MessageBox MB_OK 'User "$0" is in the Power Users group' StrCpy $SV_ALLUSERS "AllUsers" Goto done noLM: StrCpy $SV_ALLUSERS "AllUsers" ;Get installation folder from registry if available done: StrCmp $SV_ALLUSERS "AllUsers" 0 +3 StrCmp "$IS_DEFAULT_INSTALLDIR" "1" 0 +2 StrCpy $INSTDIR "@CPACK_NSIS_INSTALL_ROOT@\@CPACK_PACKAGE_INSTALL_DIRECTORY@" StrCmp "@CPACK_NSIS_MODIFY_PATH@" "ON" 0 noOptionsPage !insertmacro MUI_INSTALLOPTIONS_EXTRACT "NSIS.InstallOptions.ini" noOptionsPage: FunctionEnd
Close