MGadAllah Posted August 26, 2006 Share Posted August 26, 2006 Hi all:Here is the situationI've made two auto it scripts for internet download manager, one for the application and the other one for the patchInstalling the 1st one with WPI 5.3 is easy ... %wpipath%\Install\what ever\autoit script.exeThen 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 thereso 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 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 More sharing options...
zorphnog Posted August 26, 2006 Share Posted August 26, 2006 Well I haven't tried it, but I think this is what you want. You should be able to use the dos environment variable %programfiles%.Use something like this as a command:%programfiles%\Application\autoIt.exe Link to comment Share on other sites More sharing options...
MGadAllah Posted August 26, 2006 Author Share Posted August 26, 2006 Thanks for your replyBut I've already tried that but does not working, I've get a question mark beside the application during WPI installation screenAny one can help with that one?Thanks Link to comment Share on other sites More sharing options...
zorphnog Posted August 26, 2006 Share Posted August 26, 2006 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 More sharing options...
MGadAllah Posted August 26, 2006 Author Share Posted August 26, 2006 no space at all, the return is 0 for failed and 1 for successmine was 0 Link to comment Share on other sites More sharing options...
oneless Posted August 26, 2006 Share Posted August 26, 2006 i use a lot of gcond'sgcond[pn]=['FileExists("%ProgramFiles%\\BSPlayer\\bsplayer.exe")'];so , the variable is defined. Link to comment Share on other sites More sharing options...
MGadAllah Posted August 26, 2006 Author Share Posted August 26, 2006 (edited) i use a lot of gcond'sgcond[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 August 26, 2006 by mgadallah Link to comment Share on other sites More sharing options...
oneless Posted August 27, 2006 Share Posted August 27, 2006 ... 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?Thanksi dont know if it is a good ideea to "put this line in the config command" , manually or notsuch 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 editso 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 notepadand 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 interactionbut i dont use this one because is much harder for finding items.this about edit config.jsabout gcond (grayed condition) , was a great ideea introduced in WPIto 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 DISABLEDthis 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 conditionwho is evaluate , if is true the entry is showed by WPI , if is false the entry is hidedby 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 More sharing options...
MGadAllah Posted August 29, 2006 Author Share Posted August 29, 2006 I'm very sorry to tell that It does not workingI've tried the manual and the WPI configbut nothing workedI hope if any one find any solvethanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now