Re: SMS Installer failure: "Check If File/Dir Exists"
- From: "Garth" <Spam@xxxxxxx>
- Date: Tue, 30 Jan 2007 14:11:29 -0500
It works just fine.. I made a few changes to the code.
item: Check Disk Space
end
item: Set Variable
Variable=JAVABEAN
Value=C:\Program Files\Java
end
item: Set Variable
Variable=JAVA
Value=%javaBean%\1.5.0_01\bin\java.exe
end
item: Check if File/Dir Exists
Pathname=%JAVA%
Flags=01000100
end
item: Set Variable
Variable=J1
Value=1
end
item: Else Statement
end
item: Set Variable
Variable=J1
Value=0
end
item: End Block
end
item: Set Variable
Variable=JAVA
Value=%javaBean%\1.5.0_06\bin\java.exe
end
item: Check if File/Dir Exists
Pathname=%JAVA%
Flags=01000100
end
item: Set Variable
Variable=J2
Value=1
end
item: Else Statement
end
item: Set Variable
Variable=J2
Value=0
end
item: End Block
end
item: Check if File/Dir Exists
Pathname=c:\NTDETECT.COM
Flags=01000100
end
item: Set Variable
Variable=J3
Value=1
end
item: Else Statement
end
item: Set Variable
Variable=J3
Value=0
end
item: End Block
end
"nickmo" <nickmo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:78C05AA9-1B9D-4469-AF3A-495C96C5BD01@xxxxxxxxxxxxxxxx
It seems the action "Check If File/Dir Exists" does not function. Or
maybe I
am possibly using it incorrectly. When debugging the install by stepping
through the execution, it appears to process the below command but jumps
right to the next command. Which indicates to me that it cannot actually
parse the file system to evaluate the condidtion. Can anyone confirm or
deny
this?
item: Check Disk Space
end
item: Set Variable
Variable=JAVA
Value=C:\Program Files\Java
end
item: Check if File/Dir Exists
Pathname=%JAVA%\1.5.0_01\bin\java.exe
Flags=01000100
end
item: Set Variable
Variable=J1
Value=1
end
item: Check if File/Dir Exists
Pathname=%JAVA%\1.5.0_06\bin\java.exe
Flags=01000100
end
item: Set Variable
Variable=J2
Value=1
end
item: End Block
end
item: End Block
end
.
- Prev by Date: Re: Software Repackager/Installer
- Previous by thread: Re: Software Repackager/Installer
- Index(es):
Relevant Pages
|