Old 30th January 2018, 16:04   #1
Scottswan
Junior Member
 
Join Date: Sep 2005
Location: MI
Posts: 6
How do you replace FileAssociation.nsh

Every time I install a new version of NSIS, FileAssociation.nsh is eliminated.
My install uses that to register an extension.

PHP Code:
    ;Register the vis extension
    
${registerExtension"c:\Program Files\WinShear32 Viewer\WS32viewer.exe" ".vis" "VIS_File"
    
;Assign the icon to vis files.
    
WriteRegStr HKCR "WS32viewer.Document\DefaultIcon" "" \
    
"$INSTDIR\WS32viewer.exe,1"
    
;Call RefreshShellIcons 
I'm having trouble finding how to do that differently.

Thanks
Scottswan is offline   Reply With Quote
Old 30th January 2018, 17:55   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,926
When you install you are asked if you want to uninstall the old version, don't do that if you want to keep your old files.

The other alternative is to store 3rd-party files somewhere else. I personally have multiple NSIS installs and I keep the 3rd-party stuff somewhere else.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 30th January 2018, 18:47   #3
Scottswan
Junior Member
 
Join Date: Sep 2005
Location: MI
Posts: 6
Oh ok, that's what I've been doing. I wasn't sure if I'd run into EoL on that or not.
Scottswan 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