Page 1 of 1

check for updates shortcut

Posted: Wed Jul 05, 2006 6:10 pm
by alexzakharov
Hi,

I have a bit of an odd problem. Any help would be much appreciated.

I want to create a shortcut (right next to unistall) to check for updates. So, I go ahead and do just that - basically a shortcut to $UNINSTALLLINK$ /update.

I run the installer fine. The shortcut is created. However the very first time I try to run it - XP brings up a window saying "which user account do you want to use to run this program"? If I proceed - nothings happens. But either way whether I proceed or cancel - the next time I try to run my shortcut - that window no longer pops up - and updates behave as expected. [Notably, after the first time i run the shortcut, the icon next to the shortcut also changes from some odd windows icon to IA's normal shortcut icon]

I searched some news groups on the web and on installaware - sounds like it has something to do with XP's Run As feature. Somebody on IA suggested specfiying a startup folder for the shortcut. I did - and it didn't help.

Finally I created another shortcut - "bogus" which simply points to $UNINSTALLLINK$ and it worked just fine...

Anyway - how do I avoid the annoying "which user account do you want to use to run this program" popup the very first time i try to check for updates from a shortcut??

Much thanks

Alex

Posted: Wed Jul 05, 2006 7:11 pm
by MichaelNesmith
Could you paste the exact shortcut command here from the clipboard?

Are you specifying /update as part of the "Shortcut to File" section of the Create Shortcut command, or in the "Command Line Parameters" section?

It sounds to me like the former, which would explain why Explorer is getting confused, the icons are changing, etc...

Posted: Thu Jul 06, 2006 9:29 am
by alexzakharov
Michael,

It is actually the latter, as I'm passing the /update as command line parameter not as part of executable.

So, once the program is installed the shortcut properties' target is this string
"C:\\Documents and Settings\\All Users\\Application Data\\{429DB6F8-3208-483D-BE3E-F24D3BA6BF07}\\IA4_1.10.exe" /update

When I define the shortcut within IA's IDE I use the following:
Shortcut to File: $UNINSTALLLINK$
Command Line Parameters: /update

as a side note i did a search on google and looks like old versions of installshield had similar problem:
http://community.macrovision.com/archiv ... 51770.html

in general if you do a search for "which user account do you want to use to run this program" you get a whole bunch of hits...

I'm running XP pro, SP2

Posted: Thu Jul 06, 2006 5:19 pm
by MichaelNesmith
That's pretty odd.

We have an applet here that displays the command line parameters its been called with.
I created a setup for it, and tried the /update and /updatesetup parameters. I didn't get a "Run As" dialog.

Ditto for $UNINSTALLLINK$.

Posted: Fri Jul 07, 2006 1:12 am
by Tinus
Hi,

in my project I have the exact same shortcut and have not experienced any problem so far.

Shortcut to file:
$UNINSTALLLINK$

Command Line Parameters:
/update

Have you used any advertised elements?

And what happens if you first open the shortcut, click Advanced and check for "Run with different credentials"?