biscottealacrev
7th June 2008 12:34 UTC
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
fabian.rap.more
8th June 2008 11:44 UTC
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
biscottealacrev
15th June 2008 12:29 UTC
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 ...
pengyou
15th June 2008 18:11 UTC
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