Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   usb controls (http://forums.winamp.com/showthread.php?t=237506)

rmccue 8th February 2006 09:27

usb controls
 
Is there a way to have USB controls like Safely Remove Device and such?
If not could someone make a plugin please

onad 9th February 2006 10:44

You problem is not really clear, BUt i read it like: when install begins I want to send an command to the OS as same as someone would have clicked "Savly remove hardware", Is this correct?

NOTE:
Most of the time if you need a feature like this you installer strategy is wrong.

And yes, theoretically one can create a plugin for this or use the System plugin.

rmccue 10th February 2006 11:05

Yep thats what I want to do

rmccue 10th February 2006 21:28

so how can i do it?

rmccue 12th February 2006 02:15

I have noticed that I could use devcon but that needs too much config by the user
Since my installer is always on a USB could it just use the current drive letter

rmccue 13th February 2006 19:30

and is there any dll that i can call

rmccue 13th February 2006 19:36

and is there a dll i can call

kichik 14th February 2006 19:19

You should search MSDN for information on this. If you find out a piece of code that does this, someone here will surely be able to help you converting it into NSIS code.

rmccue 15th February 2006 07:02

Nothing on MSDN
I have found hotplug.dll which looks interesting...

onad 15th February 2006 14:19

http://msdn.microsoft.com/library/de...trol_codes.asp

Theoretically I could create a plugin yes, but sorry I do not even have time improve and to modify the only plugin I wrote for NSIS.

onad 15th February 2006 17:40

1 Attachment(s)
Well OK I was in a good mood, the attatched Delphi source file will get you (or me ;) , or maybe someone else started...

rmccue 16th February 2006 06:03

Damn
Just uninstalled Delphi
Could someone compile this please?

onad 16th February 2006 10:58

It is just the essential code, not a whole NSIS plugin. You have to create this yourself or mimic the behaviour by using the NSIS System plugin.

Well combine the example Delphi NSIS plugincode with this code and you are well on your way to your goal.

Yes, sadly most of the time programming takes a lot of persistence and effort, nothing else helps there ;)

Good luck.

Comm@nder21 16th February 2006 18:04

delphi sucks :P ;) :D

because you cant build the universe on E = m * Delphi², can you?

rmccue 18th February 2006 02:34

This is what brings up the dialog:
rundll32.exe shell32.dll,Control_RunDLL hotplug.dll

How do call this from a script?

kichik 19th February 2006 18:58

With ExecWait.

rmccue 25th February 2006 03:15

Is anyone working on this plugin?

rmccue 25th February 2006 21:19

If not can someone please

rmccue 1st March 2006 19:32

This plugin would be really handy if someone developed


All times are GMT. The time now is 17:56.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.