startup + check hard drive exist c or d !
Hi everybody,
I use installshield 11.5 for windows and i would like to know if there is possible to know when the setup.exe starts if the computer has a drive c or d and so on !
is it possible with a custom action or others things!?
I've look in the documentation but i don't see anythings !
Have you got any idéa where i look or what can i do ?
Thanks
Christophe
I use installshield 11.5 for windows and i would like to know if there is possible to know when the setup.exe starts if the computer has a drive c or d and so on !
is it possible with a custom action or others things!?
I've look in the documentation but i don't see anythings !
Have you got any idéa where i look or what can i do ?
Thanks
Christophe
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
mark_holland21
17 years ago
Posted by:
christopheOce
17 years ago
Hi,
we d like to know just if there is a drive c:\ on the computer because we include msde in our package and msde create a log file at installation on the root c:\ !MSDE2K.LOG
of course if there isn't c:\ the installation failed !
in fact, we d like to check if there is a drive c:\ if no drive c:\ we thinh perhpas create a mapped drive just for the installation !
we have look if we suppress the creation of the log file of msde but NO !
Thanks
Christophe
we d like to know just if there is a drive c:\ on the computer because we include msde in our package and msde create a log file at installation on the root c:\ !MSDE2K.LOG
of course if there isn't c:\ the installation failed !
in fact, we d like to check if there is a drive c:\ if no drive c:\ we thinh perhpas create a mapped drive just for the installation !
we have look if we suppress the creation of the log file of msde but NO !
Thanks
Christophe
Posted by:
christopheOce
17 years ago
Posted by:
cygnusx1
17 years ago
Custom VBScript action:
Dim sExists
Set fso = CreateObject("Scripting.FileSystemObject")
Set colDrives = fso.Drives
sExists = 0
For Each oDrive in colDrives
If UCase(oDrive.DriveLetter)= "C" Then sExists = 1
Next
Select Case sExists
Case 0 'C:\ DOES NOT exist... do something
Case 1 'C:\ EXISTS... do something
End Select
Dim sExists
Set fso = CreateObject("Scripting.FileSystemObject")
Set colDrives = fso.Drives
sExists = 0
For Each oDrive in colDrives
If UCase(oDrive.DriveLetter)= "C" Then sExists = 1
Next
Select Case sExists
Case 0 'C:\ DOES NOT exist... do something
Case 1 'C:\ EXISTS... do something
End Select
Posted by:
christopheOce
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.