Thursday, 22 August 2013

Making Chrome Extension Installer In NSIS

Making Chrome Extension Installer In NSIS

!define PRODUCT_VERSION "1.0.0"
!define CRXNAME "1.crx"
!define CRXID "qwertyuiopasdfghjklzxcvbnm"
SetOutPath "$INSTDIR"
File "${CRXNAME}"
WriteRegStr HKLM "Software\Google\Chrome\Extensions\${CRXID}" "path"
"$INSTDIR\${CRXNAME}"
WriteRegStr HKLM "Software\Google\Chrome\Extensions\${CRXID}" "version"
"${PRODUCT_VERSION}"
WriteRegStr HKLM "Software\Wow6432Node\Google\Chrome\Extensions\${CRXID}"
"path" "$INSTDIR\${CRXNAME}"
WriteRegStr HKLM "Software\Wow6432Node\Google\Chrome\Extensions\${CRXID}"
"version" "${PRODUCT_VERSION}"
getting This Error
!define: "MUI_INSERT_NSISCONF"=""
Changing directory to: "C:\Users\XX\Desktop"
Processing script file: "C:\Users\XX\Desktop\szdsds.nsi" (ACP)
!define: "PRODUCT_VERSION"="1.0.0"
!define: "CRXNAME"="1.crx"
!define: "CRXID"="qwertyuiopasdfghjklzxcvbnm"
Error: command SetOutPath not valid outside Section or Function
Error in script "C:\Users\Styli\Desktop\szdsds.nsi" on line 5 -- aborting
creation process
All Files Are In Same Directory. Tried Changing Directory still getting error

No comments:

Post a Comment