tossnet
26th March 2011 10:23 UTC
VIProductVersion add DisplayIcon
Hello,
How modify VIADDVersionKey to create this :
VIAddVersionKey "DisplayIcon" "$instdir\\${PRODUCT_EXE}"
actually I use simply :
VIProductVersion "${PRODUCT_VERSION}"
VIAddVersionKey "ProductName" "${PRODUCT_NAME}"
VIAddVersionKey "CompanyName" "${PRODUCT_PUBLISHER}"
VIAddVersionKey "FileVersion" "${PRODUCT_VERSION}"
VIAddVersionKey "FileDescription" "${PRODUCT_NAME}"
I have found some samples who write :
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayIcon" "$INSTDIR\Uninstall.exe"
but how know
${REG_UNINSTALL} ?
Something this is this key HKLM\SOFTWARE\
Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\... or HKLM\SOFTWARE\
Windows\Microsoft\Windows\CurrentVersion\Uninstall\ ...
Thank you
pengyou
26th March 2011 14:04 UTC
'DisplayIcon' is not one of the standard VersionInfo settings.
If you want to specify the icon for your installer (or uninstaller) and are using the Modern User Interface then you can use the MUI_ICON setting (for installers) or MUI_UNICON setting (for uninstallers) as described in the Modern User Interface manual (see the "Page Header" description under "Interface Settings" in "2. Interface configuration")
If you are using the classic interface then you can use the "Icon" or "UninstallIcon" commands:
http://nsis.sourceforge.net/Docs/Chapter4.html#4.8.1.18
http://nsis.sourceforge.net/Docs/Chapter4.html#4.8.1.42
Are you trying to set the icon which appears in the "Add or Remove Programs" list?
'DisplayIcon' is one of the optional values that can be used when defining the uninstall information:
http://nsis.sourceforge.net/Docs/AppendixD.html#D.2
tossnet
28th March 2011 08:41 UTC
Hello, yes, I trying to set the icon which appears in the "Add or Remove Programs" list, but I don't kown the right KEY ; By example this key change with the computer :
Software\Microsoft\Windows\CurrentVersion\Uninstall\Product
or sometimes
Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\...
:igor:
Highcoder
28th March 2011 09:09 UTC
:-)
You donĀ“t have to know the exact key because it is done automatically.
You only have to write:
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Product" "DisplayIcon" "$INSTDIR\Uninstall.exe"
And if your setup run under a 64bit Windows this Key automatically find his way to
the
Wow6432Node.
cheers
Afrow UK
28th March 2011 18:10 UTC
To disable that behaviour, use SetRegView 32.
Stu