Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 15th July 2003, 12:49   #1
mhollander
Junior Member
 
mhollander's Avatar
 
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:
mhollander is offline   Reply With Quote
Old 15th July 2003, 12:59   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 15th July 2003, 13:11   #3
mhollander
Junior Member
 
mhollander's Avatar
 
Join Date: Jun 2003
Location: South Africa
Posts: 44
Version 2 Beta 3
mhollander is offline   Reply With Quote
Old 15th July 2003, 13:13   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 15th July 2003, 15:03   #5
mhollander
Junior Member
 
mhollander's Avatar
 
Join Date: Jun 2003
Location: South Africa
Posts: 44
That fixed it.

mhollander is offline   Reply With Quote
Old 15th July 2003, 15:09   #6
mhollander
Junior Member
 
mhollander's Avatar
 
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.
mhollander is offline   Reply With Quote
Old 15th July 2003, 15:10   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump