Jump to content
Sign in to follow this  
Fasix

strange problem with RunWait()

Recommended Posts

Fasix

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

Share this post


Link to post
Share on other sites
Jos

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.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Jos

try to see if that works for you:

ShellExecuteWait("BinISCC.exe", "Datainstall_script.iss",@scriptdir)
Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Fasix

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

Share this post


Link to post
Share on other sites
Jos

Try this one and see if you get any error message:

RunWait(@comspec & " /k BinISCC.exe Datainstall_script.iss")

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Fasix

WTF?! Now say the file is already in use by another process???

Share this post


Link to post
Share on other sites
Fasix

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 :oops:

Edited by Fasix

Share this post


Link to post
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
Sign in to follow this  

×