Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find previous installation?
Message
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01225288
Message ID:
01225349
Views:
24
>Hi all,
>
>Is there a way to determine whether an application that exists in the "Add/Remove application list"?
>
>We are planning to send out a new version of our application. When the user installs the new one I'd like to find out if an older version was installed. If an older version was found, our upgrade wizard would convert the data etc. in the process. Our application was installed using installShield expression version and it has a unique product id. The user was given the option to install the application wherever he or she wanted, therefore looking for the installation path would not be an accurate way to determine the existence of a previous installation. The conversion will take place when they launch the new application, not the new setup program.

Found a way to determine whether a product is installed:
o = NEWOBJECT("registry","registry.vcx")
*The number 33558274CD136D110BF50001B4A229B3 is the unique product id
*If the following line returns true, the product is installed.  Quite simple.
?o.iskey([\Installer\Products\33558274CD136D110BF50001B4A229B3],BITSET(0,31))
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Reply
Map
View

Click here to load this message in the networking platform