This can be done by using a custom action. Here is some sample VBScript code which finds the installation folder:
Code: Select all
Function findFolder()
'declare the variables
dim filesys, newfolder
'initialize the file system object
set filesys=CreateObject("Scripting.FileSystemObject")
'test if the folder exists
If Not filesys.FolderExists(Session.Property("APPDIR")) Then
MsgBox "The application folder does not exist. Please restore it."
findFolder = 1603
End If
End Function
Regards,
Cosmin