|
|
|
|
#1 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
usb controls
Is there a way to have USB controls like Safely Remove Device and such?
If not could someone make a plugin please |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
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. "Just do it" |
|
|
|
|
|
#3 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Yep thats what I want to do
|
|
|
|
|
|
#4 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
so how can i do it?
|
|
|
|
|
|
#5 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
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 |
|
|
|
|
|
#6 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
and is there any dll that i can call
|
|
|
|
|
|
#7 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
and is there a dll i can call
|
|
|
|
|
|
#8 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#9 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Nothing on MSDN
I have found hotplug.dll which looks interesting... |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
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. "Just do it" |
|
|
|
|
|
#11 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
Well OK I was in a good mood, the attatched Delphi source file will get you (or me
, or maybe someone else started...
"Just do it" |
|
|
|
|
|
#12 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Damn
Just uninstalled Delphi Could someone compile this please? |
|
|
|
|
|
#13 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
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. "Just do it" |
|
|
|
|
|
#14 |
|
Major Dude
|
delphi sucks :P
![]() because you cant build the universe on E = m * Delphi², can you? hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
|
|
#15 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
This is what brings up the dialog:
rundll32.exe shell32.dll,Control_RunDLL hotplug.dll How do call this from a script? |
|
|
|
|
|
#16 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
With ExecWait.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#17 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Is anyone working on this plugin?
|
|
|
|
|
|
#18 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
If not can someone please
|
|
|
|
|
|
#19 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
This plugin would be really handy if someone developed
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|