Archive: Variables and file types


Variables and file types
Hiya every body

i have this code:

Section
ReadRegStr $1 HKLM "Software\JavaSoft\Java Runtime Enviroment\1.4.2_01" JavaHome
WriteRegStr HKCR ".myfile" "" "FileomineFile"
WriteRegStr HKCR "FileomineFile" "" "Fileomine File Type"
WriteRegStr HKCR "FileomineFile\shell" "" ""
WriteRegStr HKCR "Fileomine\shell\open" "" ""
WriteRegStr HKCR "FileomineFile\shell\open\command" "" '"$1\bin\javaw.exe" -jar "%1" %'
SectionEnd

when i look into the reg key i found this ""\bin\javaw.exe" -jar "%1" %"

how can i do it?
thnx


Please search the NSIS Archive at http://nsis.sf.net/archive
There are several JRE detection examples.

Using the forum search you can also find previous topics about this issue.