Page 1 of 1

Runtime error when running update..

Posted: Tue Jul 11, 2006 10:58 pm
by Edhy
Hi All,

When running the update program <<MySetup.exe /update>> I get the following error:

Code: Select all

Runtime error in setup script:
Line 156: Attempting to get value of undefined variable UPDATE_DOWNLOAD


Here is the script section where the code is failing:

Code: Select all

Comment: Choose updates to download
if Variable UPDATE_DOWNLOAD Equals TRUE
  MessageBalloon: Updates are available for $TITLE$, The InstallAware Wizard has found updates for $TITLE$. Click here to download these updates.
  Show icon in system tray, minimize setup to system tray
end


I have not made any changes to the Updates script. The Monitor URL value is:

Code: Select all

http://www.Progytech.com/plm/setup/updates.ini

and I placed the Updates.ini in the URL location with the update file.
Here is the Updates.INI:

Code: Select all

[Parking Lot Manager Update 5.01]
URL=http://www.progytech.com/plm/Parkinglot Management-Update.exe
Description=Will fix the connection to MySQL Server.
Reboot=No
Silent=No
Parameters=
[Update Packs for Versions]
5.0=Parking Lot Manager Update 5.01


I am using the trial version of InstallAware Studio Admin 6.0 (Build gwinnett_rtm.060606).

Please advise what am I doing wrong? or how to find out what may be causing this problem so I can test the IA Update feature.

Thanks

Posted: Wed Jul 12, 2006 4:37 am
by Tinus
Hi,

have you first configured automatic updates?

Run <<MySetup.exe /updatesetup>>.

Then use <<MySetup.exe /update>>.

Posted: Wed Jul 12, 2006 9:51 am
by Edhy
Hi Martin,

I guess that was it!

It looks like the schedule should/most be configured in order to actually run the update check.

Can we get some confirmation from IA about this requirement? I read the help file and it does not state that I must first configure the schedule in order to work and if this is the case, what about if the end user does not want to configure any schedule and just want to check for update whenever they feel like it? if this possible?

Martin, thanks for your cooperation.

Posted: Wed Jul 12, 2006 11:02 am
by Tinus
Can we get some confirmation from IA about this requirement? I read the help file and it does not state that I must first configure the schedule in order to work and if this is the case, what about if the end user does not want to configure any schedule and just want to check for update whenever they feel like it? if this possible?


See http://www.installaware.com/forum/viewtopic.php?t=989

I have modified the updates.mia to enable /update without /updatesetup.
I also added a second parameter /iact (=interactive).
If you run /update /iact you see always the dialogs and no message ballons.
If no update is available a MessageBox is displayed at the end.

The modified update.mia is in the scripts section of the forum. I have not tested it complety, so use on your own risk.

Posted: Wed Jul 12, 2006 11:47 am
by Edhy
Hi Martin,

Thanks again for the explanation and the modified script.

Your changes makes sense to me as for what the user may want to do with the update process, even though I did not see any comments with your name on the script to identify the changes.

I will test your script to see how it goes.

Posted: Wed Jul 12, 2006 3:12 pm
by MichaelNesmith
Hi Edhy,

The out of the box behavior for the InstallAware update script is indeed to require update configuration, before updates are checked for, downloaded, and installed.

This is how updates work out-of-the-box, and the update script, unless you changed it, will work in this exact fashion. It will first configure the update checks, and then start checking for them on the schedule chosen by the end-user. I'm not sure how you got it to bypass the scheduling step.

I guess you were creating manual shortcuts using the /update option before actually configuring the update.

Posted: Wed Jul 12, 2006 3:28 pm
by Edhy
Hi Michael,

I guess you were creating manual shortcuts using the /update option before actually configuring the update.

Yes you are right I was manually creating a shortcut using the same command as the Uninstall shortcut but with /update parameter.

I will test Martin's script to see if that will fit my needs.

Thanks for clarifying the default behavior.

Posted: Wed Jul 12, 2006 3:32 pm
by Tinus
There's a small problem in the changed script. I will update this tomorrow.
(After /updateconfig is run it will still use the default values).

Posted: Wed Jul 12, 2006 3:37 pm
by Edhy
Thanks Martin, I'll check it tomorrow to see if you upload it.

Posted: Thu Jul 13, 2006 2:48 am
by Tinus

Posted: Thu Jul 13, 2006 4:28 pm
by Edhy
Hi Martin,

Your script reference two other scripts: "decode24h" and "decodeDays" which I believe are also yours.

Also did you noticed a message from Michael about a new Updates.mia version 2 here.... http://www.installaware.com/forum/viewtopic.php?t=1045

Posted: Thu Jul 13, 2006 4:53 pm
by Tinus
Hi Edhy,

you can simply comment out these two script (or dowload them from the scripts forum).

Yes I'm aware of the new version. I made a short test - more to come tomorrow.