Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Deploying to Program Files
 

Deploying to Program Files

Hi, I am using C# 2005 Express edition and I cant select a directory I want my application to install into. I would like to deploy into program files.

The Publish wizard works fine, and I can distribute my applicaiton, but I dont know where it installs into.

I cant see an exe file anywhere on the computer I deployed on, yet my app works.. Is there more deployment options in the full version of C# 2005 that i need?

Thwack  Wednesday, December 13, 2006 7:55 AM
Batikit wrote:

Where on earth are my application files installedin my little harddrive??

[Documents and Settings Folder]\[current user name]\Local Settings\Apps\2.0\[a generated ID code]

Here's another little quirk you may encounter related to this.

My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData does not return the actual"All Users" data area but a data area in the cache. You'll need to use Environment.SpecialFolder.CommonApplicationData to get the "All Users" folders on ClickOnce deployed apps.

Frank Carr  Thursday, December 14, 2006 10:41 PM
If you need to make MSIs from Visual Studio Express, maybe you oughta try WIX
Jon Limjap  Friday, December 15, 2006 4:48 AM

I also have the same issues.

Where on earth are my application files installedin my little harddrive??

Batikit  Thursday, December 14, 2006 2:00 AM

Here I go, answering my own questions again

http://msdn2.microsoft.com/en-us/library/142dbbz4(VS.80).aspx

This tells me that ClickOnce installer only installs to the clickonce application cache. Now I have more questions for the gurus who stalk these forums. Does the click once application cache ever get overwritten?and therefore my program willgo byebye?(i dont like the term 'cache' !!)

To make an installer that install to the program filles you need to use Windows Installer.

What I dont know is if Windows installer is avaliablewith C# 2005 Express Edition? or is it only available in the full version?

Thwack  Thursday, December 14, 2006 2:36 AM
Windows Installer is part of the OS and is nothing to do with .NET or C# or ClickOnce. There are a bunch of tools you can use to build MSI files, Visual Studio non-express being one of them.
PhilWilson  Thursday, December 14, 2006 7:35 PM
Batikit wrote:

Where on earth are my application files installedin my little harddrive??

[Documents and Settings Folder]\[current user name]\Local Settings\Apps\2.0\[a generated ID code]

Here's another little quirk you may encounter related to this.

My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData does not return the actual"All Users" data area but a data area in the cache. You'll need to use Environment.SpecialFolder.CommonApplicationData to get the "All Users" folders on ClickOnce deployed apps.

Frank Carr  Thursday, December 14, 2006 10:41 PM
If you need to make MSIs from Visual Studio Express, maybe you oughta try WIX
Jon Limjap  Friday, December 15, 2006 4:48 AM
Frank Carr wrote:

Here's another little quirk you may encounter related to this.

My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData does not return the actual"All Users" data area but a data area in the cache. You'll need to use Environment.SpecialFolder.CommonApplicationData to get the "All Users" folders on ClickOnce deployed apps.

Iwas surely going to get stuck on thatin any moment Thanks for the tip!!

Thwack  Friday, December 15, 2006 7:49 AM

You can use google to search for other answers

Custom Search

More Threads

• Msi file not working
• "Shortcut activation over network is not allowed" ClickOnce Error
• To change the title of setup project dialog
• .NET 2 Setup Project question
• How to add App.config of libraries(.dll) to ClickOnce?
• Setup file.
• Can't Add Installation Cultures in "\BootStrapper\Engine\<Culture>"
• Add/Remove program questions
• Converting VDPROJ to WIX
• web setup: get selected website chosen by the user in the dropdownlist