Runtime error when running update..

Got a problem you cannot solve? Try here.
Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Runtime error when running update..

Postby Edhy » Tue Jul 11, 2006 10:58 pm

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
Edhy Rijo
Thom Child and Family Services

Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Wed Jul 12, 2006 4:37 am

Hi,

have you first configured automatic updates?

Run <<MySetup.exe /updatesetup>>.

Then use <<MySetup.exe /update>>.
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware

Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Postby Edhy » Wed Jul 12, 2006 9:51 am

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.
Edhy Rijo
Thom Child and Family Services

Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Wed Jul 12, 2006 11:02 am

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.
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware

Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Postby Edhy » Wed Jul 12, 2006 11:47 am

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.
Edhy Rijo
Thom Child and Family Services

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Wed Jul 12, 2006 3:12 pm

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.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Postby Edhy » Wed Jul 12, 2006 3:28 pm

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.
Edhy Rijo
Thom Child and Family Services

Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Wed Jul 12, 2006 3:32 pm

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).
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware

Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Postby Edhy » Wed Jul 12, 2006 3:37 pm

Thanks Martin, I'll check it tomorrow to see if you upload it.
Edhy Rijo
Thom Child and Family Services

Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Thu Jul 13, 2006 2:48 am

Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware

Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Postby Edhy » Thu Jul 13, 2006 4:28 pm

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
Edhy Rijo
Thom Child and Family Services

Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Thu Jul 13, 2006 4:53 pm

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.
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 182 guests