Jump to content

strange problem with RunWait()


Recommended Posts

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:

Link to post
Share on other sites
  • Developers

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 post
Share on other sites
  • Developers

try to see if that works for you:

ShellExecuteWait("BinISCC.exe", "Datainstall_script.iss",@scriptdir)
Edited 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 post
Share on other sites
  • Developers

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 post
Share on other sites

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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...