nsispysn
28th January 2010 02:08 UTC
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 ?
nsispysn
28th January 2010 05:23 UTC
Sorry,it's my mistake.I should use HDD instead of FDD!
CrushBug
28th January 2010 05:40 UTC
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?
nsispysn
28th January 2010 06:50 UTC
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.
Joel
28th January 2010 15:33 UTC
Originally posted by nsispysn
i just copied the example code and tried it.
That's a common error, you should first read the documentation...
alwaysCrushBug
28th January 2010 16:22 UTC
Yeah, I had started my post before you replied, so I didn't see your clarification. =)