diff --git a/Examples/bigtest.nsi b/Examples/bigtest.nsi index 016d9541..48619a83 100644 --- a/Examples/bigtest.nsi +++ b/Examples/bigtest.nsi @@ -16,7 +16,7 @@ SetCompress off Name "BigNSISTest" Caption "NSIS Big Test" -Icon "..\Contrib\Graphics\Icons\nsis1-install.ico" +Icon "${NSISDIR}\Contrib\Graphics\Icons\nsis1-install.ico" OutFile "bigtest.exe" SetDateSave on @@ -30,7 +30,7 @@ XPStyle on InstallDir "$PROGRAMFILES\NSISCrap\BigNSISTest" InstallDirRegKey HKLM "Software\NSISCrap\BigNSISTest" "" -CheckBitmap "..\Contrib\Graphics\Checks\classic-cross.bmp" +CheckBitmap "${NSISDIR}\Contrib\Graphics\Checks\classic-cross.bmp" LicenseText "A test text, make sure it's all there" LicenseData "bigtest.nsi" @@ -277,7 +277,7 @@ FunctionEnd ; Uninstaller UninstallText "This will uninstall example2. Hit next to continue." -UninstallIcon "..\Contrib\Graphics\Icons\nsis1-uninstall.ico" +UninstallIcon "${NSISDIR}\Contrib\Graphics\Icons\nsis1-uninstall.ico" Section "Uninstall" diff --git a/Examples/example1.nsi b/Examples/example1.nsi index fadc1224..61a6f3e7 100644 --- a/Examples/example1.nsi +++ b/Examples/example1.nsi @@ -2,7 +2,7 @@ ; ; This script is perhaps one of the simplest NSIs you can make. All of the ; optional settings are left to their default settings. The installer simply -; prompts the user asking them where to install, and drops a copy of makensisw.exe +; prompts the user asking them where to install, and drops a copy of example1.nsi ; there. ;-------------------------------- @@ -32,6 +32,6 @@ Section "" ;No components page, name is not important SetOutPath $INSTDIR ; Put file there - File ..\makensisw.exe + File example1.nsi -SectionEnd ; end the section \ No newline at end of file +SectionEnd ; end the section diff --git a/Examples/example2.nsi b/Examples/example2.nsi index f793b15a..393e0bd7 100644 --- a/Examples/example2.nsi +++ b/Examples/example2.nsi @@ -3,7 +3,7 @@ ; This script is based on example1.nsi, but it remember the directory, ; has uninstall support and (optionally) installs start menu shortcuts. ; -; It will install makensisw.exe into a directory that the user selects, +; It will install example2.nsi into a directory that the user selects, ;-------------------------------- @@ -42,7 +42,7 @@ Section "Example2 (required)" SetOutPath $INSTDIR ; Put file there - File "..\makensisw.exe" + File "example2.nsi" ; Write the installation path into the registry WriteRegStr HKLM SOFTWARE\NSIS_Example2 "Install_Dir" "$INSTDIR" @@ -61,7 +61,7 @@ Section "Start Menu Shortcuts" CreateDirectory "$SMPROGRAMS\Example2" CreateShortCut "$SMPROGRAMS\Example2\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 - CreateShortCut "$SMPROGRAMS\Example2\Example2 (MakeNSISW).lnk" "$INSTDIR\makensisw.exe" "" "$INSTDIR\makensisw.exe" 0 + CreateShortCut "$SMPROGRAMS\Example2\Example2 (MakeNSISW).lnk" "$INSTDIR\example2.nsi" "" "$INSTDIR\example2.nsi" 0 SectionEnd @@ -76,7 +76,7 @@ Section "Uninstall" DeleteRegKey HKLM SOFTWARE\NSIS_Example2 ; Remove files and uninstaller - Delete $INSTDIR\makensisw.exe + Delete $INSTDIR\example2.nsi Delete $INSTDIR\uninstall.exe ; Remove shortcuts, if any @@ -86,4 +86,4 @@ Section "Uninstall" RMDir "$SMPROGRAMS\Example2" RMDir "$INSTDIR" -SectionEnd \ No newline at end of file +SectionEnd