Jump to content

Recommended Posts

Posted

Here is another challenge :(

how can we make WPI check if the program is allready installed on the disk

say i want to check if acdsee is installed

so it should check if the file

"%programfiles%\ACD Systems\ACDSee\8.0.Pro\ACDSee8Pro.exe"

exist

and if so, WPI will forbid the installation of acdsee

could it be done using the conditions box ?

I hope you guys understand what i mean :)

and thanks alot for all your help


Posted
Actually you use "Grayed condition" for that:

FileExists('%programfiles%\ccleaner\ccleaner.exe')

thanks kellsenellenelvian

i'll try it soon :)

Posted

did you want WPI to check to see if an appliaction is already installed within Windows or is available on the CD to install?

As I understand it, if you want to check if something should be available to install then you use cond, and if you want to check if something has already been installed then you use gcond.

If you use cond, I would suggest browse for the file that you call in cmd1 and if you use gcond, i would suggest you use the uninstall key in HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\ProgName or GUID\DisplayVersion or something relevant in here.

Posted

I tried to use a gcond today to check a registry key, but it didn't seem to work so if you get that working, please let me know

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...