Message boards : Questions and problems : Custom silent installer 7.2.42
Message board moderation
Author | Message |
---|---|
Send message Joined: 21 Aug 14 Posts: 2 ![]() |
Hello, I want to create a custom Windows 7 installer that: a.) Installs as a service b.) Disables the boinc screensaver c.) Disables the boinc manager d.) Disables start menu and taskbar icons (although I think the latter can be solved by never running the manager) e.) (Optional) Attaches a project Among many others, I've looked at this thread here: http://boinc.berkeley.edu/dev/forum_thread.php?id=7972#46213 However, none of the threads are very recent, and none of the threads explicitly state exactly what they have done. I have been trying (unsuccessfully) to edit the BOINC.msi using Orca, but everything I change in Orca seems not revert upon testing the installer. For boinc_7.2.42, what options should I modify in Orca to achieve the above goals? Alternatively, can I do all this via a silent commandline install? E.g. something like: boinc_7.2.42_windows_x86_64.exe /S /v"/qn ENABLEPROTECTEDAPPLICATIONEXECUTION3=1 ENABLESCREENSAVER=0 ENABLEUSEBYALLUSERS=0 ENABLESTARTMENUITEMS=0 LAUNCHPROGRAM=0" Thanks |
![]() ![]() Send message Joined: 29 Aug 05 Posts: 15643 ![]() |
Best ask this at the BOINC Development email list. This list does require registration with a viable email address. |
Send message Joined: 21 Aug 14 Posts: 2 ![]() |
Actually, looks like I solved this myself with a script that looks like what I've copied below through some trial and error. I couldn't figure out how to disable the manager launching at startup via the installer, so I added some code to edit the windows registry. Note to anyone who tries to use this: in the directory with the batch script, I had the boinc_7.2.42_windows_x86_64.exe installer, cc_config.xml, and global_prefs_override.xml files. silent_install.bat @ECHO OFF SETLOCAL SET rst=no GOTO parse :usage ECHO Usage: [/?] [/r] ECHO. ECHO /h Display this text. ECHO /r Restart once installation is complete. Default: no. GOTO end :: PARSE ANY CMDLINE ARGS :parse IF [%1]==[] GOTO endparse IF [%1]==[/?] GOTO usage && exit \b 0 IF [%1]==[/r] SET rst=yes && ECHO Will restart when complete. SHIFT GOTO parse :endparse :: BOINC CLIENT INSTALLATION ECHO Silent Install beginning... SET datadir="%PROGRAMDATA%\BOINC\" boinc_7.2.42_windows_x86_64.exe /S /v"/qn ENABLEPROTECTEDAPPLICATIONEXECUTION3=1 ENABLESCREENSAVER=0 ENABLEUSEBYALLUSERS=0 ENABLESTARTMENUITEMS=0 LAUNCHPROGRAM=0 RebootYesNo=No PROJINIT_URL=http://XXX.XXX.XXX.XXX/projectname/ PROJINT_AUTH=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" :: BOINC CLIENT CONFIGURATION ECHO Copying configuration files... COPY cc_config.xml %datadir% COPY account_XXX.XXX.XXX.XXX_projectname.xml %datadir% COPY global_prefs_override.xml %datadir% :: DISABLE BOINCMGR STARTUP ECHO Disabling auto-startup and altering registry... set boinckey="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" REG QUERY %boinckey% /v boincmgr 1>nul 2>&1 && REG DELETE %boinckey% /v boincmgr /f REG QUERY %boinckey% /v boinctray 1>nul 2>&1 && REG DELETE %boinckey% /v boinctray /f IF EXIST "%USERPROFILE%\Start Menu\Programs\BOINC" RMDIR /S /Q "%USERPROFILE$\Start Menu\Programs\BOINC" IF EXIST "%APPDATA%\Microsoft\Windows\Start Menu\Programs\BOINC" RMDIR \S \Q "%APPDATA%\Microsoft\Windows\Start Menu\Programs\BOINC" ECHO Installation and configuration complete. IF %rst%==yes ( ECHO Restarting... shutdown /r ) ELSE ( ECHO Exiting... ) :end |
Copyright © 2025 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.