Skip to content
⌘ NSIS Forum Archive

How to generate volume names like /dev/sda1?

1 posts

nsiscat#

How to generate volume names like /dev/sda1?

Hi all,
is there a way to generate harddrive volume names like /dev/sda1 using nsis?

e.g.:
1. if drive 2 partition 4 is mounted on C:\,
use nsis to generate "/dev/sdb4".

2. if drive 1 partition 1 is mounted on D:\,
use nsis to generate "/dev/sda1".

It seems there are ways to achieve this task by e.g. DeviceIoControl, WMI, etc.,
but I wonder if there is an "official" way or a simpler way to use with nsis.

any info very appreciated. 🙂

thanks and regards,
nsiscat