Archive: GetDirves does NOT work!


GetDirves does NOT work!
i use the following code in my installer,but it does NOT work!

---------------------------------

!include "LogicLib.nsh"
!include "FileFunc.nsh"
!insertmacro GetDrives

;other codes

Section -DelVc2008TempFiles
${GetDrives} "FDD" "DelTempFilesOfVc2008"
SectionEnd

Function DelTempFilesOfVc2008
MessageBox MB_OK "$9 ($8 Drive)"
MessageBox MB_OK "11111111"
Push $0
FunctionEnd

------------------------------------
the section DelVc2008TempFiles is before Section -post.
i didn't even see MessageBox MB_OK "11111111"!
why ?


Sorry,it's my mistake.I should use HDD instead of FDD!


Do you actually have any floppy drives on your computer? If it is not found, it will never call that function.

Just out of curiosity, why are you searching for floppy drives in this day and age?


Originally posted by CrushBug
Do you actually have any floppy drives on your computer? If it is not found, it will never call that function.

Just out of curiosity, why are you searching for floppy drives in this day and age?
i just copied the example code and tried it.

Originally posted by nsispysn
i just copied the example code and tried it.
That's a common error, you should first read the documentation... always

Yeah, I had started my post before you replied, so I didn't see your clarification. =)