Old 3rd July 2020, 14:03   #1
speedcristal
Junior Member
 
Join Date: Jul 2020
Posts: 5
NSIS: Assign a custom icon

Hello,

How to assign under NSIS a custom icon on for example, a file with a ".testica" extension?
Would you have a sample script to do this, please?

Thanks.
speedcristal is offline   Reply With Quote
Old 3rd July 2020, 15:20   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,319
Write a DefaultIcon value to the registry.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 3rd July 2020, 16:36   #3
speedcristal
Junior Member
 
Join Date: Jul 2020
Posts: 5
Would you have a sample script with .testica extension, please?

Thanks.
speedcristal is offline   Reply With Quote
Old 3rd July 2020, 16:46   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,319
You usually don't just assign a icon to a extension, you also assign a verb so the file can be opened in its application.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump