Archive: (UN)Install Windows Shell integration than WinZIP


(UN)Install Windows Shell integration than WinZIP
Hello,

i have a simple Archiver and would like to include in NSIS
a Windows Shell integration.

Extract file
Extract file here
Add files
Mail created archive to

Is there a way to make this?

Thank you...


I think you need to associate action's with file of some extension. If I'm right try to see this link. Register your file type and create subkeys:
WriteRegStr HKCR "youExt\Shell\Extract file\command\" "" 'action_cmd "%1"'
WriteRegStr HKCR "youExt\Shell\Extract file here\command\" "" 'action_cmd "%1"'
etc.

Hope this help you.


Hello,

here is an example
they are in the shellex ...?

Can you give me one example..
I have crashed my Windows with false register.

See in the attach the pictures.


Here is an example of file association.

This what you want to do in NSIS:

WriteRegStr HKCR ".ext" "" "ExtFile"
;regester extension

WriteRegStr HKCR "ExtFile" "" "Test Extension File"
;file-type description
WriteRegStr HKCR "ExtFile\DefaultIcon" "" "c:\windows\regedit.exe,0"
;file-type icon - if you want to do it

WriteRegStr HKCR "ExtFile\Shell\Action1" "" "Edit File"
;action1 description - here "Edit file"
WriteRegStr HKCR "ExtFile\Shell\Action1\command" "" 'notepad.exe "%1"'
;action1 command -> here - open file with notepad

WriteRegStr HKCR "ExtFile\Shell\Action2" "" "Armagedon"
;action2 description
WriteRegStr HKCR "ExtFile\Shell\Action2\command" "" 'format c:\'
;action2 command (here format c:\) :)

WriteRegStr HKCR "ExtFile\Shell" "" "Action1"
;set default action -> here as default set Action1="Edit File"

In your case you need to create four sub-keys (actions) with descriptions - Extract file, Extract file here, Add files, Mail created archive to. And descript its commands.

Edit:
And I cann't download attachment.


The attachment appears to be a blank bitmap.