Skip to content

Commit 89df62e

Browse files
committed
remove install dir setting part
1 parent 2b2daa9 commit 89df62e

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

console/atest-desktop/forge.config.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff 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
],

0 commit comments

Comments
 (0)