Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 10th July 2009, 13:08   #1
irakleio
Junior Member
 
Join Date: Nov 2008
Posts: 4
multiple file type (and icons) association, plus menu entries

Hi,

First, i'd like to precise i'm looking for a solution for a week now, reading forum and wiki, even looking at VLC installer script. I might missed something.

Anyway, here is my problem :

I have two file types (i.e two extensions *.ext1 and *.ext2)

for ext1 :

if user wants to associate ext1 with the app
{
associate .ext1 to icon1.ico
add first menu entry as default (appearing in bold)
add second menu entry
}
else
{
add first menu entry as non default
add second menu entry
}

for ext2 :

if user wants to associate ext2 with the app
{
associate .ext2 to icon2.ico
add a menu entry as default (appearing in bold)
}
else
{
add a menu entry as non default
}


I almost succeeded doing this, but i'm afraid i'm messing up registry keys (i just cant put the finger on how it works internally)
Using registerExtension macro doesn't seem to give me enough possibilities (concerning icon and menu entries stuff)

Is there an easy way to make this ?

Thank you for your attention
irakleio is offline   Reply With Quote
Old 10th July 2009, 13:26   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Attach your code. Also make sure you are using LogicLib.

Stu
Afrow UK is offline   Reply With Quote
Old 10th July 2009, 13:35   #3
irakleio
Junior Member
 
Join Date: Nov 2008
Posts: 4
Sure

I don't have the script with me now, but i'll attach it as soon as possible

Thanks
irakleio is offline   Reply With Quote
Old 10th July 2009, 17:50   #4
irakleio
Junior Member
 
Join Date: Nov 2008
Posts: 4
Here is my script (attached file)

This version only does stuff if user checked the corresponding section, which doesn't fit my requirements (i also want to do something particular if a section is unchecked)

Also, i'm afraid i should do some extra-code to make this work on Vista.

SEC031 works properly, but SEC032 doesn't. The only difference i see is that SEC032 extension is already associated with application on my comp

any help would be very much appreciated

Edit : i just realized i may not use the LogicLib you mentionned
Attached Files
File Type: nsi setuprromodern.nsi (9.4 KB, 139 views)
irakleio 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