473,382 Members | 1,390 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,382 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 2492
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
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.