Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Uninstalling Very old version of application


1 reply to this topic

sureshVed

sureshVed
  • Members
  • 3 posts

Posted 23 October 2002 - 17:16

I have used custom action to uninstall some of the older version (version installed prior to using Windows Installer MSI) of my product. I queried the registry for "Uninstall" String and used the value returned (C:\uninst.exe -f C:\Myproduct\DelsL1.isu .....) to run the uninstallation using a custom exe.

When I tried my few of test scenarios there is a case where the previous installation would have been deleted manually by the user instead of uninstalling thru the control pannel/menu.

In this case all the registry entry remains but none of the files exist particularly "C:\Myproduct\DelsL1.isu". So my custom action pops up with an error message saying it cannot uninstall.

Question?
Is there a way to detect the existance of the file "C:\Myproduct\DelsL1.isu" before I call the uninstall custom exe?

Appreciate any kind of help
Me :((

yoavshabtai

yoavshabtai
  • Members
  • 19 posts

Posted 27 October 2002 - 16:23

Hi

To detect a file existence maybe use the "Scripting.FileSystemObject"

Like this:
[code=auto:0]
Set FSO = CreateObject("Scripting.FileSystemObject")
if FSO.FileExists (szFilePath) then
//OK
endif;


--Yoav