Destination Folders, Components & KeyPath Rules
Windows Installer tracks every installed file, registry entry, and folder through atomic units called
Components. RaggieSoft Installer Studio automates best-practice Component generation by default while
giving advanced authors full declarative control via [Component.<Id>] and [Folder.<Id>].
Nine Standard Destination Roots
INSTALLDIR: Primary application directory underProgramFiles64Folder(per-machine) orLocalAppDataFolder(per-user).CommonFiles64Folder: Shared 64-bit components underC:\Program Files\Common Files.CommonAppDataFolder: Machine-wide data underC:\ProgramData.AppDataFolder&LocalAppDataFolder: Roaming and Local per-user profile directories (automatically enforced with ICE38HKCUKeyPaths).ApplicationProgramsFolder&DesktopFolder: Start Menu program group and Desktop shortcut folders.System64Folder&FontsFolder: Native 64-bitSystem32and WindowsFontsdirectories.
Enforced Windows Installer Component Rules
- Deterministic SHA-1 UUIDv5 Component GUIDs: When
Guid = *(or when payloads auto-generate 1-file components),instbuild.exederives a repeatable GUID fromUpgradeCode + Architecture + TargetPathso major and minor upgrades never orphan resources. - Single-Directory Rule (RSW031): Every payload bound to an explicit
[Component.<Id>]must target the exact sameTargetRootandTargetSubdir. - User-Profile HKCU KeyPath Rule (ICE38 / RSW032): Any component installing into a per-user folder (
AppDataFolder,LocalAppDataFolder,StartMenu, orDesktop) must use aHKCUregistry KeyPath rather than a file KeyPath. - Empty Folder Creation & Cleanup (ICE18 & ICE64): Explicit
[Folder.<Id>]sections emit bothCreateFolderandRemoveFolderrows so uninstalls leave zero empty directories behind. - Native 64-Bit Component Attributes (ICE80): On
x64andARM64packages,msidbComponentAttributes64bit(256) is set automatically across components and verified post-compile.
Declarative .rsip Example
[Component.CoreExe] Feature = Main TargetRoot = INSTALLDIR Guid = * KeyPathKind = file KeyPathTarget = MyStudioApp.exe [Folder.PluginCache] TargetRoot = LocalAppDataFolder TargetSubdir = RaggieSoft\MyStudioApp\Cache Feature = Main