File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -52,33 +52,6 @@ module.exports = {
5252 "enabled" : true ,
5353 "chooseDirectory" : true
5454 } ,
55- beforeCreate : ( msiCreator ) => {
56- // Ensure INSTALLDIR is properly defined in the existing ProgramFilesFolder
57- msiCreator . wixTemplate = msiCreator . wixTemplate . replace (
58- '<Directory Id="ProgramFilesFolder">' ,
59- `<Directory Id="ProgramFilesFolder">
60- <Directory Id="INSTALLDIR" Name="API Testing" />`
61- ) ;
62-
63- // Add installation directory to system PATH
64- msiCreator . wixTemplate = msiCreator . wixTemplate . replace (
65- '</Product>' ,
66- ` <Property Id="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
67- <CustomAction Id="AddToPath" Property="PATH" Value="[INSTALLDIR]" Execute="immediate" />
68- <CustomAction Id="RemoveFromPath" Property="PATH" Value="[INSTALLDIR]" Execute="immediate" />
69-
70- <InstallExecuteSequence>
71- <Custom Action="AddToPath" After="InstallFiles">NOT Installed</Custom>
72- <Custom Action="RemoveFromPath" Before="RemoveFiles">REMOVE="ALL"</Custom>
73- </InstallExecuteSequence>
74-
75- <Component Id="PathComponent" Guid="*" Directory="INSTALLDIR">
76- <Environment Id="PATH" Name="PATH" Value="[INSTALLDIR]" Permanent="no" Part="last" Action="set" System="yes" />
77- </Component>
78-
79- </Product>`
80- ) ;
81- }
8255 }
8356 }
8457 ] ,
You can’t perform that action at this time.
0 commit comments