Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add installation without gui #297

Merged
merged 14 commits into from
Aug 6, 2024
Merged
Prev Previous commit
Next Next commit
Add no gui build, allow to build in quiet mode
  • Loading branch information
jfantinhardesty committed Jul 29, 2024

Verified

This commit was signed with the committer’s verified signature.
mislav Mislav Marohnić
commit 261a6e9ab04721ed01c9856cb9e1199df5e4af33
8 changes: 4 additions & 4 deletions build/windows_installer_build.iss
Original file line number Diff line number Diff line change
@@ -106,19 +106,19 @@ begin
// Install WinFSP if it is not already installed
if not RegKeyExists(HKLM, 'SOFTWARE\WOW6432Node\WinFsp\Services') then
begin
if MsgBox('WinFSP is required for Cloudfuse. Do you want to install it now?', mbConfirmation, MB_YESNO) = idYes then
if SuppressibleMsgBox('WinFSP is required for Cloudfuse. Do you want to install it now?', mbConfirmation, MB_YESNO, IDYES) = IDYES then
begin
if not Exec('msiexec.exe', '/i "' + ExpandConstant('{app}\{#WinFSPInstaller}') + '"', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
if not Exec('msiexec.exe', '/qn /i "' + ExpandConstant('{app}\{#WinFSPInstaller}') + '"', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
begin
MsgBox('Failed to run the WinFSP installer. You might need to install it manually.', mbError, MB_OK);
SuppressibleMsgBox('Failed to run the WinFSP installer. You might need to install it manually.', mbError, MB_OK, IDOK);
end;
end;
end;

// Install the Cloudfuse Startup Tool
if not Exec(ExpandConstant('{app}\{#MyAppExeCLIName}'), 'service install', '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then
begin
MsgBox('Failed to install cloudfuse as a service. You may need to do this manually from the command line.', mbError, MB_OK);
SuppressibleMsgBox('Failed to install cloudfuse as a service. You may need to do this manually from the command line.', mbError, MB_OK, IDOK);
end;
end;
end;
14 changes: 10 additions & 4 deletions build/windows_installer_build_no_gui.iss
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ LicenseFile=..\LICENSE
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=commandline
OutputBaseFilename=cloudfuse_no_gui
OutputBaseFilename=cloudfuse
Compression=lzma
SolidCompression=yes
WizardStyle=modern
@@ -92,14 +92,20 @@ begin
// Install WinFSP if it is not already installed
if not RegKeyExists(HKLM, 'SOFTWARE\WOW6432Node\WinFsp\Services') then
begin
if MsgBox('WinFSP is required for Cloudfuse. Do you want to install it now?', mbConfirmation, MB_YESNO) = idYes then
if SuppressibleMsgBox('WinFSP is required for Cloudfuse. Do you want to install it now?', mbConfirmation, MB_YESNO, IDYES) = IDYES then
begin
if not Exec('msiexec.exe', '/i "' + ExpandConstant('{app}\{#WinFSPInstaller}') + '"', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
if not Exec('msiexec.exe', '/qn /i "' + ExpandConstant('{app}\{#WinFSPInstaller}') + '"', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
begin
MsgBox('Failed to run the WinFSP installer. You might need to install it manually.', mbError, MB_OK);
SuppressibleMsgBox('Failed to run the WinFSP installer. You might need to install it manually.', mbError, MB_OK, IDOK);
end;
end;
end;

// Install the Cloudfuse Startup Tool
if not Exec(ExpandConstant('{app}\{#MyAppExeCLIName}'), 'service install', '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then
begin
SuppressibleMsgBox('Failed to install cloudfuse as a service. You may need to do this manually from the command line.', mbError, MB_OK, IDOK);
end;
end;
end;