473,395 Members | 1,938 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,395 software developers and data experts.

c# forms - deployment problem

3
Hi Guys

I've created a win forms app in VS 2005 using c#.

I created the deployment project / app & all is fine when I install & run it in the same account, ie. as 'Just for me'.

When I uninstalled it, then re-installed it again for everyone, it installs as I'd expect (putting the shortcut icon on the desktop & link into 'Program Files', etc).
However, if other accounts (ie, accounts other than the account which did the install) try to run the app using the desktop icon / 'program files' route then the app tries to run up the installation .msi file.

If I navigate to the actual app directory and double click its icon, then the application starts okay!

Any Ideas what's going on here and more importantly how to give access / use of the application for all users of the XP PC?

Cheers

Pete
Sep 20 '07 #1
4 1133
Plater
7,872 Expert 4TB
That just sounds like your icon is pointing to the wrong file?
Sep 20 '07 #2
siggy
3
Normally this behaviour is due to a change in the application's files (ie. if one of the files loaded by the installer gets deleted) then the icon or program file link will try to re-instate the application by running the msi file.

However, in my case the app & all its files are intact and available for use.
The installer of the application can use the app as intended.
Another account user can use the app as intended if he uses the app icon directly from its install directory, but the icon & prog files link start the msi installer.

For now I just replaced the installed shortcuts with ones I created myself.

But I really want to know the answer to this for future reference.

I even made the InstallForEveryone property of the deployment project = true.
Although I'd assumed that selecting this at installation would do this anyway!?!?
Anyway, this didn't resolve the issue.

Cheers

Pete

PS. I noticed that the shortcuts created by the VS windows installer aren't the same as those you create yourself - the fields are uneditable, etc.
Sep 20 '07 #3
Plater
7,872 Expert 4TB
Yeah they make like REAL links or something.
Does your application write any files to the user directory or set any registry settings? Maybe it's picking up on that (when the active user changes a different set of reg settings are loaded) and wants to re-install?
Sep 20 '07 #4
siggy
3
Nope my app doesn't set anything in the registry.

All it does is copy the exe to the app dir in 'Prog Files', plus 2 txt files and a mdb (access db file) to a 'resources' dir located within the app dir.
Sep 21 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
12
by: Brett Robichaud | last post by:
Is anyone familiar with this error? I have this running just fine on my local machine but when I pushed it out to our development server I get this error. I have no idea what it is saying. Any...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
1
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
22
by: Jordan S. | last post by:
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one...
4
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
6
by: John | last post by:
I have a multi-user Access database with back- and front end on the network. Problem is that the forms don't get refreshed automatically: if user A enters a record it will only become available to...
2
by: parez | last post by:
Hi, I am developing a .net 3.0 win forms(C#) application using vs2008. I am also using 3rd party controls which are installed in the the GAC. After i publish the application on the different...
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.