PDA

View Full Version : Setting a Volume name on target drive



NewsArchive
05-11-2010, 01:22 AM
I'm developing a installer that will actually be used to set up files on
flash drives (the flash drives will be used to distribute a demo
application). As part of this, I'd like to have the installer set the
volume name on the flash drive. Is there an easy way to do this in
SetupBuilder, or am I going to have to write a DLL which will call the
appropriate API for setting the volume name?

Ben
- --
Ben Coleman
CTO, Accelerated Design, Inc.
http://www.accelerateddesign.com/

NewsArchive
05-11-2010, 01:23 AM
Like this?

http://msdn.microsoft.com/en-us/library/aa365560(v=VS.85).aspx

Jeff Slarve

NewsArchive
05-12-2010, 01:01 AM
Ben,

Exactly what Jeff suggested. Just use the "Call Dll..." script function to
call the SetVolumeLabel Windows API.

Friedrich

NewsArchive
05-13-2010, 02:42 AM
> Exactly what Jeff suggested. Just use the "Call Dll..." script function to
> call the SetVolumeLabel Windows API.

Thanks, just what I needed!

Ben
- --
Ben Coleman
CTO, Accelerated Design, Inc.
http://www.accelerateddesign.com/