Jump to content

Calling file from ProgramFiles


Recommended Posts

Hi all:

Here is the situation

I've made two auto it scripts for internet download manager, one for the application and the other one for the patch

Installing the 1st one with WPI 5.3 is easy ... %wpipath%\Install\what ever\autoit script.exe

Then I made a sfx file for both the script and patch so they will be extracted to the application folder under programe files because patch must be run from there

so what I want to know how should I call the auto it script .exe from there?

I've tried many things and many ways but failed :no:

so can you help me with a way to call the auto it .exe file from the application folder under program files folder?

Thanks

Link to comment
Share on other sites


Have you looked at you wpi log file to see what the return code is on the failing command? I just don't see how the %programfiles% variable wouldn't work.

Note: If your command path has a space in it put the command in quotations.

Link to comment
Share on other sites

i use a lot of gcond's

gcond[pn]=['FileExists("%ProgramFiles%\\BSPlayer\\bsplayer.exe")'];

so , the variable is defined.

Could you please tell where should I put this line in the config command? or manually in the config.js?

beside I really first time to know about such a thing, so a little explanation will be nice and much appreciated,

What is the gcond's?

Thanks

Edited by mgadallah
Link to comment
Share on other sites

... Could you please tell where should I put this line in the config command? or manually in the config.js?

beside I really first time to know about such a thing, so a little explanation will be nice and much appreciated,

What is the gcond's?

Thanks

i dont know if it is a good ideea to "put this line in the config command" , manually or not

such you are not very sure what is doing.

so , config.js can be edited in 2 ways:

first way, inside WPI , pressing "config" button, clicking in "navigation" field the program to edit

so there you can see something like (here really is this entry)

Grayed condition = FileExists("%ProgramFiles%\BSPlayer\bsplayer.exe")

if you choose the second way to edit config.js manually , open it with notepad

and you can find (in my config.js exist this line , i give this example for show you the difference)

gcond[pn]=['FileExists("%ProgramFiles%\\BSPlayer\\bsplayer.exe")'];

the last one is the real syntax in config.js,

first is based on a front end created by WPI team for simplyfing user interaction

but i dont use this one because is much harder for finding items.

this about edit config.js

about gcond (grayed condition) , was a great ideea introduced in WPI

to make a difference between already installed programs and not installed programs

- not installed programs have normal colour and the check box enabled

- installed programs have gcond colour (other colour , user editable) and the check box DISABLED

this check box DISABLED make me nervous.

i think this is the "little explanation" you asking.

as a supleant :

gcond have same syntax as cond, but cond (CONDITION) is just a condition

who is evaluate , if is true the entry is showed by WPI , if is false the entry is hided

by WPI (simply you cannot see the entry after WPI is starting)

BUT , i think this are nothing to do with your original question about %programfiles% variable.

for helping you , you mus help us , providing something .... files ... code...

Link to comment
Share on other sites

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...