[wix-users] Creating a shortcut to a read-only directory

Jonas Tampier jonas at tampier.de
Thu Oct 20 04:04:42 PDT 2016


Hello,

I have a dialog, that asks the user for 3 paths. The installation 
directory and two that will be used for configuration purposes.
This is a per user installation that links to an existing installation 
(APPLICATIONFOLDER) often placed on a read-only network share.
The value of the directory is used later to generate registry settings 
and shortcuts.

<Directory Id="TARGETDIR" Name="SourceDir">
  ..
  <Directory Id="APPLICATIONFOLDER"/>
  ..
</Directory>

When the dialog (based on InstallDirDlg) changes the directory 
APPLICATIONFOLDER property it generates an error, because the target is 
read-only:

MSI (c) (8C:F8) [12:55:54:413]: PROPERTY CHANGE: Modifying 
APPLICATIONFOLDER property. Its current value is 
'C:\Users\Public\ACOS96_D\'. Its new value: '\\MYPC\acos96_d\'.
MSI (c) (8C:F8) [12:55:54:459]: Note: 1: 1315 2: \\MYPC\acos96_d\
MSI (c) (8C:F8) [12:55:54:459]: Note: 1: 2205 2:  3: Error
MSI (c) (8C:F8) [12:55:54:459]: Note: 1: 2228 2:  3: Error 4: SELECT 
`Message` FROM `Error` WHERE `Error` = 1315
Fehler 1315. In den angegebenen Ordner konnte nicht geschrieben werden: 
\\MYPC\acos96_d\.
MSI (c) (8C:F8) [12:55:56:330]: Note: 1: 2205 2:  3: Error
MSI (c) (8C:F8) [12:55:56:330]: Note: 1: 2228 2:  3: Error 4: SELECT 
`Message` FROM `Error` WHERE `Error` = 1709
MSI (c) (8C:F8) [12:55:56:330]: Produkt: ACOS Plus.1 -- Fehler 1315. In 
den angegebenen Ordner konnte nicht geschrieben werden: \\MYPC\acos96_d\.

Is there a way to circumvent the write check, that leads to the error 
message?

Thanks
Jonas


More information about the wix-users mailing list