Fasix Posted March 18, 2012 Share Posted March 18, 2012 hello folks! why RunWait not accept parameter? it always works so far, but not with this... RunWait("Bin\ISCC.exe Data\install_script.iss") i've the following structure [bin] |_ISCC.exe and other innosetup stuff [Data] |_install_script.iss script.au3 if i try with batch script like this: @Bin\ISCC.exe Data\install_script.iss, it works but with autoit return: impossible find file... help me please.. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2012 Developers Share Posted March 18, 2012 You are using relative paths. Is the path of the iss file relative to the Program or Script? Set the Workdir parameter to the proper path for this. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Fasix Posted March 18, 2012 Author Share Posted March 18, 2012 this is the structure Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2012 Developers Share Posted March 18, 2012 (edited) try to see if that works for you: ShellExecuteWait("BinISCC.exe", "Datainstall_script.iss",@scriptdir) Edited March 18, 2012 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Fasix Posted March 18, 2012 Author Share Posted March 18, 2012 Unfortunately I had already tried and does not work ... before asking for help here, I did many tests, and the strange thing is that with the batch script works ... Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2012 Developers Share Posted March 18, 2012 Try this one and see if you get any error message:RunWait(@comspec & " /k BinISCC.exe Datainstall_script.iss") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Fasix Posted March 18, 2012 Author Share Posted March 18, 2012 WTF?! Now say the file is already in use by another process??? Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2012 Developers Share Posted March 18, 2012 Your script isn't opening the ISS file and keeping a lock on it? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Fasix Posted March 18, 2012 Author Share Posted March 18, 2012 (edited) 1 line above i close the file by fileclose() function..... and, again, i repeat, if drag the file on executable or use the batch it works...also try unlocker, but not is any process are locking the file...Your script isn't opening the ISS file and keeping a lock on it?1 moment... you are right... the problem occur during execution of my script... i renamed the file and it create a new one..., but on renamed works...OK problem solved!, i set the wrong handle of file in fileclose()....thanks for your precious help Jos Edited March 18, 2012 by Fasix 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