Skip to content
⌘ NSIS Forum Archive

automatic instal in USB key

4 posts

biscottealacrev#

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#
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#

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#
This plugin might be what you need:



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