Humgun Template: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Added category links.) |
m (line wrap) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{ | {{PageAuthor|HG-Owen}} | ||
== Links == | == Links == | ||
See [http://forums.winamp.com/showthread.php?s=&threadid=161726 this forum topic]. | See [http://forums.winamp.com/showthread.php?s=&threadid=161726 this forum topic]. | ||
Line 35: | Line 33: | ||
File "C:\cncs232.dll" | File "C:\cncs232.dll" | ||
SetOutPath "$SMPROGRAMS\${COMPANY_NAME}\" | SetOutPath "$SMPROGRAMS\${COMPANY_NAME}\" | ||
CreateShortCut "$SMPROGRAMS\Humgun\${COMPANY_NAME}\Run.lnk" "$PROGRAMFILES\${COMPANY_NAME}\${PRODUCT_NAME}\UNDEFINED" | CreateShortCut "$SMPROGRAMS\Humgun\${COMPANY_NAME}\Run.lnk" \ | ||
"$PROGRAMFILES\${COMPANY_NAME}\${PRODUCT_NAME}\UNDEFINED" | |||
SectionEnd | SectionEnd | ||
" " | " " | ||
Line 45: | Line 44: | ||
And all products are built. | And all products are built. | ||
[[ | [[Category:Code Examples]] |
Latest revision as of 18:29, 24 June 2005
Author: HG-Owen (talk, contrib) |
Links
See this forum topic.
Description
Typing the following at the command line will create a new installer:
MkNew Test
It outputs this:
Please wait. Creating installer with filename Test.nsi ------------------------------------------------ Completed file creation. Please wait... Ammending MAKE file ---------------------------------------------- Completed ammending Make.cmd. Completed creation. -- Press any key to continue . . .
And insert this into the file Test.nsi:
;Installer script for Humgun template. " " ;Define the product name and version !define PRODUCT_NAME "UNDEFINED" !define PRODUCT_VERSION "1.0.0.1" " " " " ;Main installer section Section "MainSection" SEC01 SetOutPath "$INSTDIR" SetOverwrite ifnewer File "UNDEFINED" SetOutPath "$SYSDIR" File "C:\cncs232.dll" SetOutPath "$SMPROGRAMS\${COMPANY_NAME}\" CreateShortCut "$SMPROGRAMS\Humgun\${COMPANY_NAME}\Run.lnk" \ "$PROGRAMFILES\${COMPANY_NAME}\${PRODUCT_NAME}\UNDEFINED" SectionEnd " " !include Common.nsh
Then when complete and ready to build, you type this:
Make
And all products are built.