Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your test would need to be at run-time, so <a href="https://stackoverflow.com/questions/488731/detecting-if-the-target-volume-is-ntfs-using-nsis#488954">Borzio's</a> answer would not work by itself.</p> <p>It also looks like the ExecWait command does not allow for redirection, so it would not work to execute it that way and then check the contents of a file.</p> <p>It looks to me like your best options would be to pick one of:</p> <ul> <li>make a batch file that would run chkntfs and then set the error level based on the result</li> <li>write a C/C++/VB/etc. app that would run chkntfs and then set the error level based on the result</li> <li>write a C/C++/VB/etc. app that would use Win32 APIs to determine the filesystem</li> <li>write a plug-in for NSIS that would use Win32 APIs to determine the filesystem</li> </ul> <p><b>Edit:</b> Borzio updated his before I finished mine :)</p> <p>You might need to add something I found on the Winamp forums: <a href="http://forums.winamp.com/showthread.php?postid=834044" rel="nofollow noreferrer">ExecWait with file redirection</a></p> <pre><code> ExpandEnvStrings $1 %COMSPEC% ExecWait '"$1" /C chkntfs c: | find /c "NTFS"' $0 </code></pre> <p>Without the <code>ExpandEnvStrings $1 %COMSPEC%</code>, it was not working on my system to generate a redirected file.</p> <p>I've tested the above, and it does work, 0 for NTFS and 1 for non NTFS.</p> <p>The only possible drawback for this method is that a command windows pops up briefly during the code execution.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload