April 2006
Intermediate to advanced
32 pages
54m
English
When you install an application onto a computer via ClickOnce, you do not have a choice over where to store it. In fact, the application is stored on a per-user basis, and different versions of the application are stored in different folders. For example, when I installed MyApp on my computer, the application files were stored here:
C:\Documents and Settings\Wei-Meng Lee\Local Settings\Apps\2.0\5T0PYEG8.WBR\80H02YWD.DC1\myap..tion_692c12755750aeaa_0001.0000_aead 9e7ef2ec579c \
Generally, application files are stored in subdirectories under the C:\Documents and Settings\<User Name>\Local Settings\Apps\2.0 folder. If you want to programmatically locate this directory during runtime, use the following code:
'---ExecutablePath includes the executable name---
Dim path As String = Application.ExecutablePath
'---Strip away the executable name---
path = path.Substring(0, path.LastIndexOf("\"))That's it. Now it's time to customize your installation.
Read now
Unlock full access