2020年8月19日 星期三

visual studio installer programfilesfolder

 https://www.advancedinstaller.com/user-guide/folder-paths.html

Paths of the folders in the "Files and Folders" Page

The folders in the "Files and Folders" page use predefined and custom installer properties which store their paths.

Folder NameProperty NameSample PathComments
Application FolderAPPDIRC:\Program Files\Your Company\Your Applicationthis is the default value and it can be configured
Application Shortcut FolderSHORTCUTDIRC:\Documents and Settings\<username>\Start Menu\Programs\Your ApplicationC:\Users\<username>\Start Menu\Programs\Your Application on Vista or above; this is the default value and it can be configured
Program FilesProgramFilesFolderC:\Program FilesC:\Program Files (x86) on a 64-bit machine
Common FilesCommonFilesFolderC:\Program Files\Common FilesC:\Program Files (x86)\Common Files on a 64-bit machine
Program Files 64ProgramFiles64FolderC:\Program Filesresolved only on a 64-bit machine
Common Files 64CommonFiles64FolderC:\Program Files\Common Filesresolved only on a 64-bit machine
Windows VolumeWindowsVolumeC:\
TemporaryTempFolderC:\Documents and Settings\<username>\Local Settings\TempC:\Users\<username>\Local Settings\Temp on Vista or above
WindowsWindowsFolderC:\Windows
FontsFontsFolderC:\Windows\Fonts
SystemSystemFolderC:\Windows\system32C:\Windows\SysWow64 on a 64-bit machine
System 16System16FolderC:\Windows\systemused on older Windows versions
System 64System64FolderC:\Windows\system32resolved only on 64-bit machines
Start MenuStartMenuFolderC:\Documents and Settings\<username>\Start MenuC:\Users\<username>\Start Menu on Vista or above
ProgramsProgramMenuFolderC:\Documents and Settings\<username>\Start Menu\ProgramsC:\Users\<username>\Start Menu\Programs on Vista or above
StartupStartupFolderC:\Documents and Settings\<username>\Start Menu\Programs\StartupC:\users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup on Vista or above
DesktopDesktopFolderC:\Documents and Settings\<username>\DesktopC:\Users\<username>\Desktop on Vista or above
FavoritesFavoritesFolderC:\Documents and Settings\<username>\FavoritesC:\Users\<username>\Favorites on Vista or above
My DocumentsPersonalFolderC:\Documents and Settings\<username>\My DocumentsC:\Users\<username>\Documents on Vista or above
My PicturesMyPicturesFolderC:\Documents and Settings\<username>\My Documents\My PicturesC:\Users\<username>\Pictures on Vista or above
TemplatesTemplateFolderC:\Documents and Settings\<username>\TemplatesC:\Users\<username>\Templates on Vista or above
Send ToSendToFolderC:\Documents and Settings\<username>\SendToC:\Users\<username>\SendTo on Vista or above
Administrative ToolsAdminToolsFolderC:\Documents and Settings\All Users\Start Menu\Programs\Administrative ToolsC:\ProgramData\Start Menu\Programs\Administrative Tools on Vista or above
Application DataAppDataFolderC:\Documents and Settings\<username>\Application DataC:\Users\<username>\AppData\Roaming on Vista or above
Common Application DataCommonAppDataFolderC:\Documents and Settings\All Users\Application DataC:\ProgramData on Vista or above
Network ShortcutsNetHoodFolderC:\Documents and Settings\<username>\NetHoodC:\Users\<username>\AppData\Roaming\Microsoft\Windows\Network Shortcuts on Vista and above
Recent ItemsRecentFolderC:\Documents and Settings\<username>\RecentC:\Users\<username>\AppData\Roaming\Microsoft\Windows\Recent on Vista and above
Printer ShortcutsPrintHoodFolderC:\Documents and Settings\<username>\PrintHoodC:\Users\<username>\AppData\Roaming\Microsoft\Windows\Printer Shortcuts on Vista and above
Local Application DataLocalAppDataFolderC:\Documents and Settings\<username>\Local Settings\Application DataC:\Users\<username>\AppData\Local on Vista or above
Public DocumentsPublicDocumentsFolderC:\Documents and Settings\All Users\Documents\C:\Users\Public\Documents\ on Windows Vista
Windows LibrariesWindowsLibrariesFolderC:\Users\<username>\AppData\Roaming\Microsoft\Windows\Libraries\C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Libraries\ on Windows 7 or above
IIS WWW RootIIsWWWRootFolderC:\Inetpub\wwwroot

All the above folders are predefined for Windows Installer except for the first two folders which are proprietary for Advanced Installer. When the installation package runs, Windows Installer will automatically resolve their paths according to the target machine's configuration.

Depending on the package type, the paths will change; this means that if the package is per-user the paths will use "...\<username>\..." or if it is per-machine the paths will use "...\Public\..." instead.

If a package is per-machine and shortcuts are present in the AppDataFolder, the system redirects the shortcuts to the ProgramData folder.

沒有留言:

張貼留言

WPF聊天室应用(ASP.NET Core SignalR)

  WPF聊天室应用(ASP.NET Core SignalR) https://www.bilibili.com/video/BV1Q741187Si?p=2 https://www.bilibili.com/video/BV1UV411e75T?from=search&...