|
46 | 46 | <Property Id="ApplicationFolderName" Value="nodejs"/>
|
47 | 47 | <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
|
48 | 48 |
|
| 49 | + <!-- PropertyRef of the account users for setting InstallDir permission explicitly --> |
| 50 | + <Property Id="AUTHENTICATED_USERS" Value="Authenticated Users"/> |
| 51 | + |
| 52 | + <PropertyRef Id="WIX_ACCOUNT_LOCALSYSTEM" /> |
| 53 | + <PropertyRef Id="WIX_ACCOUNT_USERS" /> |
| 54 | + <PropertyRef Id="WIX_ACCOUNT_ADMINISTRATORS" /> |
| 55 | + |
49 | 56 | <Property Id="INSTALLDIR" Secure="yes">
|
50 | 57 | <RegistrySearch Id="InstallPathRegistry"
|
51 | 58 | Type="raw"
|
|
73 | 80 | <ComponentRef Id="NodeStartMenu"/>
|
74 | 81 | <ComponentRef Id="AppData" />
|
75 | 82 | <ComponentRef Id="InstallToolsBat" />
|
| 83 | + <ComponentRef Id="SetInstallDirPermission" /> |
76 | 84 | <ComponentGroupRef Id="Product.Generated"/>
|
77 | 85 |
|
78 | 86 | <Feature Id="NodeEtwSupport"
|
|
93 | 101 | <ComponentRef Id="NpxBashScript"/>
|
94 | 102 | <ComponentRef Id="NpmConfigurationFile"/>
|
95 | 103 | <ComponentRef Id="AppData" />
|
| 104 | + <ComponentRef Id="SetInstallDirPermission" /> |
96 | 105 | <ComponentGroupRef Id="NpmSourceFiles"/>
|
97 | 106 | </Feature>
|
98 | 107 |
|
|
169 | 178 | <?endif?>
|
170 | 179 | </DirectoryRef>
|
171 | 180 |
|
| 181 | + <DirectoryRef Id="INSTALLDIR"> |
| 182 | + <!-- Create component for setting the install directory permission explicitly --> |
| 183 | + <Component Id="SetInstallDirPermission" Guid="{EFFC4F74-183A-4237-BBD7-0CAD2B950053}"> |
| 184 | + <CreateFolder> |
| 185 | + <Permission User="[WIX_ACCOUNT_USERS]" GenericRead="yes" Traverse="yes" GenericExecute="yes" Synchronize="yes" |
| 186 | + GenericWrite="no" WriteAttributes="no" WriteExtendedAttributes="no"/> |
| 187 | + <Permission User="[AUTHENTICATED_USERS]" GenericRead="yes" Traverse="yes" GenericExecute="yes" Synchronize="yes" |
| 188 | + GenericWrite="no" WriteAttributes="no" WriteExtendedAttributes="no"/> |
| 189 | + <Permission User="[WIX_ACCOUNT_ADMINISTRATORS]" GenericAll="yes"/> |
| 190 | + <Permission User="[WIX_ACCOUNT_LOCALSYSTEM]" GenericAll="yes"/> |
| 191 | + </CreateFolder> |
| 192 | + </Component> |
| 193 | + </DirectoryRef> |
| 194 | + |
172 | 195 | <DirectoryRef Id="ApplicationProgramsFolder">
|
173 | 196 | <Component Id="NodeStartMenu">
|
174 | 197 | <!-- RegistryValue needed because every Component must have a KeyPath.
|
|
0 commit comments