Hello, I have an installer ive been working on for some time setup like so
Before installing
-screen1
-screen2 ...
-screen7
While installing
progress bars
---------------------irrelevant up to this point--------
essentially my installer extracts a group of files to c:\%ProgramFilesFolder%\%AppFolder%\ some including install.cmd and update.exe.
__________________________________________________
After Installing
-internet connection check (custom screen by ulrich)
-Finished Install
-Updating
-Updating Finished
-Update Error
i have the icc page check a specific website to verify that update.exe can connect to where it has to and the problem is not on our end.
From the icc I send the installer to update error if a connection cannot be found which basically tells the user our download server is offline or they have a connection problem. If the connection check passes the installer sends the user to 'updating'
The page "Updating" is where Im having my problem, I have tried several things but nothing is working. First of all the program update.exe is not mine and I have no way to change how it works, that being said what Im trying to do is onClick next run the file update.exe with the argument silent=true. It will close by itself when finished. I do not want the "updating" screen to pass the user to "update finished" until update.exe has been executed and closed.
I have tried to add the File.Run command of update.exe with
Args of "Silent=True"
Window Mode SW_HIDE
Wait for return true
looks like this
Code:
-- These actions are performed when the Next button is clicked.
result = File.Run(SessionVar.Expand("%AppFolder%\\Update.exe"), "Silent=True", "", SW_HIDE, true);
-- advance to the next screen
Screen.Jump("Update Finished");
when I build the installer, Im given an error "URL:Protocol Incorrect" after clicking next on that page
next I tried building a cmd file that simply has the following
Code:
@echo off
start /wait Update.exe silent=true
exit
If I double click this everything works perfectly, if I call installsilent.cmd from File.Run
result = File.Run(SessionVar.Expand("%AppFolder%\\installsi lent.cmd"), "", "", SW_HIDE, true);
I get an error that says cannot find update.exe I know my directories are setup right because if i ignore the errors and browse to c:\program files\ttttttt\ and double click installsilent.cmd it runs and everything is downloaded fine.
So thats what Im trying to do, any other ways to go about doing it are welcome as long as update.exe runs with silent=true after checking for an internet connection.