开发者

Check for type of file system in an MSI package

开发者 https://www.devze.com 2022-12-29 06:19 出处:网络
In my MSI package I need to set user rights to a directory using cacls.exe. It works fine in an NTFS environment but fails when run on a Fat32 file system. Is there a method to determine the type of f

In my MSI package I need to set user rights to a directory using cacls.exe. It works fine in an NTFS environment but fails when run on a Fat32 file system. Is there a method to determine the type of file system of the drive the software is insta开发者_开发知识库lled to?

I'm using WiX 3 to create my MSI package but any hint pointing to the MSI database would help as well.

Many thanks in advance.


You could use a custom action preferably a dll, however a vbscript or bat file will work. in the custom action you can call the wmi root\cimv2\Win32_LogicalDisk\FileSystem property which returns the file system type. then your CA can return the file system type as a installer property.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号