Archive: automatic instal in USB key


automatic instal in USB key
hello ! I want create a simply installer :

the NSIS script check available removable disk (usb key) and install(or unzip) file on it ... that all

admin of todae.fr have tried to help me but I'm a great noobz in NSIS ...

anybody have creat a script like this ?

thank


There is a plugin that will enumerate the available USB keys. I forgot what it was called though.

1) Enum Drives
2) Create a custom page
3) Add the returned values to the custom page



Name "test"
OutFile "test.exe"
RequestExecutionLevel user
!include "FileFunc.nsh"
!insertmacro GetDrives

Function OnDriveFound
MessageBox MB_OK "USB : $9"
FunctionEnd

Section
${GetDrives} "FDD" "OnDriveFound"
SetOutPath $9\test
file test.txt
SectionEnd


but don't work ...

This plugin might be what you need:

http://nsis.sourceforge.net/GetFirst...eDrive_plug-in

It finds the first removable drive in the system, and it can also find all removable drives