theSLug Posted May 21, 2007 Posted May 21, 2007 (edited) homepage: http://testmem.narod.ru/snm.htmdownload: http://www.benchmarkhq.ruwww.softportal.comthe best stress&stability test IMHO.tnx in advancetheSLug Edited May 21, 2007 by theSLug
geezery Posted May 21, 2007 Posted May 21, 2007 (edited) You can make these addons by yourself. Here is a small tutorial for this program.1. Extract the files from it to C:\S&M\2. Download NSIS3. Install NSIS4. Open Notepad and prepare to write some NSIS scripting:)I tried to put comments as much as I can;S&M_installscipt.nsi;;Sample NSIS silent installation script by Geezery;;Name of the programName "S&M - Stress test v1.8.1 beta" ;Name of the executable fileOutFile "S&M_setup.exe";Installation path InstallDir "$PROGRAMFILES\S&M\" ;Silent installation / uninstallation by default. You don't need any installation switches for example "/S"SilentInstall silent SilentUnInstall silent ;Name of the Installation sectionSection "Installation" ;Select the files you want to include to your installation (Local path = Where the files are in your hard disk)SetOutPath "$INSTDIR" File "C:\S&M\S&M.exe"File "C:\S&M\README.txt"File "C:\S&M\DLL\Core2.bin"File "C:\S&M\DLL\INPORT32.DLL"File "C:\S&M\DLL\IO.DLL";We need to add this, if we want to include the uninstaller.WriteUninstaller "S&M-uninst.exe" ;Here we write the needed registry information, so we can remove the program from the Add / Remove Control Panel applet. WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayName" "Add/Remove Example" WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayIcon" "$INSTDIR\S&M-uninst.exe" WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayVersion" "1.8.1 beta" WriteRegStr HKLM "${REG_UNINSTALL}" "Publisher" "S&M - Stress test" WriteRegStr HKLM "${REG_UNINSTALL}" "InstallSource" "$EXEDIR\";Under WinXP this creates two separate buttons: "Modify" and "Remove".;"Modify" will run installer and "Remove" will run uninstaller. WriteRegDWord HKLM "${REG_UNINSTALL}" "NoModify" 0 WriteRegDWord HKLM "${REG_UNINSTALL}" "NoRepair" 0 WriteRegStr HKLM "${REG_UNINSTALL}" "UninstallString" \'"$INSTDIR\S&M-uninst.exe"' WriteRegStr HKLM "${REG_UNINSTALL}" "ModifyPath" '"$EXEDIR\${InstFile}"';Here we can specify the shortcuts to create;Creates a new group in Start Menu / Programs group called S&MCreateDirectory "$SMPROGRAMS\S&M";Then we create shortcuts for uninstall and the program file.CreateShortCut "$SMPROGRAMS\S&M\S&M.lnk" "$INSTDIR\S&M.exe"SectionEnd ;Uninstallation Section - Here we specify, what we need to removeSection "Uninstall" ;Deletes all the filesDelete "$INSTDIR\*.*" RMDir "$INSTDIR" Delete "$INSTDIR\DLL\*.*" RMDir "$INSTDIR\DLL" ;Remove the linksDelete "$SMPROGRAMS\S&M\*.*"RMDir "$SMPROGRAMS\S&M"SectionEnd5. Compile the script with NSIS6. Now you should have these files in your c:\S&M\ directory7. Then you must create the NLite addon. There is a nice tool called NLite Add-on Maker.8. Copy the S&M_Setup.exe to C:\S&M\setup folder, because you don't need the other files in the Nlite Add-on.9. Open the prog and make the following changes:Then press Make File and choose a folder to place the .cab file.Now you should have a nice NLite addon to put in your unattended windows installation. Edited June 9, 2007 by geezery
Gorki Posted June 9, 2007 Posted June 9, 2007 geezery would it be possible to add some entry so program can be uninstaled from CP (add/remove programs),not just via start/programs or folder uninstaler shortcut? BTW nice turtorial
geezery Posted June 9, 2007 Posted June 9, 2007 (edited) I added the Add / Remove also to the example. Nice to notice someone else has watched this topic.Here is the URL for the NSIS Add / Remove example. http://nsis.sourceforge.net/Add/Remove_FunctionalityI didn't test the script. I also removed the uninstall icon from the start menu. Edited June 9, 2007 by geezery
Gorki Posted June 9, 2007 Posted June 9, 2007 Yes I'm triying to use this script as a template for other programs that do not have installer. hmm..thanks for the info,I just test script and ai get 10 warnings i the end and no uninstall entries in CP?here is the end of warning log. Other than that it installs fine,no problem. 10 warnings: unknown variable/constant "{REG_UNINSTALL}" detected, ignoring (C:\S&M\comp.nsi:34) unknown variable/constant "{REG_UNINSTALL}" detected, ignoring (C:\S&M\comp.nsi:35) unknown variable/constant "{REG_UNINSTALL}" detected, ignoring (C:\S&M\comp.nsi:36) unknown variable/constant "{REG_UNINSTALL}" detected, ignoring (C:\S&M\comp.nsi:37) unknown variable/constant "{REG_UNINSTALL}" detected, ignoring (C:\S&M\comp.nsi:38) unknown variable/constant "{REG_UNINSTALL}" detected, ignoring (C:\S&M\comp.nsi:42) unknown variable/constant "{REG_UNINSTALL}" detected, ignoring (C:\S&M\comp.nsi:43) unknown variable/constant "{REG_UNINSTALL}" detected, ignoring (C:\S&M\comp.nsi:45) unknown variable/constant "{REG_UNINSTALL}" detected, ignoring (C:\S&M\comp.nsi:46) unknown variable/constant "{InstFile}" detected, ignoring (C:\S&M\comp.nsi:46)and ...comp is script name in S&M folder Thank U
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now