File tree Expand file tree Collapse file tree 3 files changed +19
-67
lines changed Expand file tree Collapse file tree 3 files changed +19
-67
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- // Add installation directory to system PATH
57- msiCreator . wixTemplate = msiCreator . wixTemplate . replace (
58- '</Product>' ,
59- ` <Property Id="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
60- <CustomAction Id="AddToPath" Property="PATH" Value="[INSTALLDIR]" Execute="immediate" />
61- <CustomAction Id="RemoveFromPath" Property="PATH" Value="[INSTALLDIR]" Execute="immediate" />
62-
63- <InstallExecuteSequence>
64- <Custom Action="AddToPath" After="InstallFiles">NOT Installed</Custom>
65- <Custom Action="RemoveFromPath" Before="RemoveFiles">REMOVE="ALL"</Custom>
66- </InstallExecuteSequence>
67-
68- <Component Id="PathComponent" Guid="*" Directory="INSTALLDIR">
69- <Environment Id="PATH" Name="PATH" Value="[INSTALLDIR]" Permanent="no" Part="last" Action="set" System="yes" />
70- </Component>
71-
72- </Product>`
73- ) ;
74-
75- // Ensure INSTALLDIR is properly defined in the existing ProgramFilesFolder
76- msiCreator . wixTemplate = msiCreator . wixTemplate . replace (
77- '<Directory Id="ProgramFilesFolder">' ,
78- `<Directory Id="ProgramFilesFolder">
79- <Directory Id="INSTALLDIR" Name="API Testing" />`
80- ) ;
81- }
8255 }
8356 }
8457 ] ,
Original file line number Diff line number Diff line change 1111 "publish" : " electron-forge publish"
1212 },
1313 "engines" : {
14- "node" : " 22.12.0"
14+ "node" : " >= 22.12.0"
1515 },
1616 "author" : " linuxsuren" ,
1717 "license" : " ISC" ,
You can’t perform that action at this time.
0 commit comments