View Full Version : Several Issues

04-28-2003, 12:33 AM
I have just begun working with the Update Service and an Evaluation account. First off I would like to say that I think the Update Service is an excellent idea and the feature list is impressive.
As a beggining user, though, there have been several issues that are quite dissapointing.
1.) In Install Shield, when activating the Update Service, it says "For sample code, see the Online Help located on the Update Service Web Site" After looking, searching, and trying everything I could, it took me over 2 hours to eventually find this Online Help section buried in the Members area after you login to your Update Service Account. Then once I have found the Online Help there are a few advanced samples but no simple samples on how to just call the update service.
I eventually found a bit of info about calling the AppUpdate method but the help file was quite incomplete in it's instructions. It says:

"Instead of calling CreateObject, you can use Visual Basic's References dialog box to set a reference to the type library and use the statement:

Dim pAgent as New DWUpdateServiceLib.Agent"

My question was WHAT TYPE LIBRARY. what's the name of it, where do you find it, etc....details...details

Then it says the call should look like this:

AppUpdate "{C4091E43-4FC0-11D5-8C6C-00104B9747FA}", AppMenu

using the product code. Well the product code changes with every version release, so which one do you use? This is something you send hard coded in the program, if your product code changes with each version how does that affect this? Again, details..details..

I love the update service but have been surprised by the difficulty I have had thus far. Every other product I have used from InstallShield has been just awsome....It just works. This product has been much clunkier and difficult. Any help would be appreciated.

Chris Woerner
04-28-2003, 04:22 PM
I'm sorry you found the help to be incomplete in regards to the samples. We tried to put sample code into the reference section under each method that would explain how to call that method. Obviously, we didn't succeed.

Let me answer the non-technical question first. The product code is your product code from the installer project. The Update Service uses the product code and product version to identify your product.

The product code doesn't have to change with each release. At InstallShield, we keep the same product code for all minor releases (service packs) of the product. We only change the product code when we have a major release. In reality, the product code doesn't even need to change for major releases. It is just our practice.

I'll post the answer to your question on the TYPE LIBRARY in a seperate posting.

Chris Woerner
04-28-2003, 04:54 PM
The name of the type library is 'DWUpdate Service 1.0 Type Library'. Sorry about that.

Another posting on the same topic that may provide more insight for you....


04-28-2003, 05:23 PM
Thanks Chris

That got things working a little better.

04-29-2003, 04:57 PM
Hi Chris
Several More issues that are causing problems.

1. In the online help file it says to create a shortcut from the users start menu to the update agent simply enter the target as:
<common files folder>\InstallShield\UpdateService\Agent.exe
Well when I try to do this in express, it says path invalid.

2. I have gone through the checklist and registered a product and added a message to the update service. The problem is that calling AppUpdate from within my software from a menu option does not list any messages. Running the test from within the Online Account shows that messages should appear for that program. Any thoughts on these 2 issues.

Chris Woerner
04-30-2003, 12:02 PM
There are two ways to create a short-cut that invokes the ISUS using Express.

1. Project wizard will create one by default with the correct properties

2. To add a short-cut to an existing project, Express gives you a couple of choices...

- new shortcut
- new shortcut to existing file

Choose 'new short-cut to existing file'. Browse to the Agent.exe to select it. Unfortunately, Express doesn't allow direct entry of the short cut target property as the help implies. You need to browse to the file.

Chris Woerner
04-30-2003, 12:09 PM
OK, lets find your messages. The ISUS passes two fields to identify your product (product and version). To see what is being passed to the website to check for updates, open the Test Utility on a machine with your application installed. (start/programs/installshield/update service/Test Utility)

You should see a node for your product. Open the node. Displayed are the product code and version. You can ingnore the installer version for right now. Do those values match the values you entered on the Publisher website for your product and version? Version often catches people. By default, the ISUS only reads the first two pieces (major.minor) of the version string.

If those match, check the status of the messages. Are they active?

05-01-2003, 10:40 PM
The shortcut worked when I used the "New Shortcut to Preexisting File" option as oposed to the "New Shortcut" option.

As for getting it to find any messages - still no luck.
I have looked everywhere for this test utility that you say is in (start/programs/installshield/update service/Test Utility) but have not been able to find such a utility. What is the name of the exe and where exactly is it be installed. (I can't find this utility on either my machine with Express on it or my test machine with my program installed.)

And yes the message is set to active. (does it make a difference that my account is in evaluation mode?)


Chris Woerner
05-02-2003, 09:35 AM
Sounds like you may not have installed the SDK (which installs the Test Utility). After you login to the Publisher Website, the home page has a section for Developer information. The first link is the SDK. It installs several things...

- our latest runtime files to be included in your setup. They get installed directly into the Express program folders.
- the online help
- test utility that helps debug issues like the one that you have

05-02-2003, 02:31 PM
Your right
I had never even heard of the SDK before. That solved lots of problems. It included the Online Help that I had so desperately searched for.
The TestUtility showed that it was looking for a update for version 1.05.
I had incorrectly assumed that version 1.05 was the same as 1.5 (live and learn)
Once that was corrected the message displayed correctly.

Thanks for all the help Chirs. Love the product.