Hi,
Unfortunately Windows Installer doesn't support this path directly. However, you can try this approach:
- set your default installation folder to:
- Code: Select all
[DesktopFolder]
- in
Custom Actions page create a custom action which trims the "Desktop" string from APPDIR property value
- after being trimmed the value should be something like this:
- Code: Select all
C:\Users\<username>
- set this value back in APPDIR property
- schedule this custom action under "InstallUISequence" -> "Begin"
- share it with "InstallExecuteSequence" -> "Begin" by dragging it while SHIFT key is pressed
- make sure it uses the "Execute only once if present in both sequence tables" option in
Custom Action Properties pane
This way the installation path starts with the Desktop path, but it's modified by your custom action to the user account root folder. To access installer properties you can use
MsiGetProperty() and
MsiSetProperty() in
Win32 DLLs or
Session.Property() in VBScript.
Regards,
Cosmin