Installing chrome extension from NSIS installer? Installing chrome extension from NSIS installer? google-chrome google-chrome

Installing chrome extension from NSIS installer?


!define PRODUCT_VERSION "1.0.0"!define CRXNAME "extension.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}"


The only way I could think of is to open Chrome for the user at the specific URL where the extension is located. Of course some user instructions beforehand. A more evil way would be to do the SendKey events for the user. Depends how much "dancing with the devil" you are up for ;)