Archive: Problem with ifFileExists


Problem with ifFileExists
If I just check for C:\Program Files\Acme\Rockets\Super Booster then the installer will crash

If I check in stages then it will be OK E.G.

Check for C:\Program Files\Acme
Then for C:\Program Files\Acme\Rockets
Then for C:\Program Files\Acme\Rockets\Super Booster

The program will not crash

Is this by design or is it a problem :confused:

Sample code to demonstrate:

Goto CheckSupport
CheckSupport:
ifFileExists "$EXEDIR\SUPPORT\*.*" CheckMMC Disable
CheckMMC:
ifFileExists "$EXEDIR\SUPPORT\MMC\*.*" CheckIMMCEXE Disable
CheckIMMCExe:
ifFileExists "$EXEDIR\SUPPORT\MMC\IMMC.exe" Enable Disable
Disable:
StrCpy $0 0
Goto CheckComplete
Enable:
StrCpy $0 1
Goto CheckComplete
CheckComplete:


What version of NSIS?


Version 2 Beta 3


Try the latest CVS version and tell me if it happens.


That fixed it.

:)


I have noticed however that the AddSize Command does not work anymore
;)

My Mistake, Too many sections in my install and I got confused.

The AddSize is working perfectly

Sorry for the scare.


Works fine for me.