1515#define GVFSConfigFileName " gvfs.config"
1616#define GVFSStatuscacheTokenFileName " EnableGitStatusCacheToken.dat"
1717#define ServiceName " GVFS.Service"
18- #define ServiceUIName " VFS For Git"
1918
2019[Setup]
2120AppId = {{489CA581-F131-4C28-BE04-4FB178933E6D}
@@ -66,9 +65,6 @@ DestDir: "{app}"; Flags: ignoreversion; Source:"{#LayoutDir}\GVFS.Service.exe";
6665[Dirs]
6766Name : " {app} \ProgramData\{#ServiceName}" ; Permissions: users-readexec
6867
69- [Icons]
70- Name : " {commonstartmenu}\{#ServiceUIName}" ; Filename : " {app} \GVFS.Service.UI.exe" ; AppUserModelID: " GVFS"
71-
7268[UninstallDelete]
7369; Deletes the entire installation directory, including files and subdirectories
7470Type : filesandordirs ; Name : " {app} " ;
@@ -249,38 +245,6 @@ begin
249245 end ;
250246end ;
251247
252- procedure StartGVFSServiceUI ();
253- var
254- ResultCode: integer;
255- begin
256- if GetEnv(' GVFS_UNATTENDED' ) = ' 1' then
257- begin
258- Log(' StartGVFSServiceUI: Skipping launching GVFS.Service.UI' );
259- end
260- else if ExecAsOriginalUser(ExpandConstant(' {app}\GVFS.Service.UI.exe' ), ' ' , ' ' , SW_HIDE, ewNoWait, ResultCode) then
261- begin
262- Log(' StartGVFSServiceUI: Successfully launched GVFS.Service.UI' );
263- end
264- else
265- begin
266- Log(' StartGVFSServiceUI: Failed to launch GVFS.Service.UI' );
267- end ;
268- end ;
269-
270- procedure StopGVFSServiceUI ();
271- var
272- ResultCode: integer;
273- begin
274- if Exec(' powershell.exe' , ' -NoProfile "Stop-Process -Name GVFS.Service.UI"' , ' ' , SW_HIDE, ewNoWait, ResultCode) then
275- begin
276- Log(' StopGVFSServiceUI: Successfully stopped GVFS.Service.UI' );
277- end
278- else
279- begin
280- RaiseException(' Fatal: Could not stop process: GVFS.Service.UI' );
281- end ;
282- end ;
283-
284248function DeleteFileIfItExists (FilePath: string) : Boolean;
285249begin
286250 Result := False;
@@ -688,7 +652,6 @@ begin
688652 ssPostInstall:
689653 begin
690654 MigrateConfigAndStatusCacheFiles();
691- StartGVFSServiceUI();
692655 if ExpandConstant(' {param:REMOUNTREPOS|true}' ) = ' true' then
693656 begin
694657 MountRepos();
@@ -707,7 +670,6 @@ begin
707670 case CurStep of
708671 usUninstall:
709672 begin
710- StopGVFSServiceUI();
711673 UninstallService(' GVFS.Service' , False);
712674 RemovePath(ExpandConstant(' {app}' ));
713675 end ;
@@ -731,7 +693,6 @@ begin
731693 Abort();
732694 end ;
733695 StopService(' GVFS.Service' );
734- StopGVFSServiceUI();
735696 UninstallGvFlt();
736697 UninstallProjFSIfNecessary();
737698end ;
0 commit comments