|
|
#1 |
|
Junior Member
Join Date: Jun 2003
Location: South Africa
Posts: 44
|
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 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: |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
What version of NSIS?
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2003
Location: South Africa
Posts: 44
|
Version 2 Beta 3
|
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Try the latest CVS version and tell me if it happens.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jun 2003
Location: South Africa
Posts: 44
|
That fixed it.
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jun 2003
Location: South Africa
Posts: 44
|
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. |
|
|
|
|
|
#7 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Works fine for me.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|