473,320 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Clicking on created shortcut triggers reinstallation

I have a very strange problem.

I have developed a .NET solution. To set up user clients I have also
included a "Deployment Project" in the solution:

Using "File System Editor | User's Program Menu" configuration a "Shortcut"
is created and pointing to the client EXE-file.

The created msi-file, NETProgram.msi, works perfectly on the clients.
A Start Menu shortcut is correctly created in "C:\Documents and Settings\All
Users\Start Menu\Programs\NETProgram", and the client EXE is started when
clicking on the shortcut.

The strange thing is that after "a while" the shortcut doesn´t work anymore.
When clicking on the shortcut instead following happens:
1. First a dialog with text "Preparing to install..." is shown.
2. After a few seconds a new dialog is shiown with the text "The feature you
are trying to use is on a network resource that is unavailable.
Click OK to try again, or enter an alternative path to a folder containing
the installation package 'NETProgram[1].msi' in the box below."

Why this corrupted behaviour ?

I have yet no idea what it is that makes the shortcut to stop working.
Nothing has happened with the EXE-file that the shortcut is pointing out.

Any hint is appreciated.

Best regards,
Benjamin, Sweden
Jul 21 '05 #1
2 2489
After looking around little - I have now understood that it is relevant to
mention that we have implemented an auto-update-client-feature that is
working well.

http://windowsforms.net/articles/appupdater.aspx

Anyway - I do not Windows to do any automagically repair checks for this
application. How to configure the "Deployment Project" ?
Jul 21 '05 #2
Hi,

The behavior you observed is the "resiliency" feature of Windows Installer.
The shortcuts generated by Setup Project are all "advertised shortcuts"
which can trigger resiliency.

INFO: Description of Resiliency in Windows Installer
http://support.microsoft.com/?id=290997

We have no direct way to disable this feature in the Setup Project. You
have two options here:

1. Do not generate the shortcut in the Setup Project. Instead, wrtie a
custom action and use IShellLink to create a shortcut on your own. The
following article will be useful to you:

Using the IShellLink interface to create file shortcuts.
http://www.mvps.org/emorcillo/dotnet...shortcut.shtml

You need to pass the installation target folder and the programs menu
folder into the custom action:

Walkthrough: Passing Data to a Custom Action
http://msdn.microsoft.com/library/de...us/vsintro7/ht
ml/vxwlkWalkthroughPassingDataToCustomAction.asp?fram e=true

2. You can build your current Setup Project with the shortcut and then use
Windows Installer Platform SDK tool to modify the resultant MSI directly:

How To Use the Orca Database Editor to Edit Windows Installer Files
http://support.microsoft.com/?id=255905

You need to modify the "Shortcut" table. Replace the "Target" column with
the formatted identifier for the EXE file (e.g. " [#filekey]" where
"filekey" is the "File" column of the EXE file in the "File" table). You
may need some basic Windows Installer knowledge here:

Shortcut Table
http://msdn.microsoft.com/library/de...us/msi/setup/s
hortcut_table.asp

I hope this helps.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: aa | last post by:
Thought this question might be out of this NG's scope, there are always knowledgable people who might hava an answer. A hyperlink to a shortcut to a file returnes an empty screen, and the source...
2
by: Phil Galey | last post by:
I have a FileSystemWatcher that triggers when a PDF file is created. However, the creation of the PDF file is about a 7 or 8 second process ... I cannot refer to the file during that time because...
3
by: Mike Ridley | last post by:
I have 2 databases called (for example) "progs.mdb" and "files.mdb". Both these databases reside on computer "myserver". The progs database has links to the tables in the files database....
0
by: Steffo | last post by:
Hi. I cant open the forms designer dialog, after have tried some 3rd party software. Even after reinstallation of visual studio I get the following error msg: The designer could not be shown...
4
by: Benjamin | last post by:
I have a very strange problem. I have developed a .NET solution. To set up user clients I have also included a "Deployment Project" in the solution: Using "File System Editor | User's Program...
2
by: bastman69 | last post by:
Hello Im Kostas from greece and i have a problem. I am administrator in a local network with 2 dc with 2000 server and 40 clients mixed with xp sp2 and win2000. Before 3 days the pdc crashed...
12
by: Reg (Lincolnshire) | last post by:
Converted an A2003 system to A2007, on testing founf out that right- click to bring up a shortcut menu on a combo box didn't work if the combo box was in a subform. Found out that this was a...
4
by: Benjamin Hell | last post by:
Hi! I wonder whether there might be a way to find out how a Python program was started (in my case in Windows): By double clicking the file or by calling it on the "DOS" command line prompt. ...
0
by: Mike Dol | last post by:
I have a setup project with InstallAllUsers set to true, the problem is that after I install it as a user with administrative rights the (restricted) user clicks on the shortcut on his / her desktop...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.