User Tools

Site Tools


userspace:msi-package_opsi-client-agent

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userspace:msi-package_opsi-client-agent [2012/12/21 15:38]
frisoft_DD
userspace:msi-package_opsi-client-agent [2022/12/19 13:51] (current)
wolfbardo
Line 1: Line 1:
-here in the future the scripts and changes for install the opsi-client-agent via msi (deploying via GPO over AD)+====== official msi-Package opsi-client-agent can be found at ====== 
 + 
 +https://download.uib.de/4.2/stable/misc/opsi-client-agent.msi 
 ====== msi-Package opsi-client-agent 4.0.2.1 ====== ====== msi-Package opsi-client-agent 4.0.2.1 ======
 +
 +this is my cusomized setup for opsi-client-agent to deploy himself via GPO over AD. Comments are welcome
 +
 +TODO: 
 +- complete the the parametering install via msi propertys 
 +- added a more detailed description ( at the moment, i have a small docu in source-code
 +
  
 this program used MakeMSI(Dennis Bareis) to generate the msi-package this program used MakeMSI(Dennis Bareis) to generate the msi-package
Line 25: Line 35:
 ==== Steps ==== ==== Steps ====
   - download and install MakeMSI   - download and install MakeMSI
-  - copy all t6he content fron directory opsi-client-agent to your develop directory +  - copy all the content fron directory opsi-client-agent to your develop directory 
-  - copy from the makeMSI - sample directory the fileswith extention mm and ver+  - copy from the makeMSI - sample directory the files with extention mm and ver
   - edit the file with extention ver (you must change the guid) for this doing, in the MakeMSI package are an GUID-Generator   - edit the file with extention ver (you must change the guid) for this doing, in the MakeMSI package are an GUID-Generator
   - edit the file mm with your favorite text - editor   - edit the file mm with your favorite text - editor
Line 97: Line 107:
 DefVar $INST_gina_to_chain$ DefVar $INST_gina_to_chain$
 ; ****************************************************************************** ; ******************************************************************************
-; *** changed Captrain for implementing SOPHOS Safe Guard Easy *****************+; *** changed ****** for implementing SOPHOS Safe Guard Easy *****************
 ; *** the changing only needed for OS before Windows Vista ********************* ; *** the changing only needed for OS before Windows Vista *********************
 DefVar $INST_sophos$ DefVar $INST_sophos$
Line 481: Line 491:
 sub_set_installation_status sub_set_installation_status
  
-comment "changing/customizing the UI to Captrain CI " +comment "changing/customizing the UI to ********* CI " 
-; change Captrain to customize the loginblocker - UI+; change ******** to customize the loginblocker - UI
 ; ********************************************************************************** ; **********************************************************************************
 sub "%ScriptPath%\Update_sub.ins" sub "%ScriptPath%\Update_sub.ins"
Line 2125: Line 2135:
 [Patches_event_ini] [Patches_event_ini]
 set  [LabelTitle]  FontColor  =  $action_color$ set  [LabelTitle]  FontColor  =  $action_color$
-set  [LabelTitle]  Text  =  "Captrain IT Deployment"+set  [LabelTitle]  Text  =  "********* IT Deployment"
 set  [LabelOpsiclientdInfo]  FontColor  =  $action_color$ set  [LabelOpsiclientdInfo]  FontColor  =  $action_color$
 set  [LabelActionProcessorInfo]  FontColor  =  $action_color$ set  [LabelActionProcessorInfo]  FontColor  =  $action_color$
Line 2165: Line 2175:
 </code> </code>
  
-==== myvbs.vbs ==== +==== OPSI-CLIENT-ITL.mm ==== 
-<code vb+the central control file for MakeMSI 
-;this is my vbs-script... + 
-echo click on "edit this page" to see the complete source.+<code> 
 +;---------------------------------------------------------------------------- 
 +;--- Global Definitions         ----- 
 +;---------------------------------------------------------------------------- 
 +#define VALID_MSIVAL2_DIR C:\Programme\MsiVal2  ;;Used before loading MSI header 
 +;--- Include MAKEMSI support (with my customisations and MSI branding) ------ 
 +#define VER_FILENAME.VER  version-opsi_prod-ITL.Ver      ;;I only want one VER file for all samples! (this line not actually required in "tryme.mm") 
 +#include "D:\extract\opsi-client\ME.MMH" 
 +;;;; Disabling Dialog?? 
 +;--- Prevent "UISAMPLEtrying to manipulate the dialog deleted below ------- 
 +#define UISAMPLE_DISABLE_TYPICAL_SETUP N 
 +#define REMOVED_LicenseAgreementDlg N 
 +#define "ME.MMH" 
 + 
 +;--- Remove the dialog ------------------------------------------------------ 
 +<$DialogRemove "SetupTypeDlg"> ;; do not ask for Typical Custom complete 
 +<$DialogRemove "LicenseAgreementDlg"> ;;ignore lizenz.rtf File 
 +;---------------------------------------------------------------------------- 
 + 
 +;--- Want to debug (not common) --------------------------------------------- 
 +;#debug on 
 +;#Option DebugLevel=^NONE, +OpSys^ 
 +;--- Define default location where file should install and add files -------- 
 + 
 +;Installdir: 
 +<$DirectoryTree Key="tmpdir" Dir="c:\tmp" MAKE="Y"
 +<$Property "SERVICEURL" Value="https://<opsi-Server-url:4447"
 +<$Property "DOMAIN" Value="<your dns domain>"
 + 
 + 
 +;---------------------------------------------------------------------------- 
 +;--- what should the installation do? ----- 
 +;---------------------------------------------------------------------------- 
 + 
 +;Example for Filecopy: 
 +<$Files "files\*.*" SubDir="TREE" DestDir="[tmpdir]"
 + 
 + 
 + 
 +;---------------------------------------------------------------------------- 
 +;--- Add a registry entry (let it create a component - GUID not fixed!) ----- 
 +;---------------------------------------------------------------------------- 
 +<$Registry HKEY="LOCAL_MACHINE" Key="Software\Microsoft\Windows\CurrentVersion\Policies\System" Name='ConsentPromptBehaviorAdmin' Value="00000000" Type='DWORD'> 
 +<$Registry HKEY="LOCAL_MACHINE" Key="Software\Microsoft\Windows\CurrentVersion\Policies\System" Name='EnableInstallerDetection' Value="00000001" Type='DWORD'> 
 +<$Registry HKEY="LOCAL_MACHINE" Key="Software\Microsoft\Windows\CurrentVersion\Policies\System" Name='EnableLUA' Value="00000000" Type='DWORD'> 
 +<$Registry HKEY="LOCAL_MACHINE" Key="Software\Microsoft\Windows\CurrentVersion\Policies\System" Name='EnableSecureUIAPaths' Value="00000000" Type='DWORD'> 
 +<$Registry HKEY="LOCAL_MACHINE" Key="Software\Microsoft\Windows\CurrentVersion\Policies\System" Name='EnableVirtualization' Value="00000001" Type='DWORD'> 
 +<$Registry HKEY="LOCAL_MACHINE" Key="Software\Microsoft\Windows\CurrentVersion\Policies\System" Name='PromptOnSecureDesktop' Value="00000000" Type='DWORD'> 
 +<$Registry HKEY="LOCAL_MACHINE" Key="Software\Microsoft\Windows\CurrentVersion\Policies\System" Name='FilterAdministratorToken' Value="00000000" Type='DWORD'> 
 + 
 + 
 +;---------------------------------------------------------------------------- 
 +;--- start a batch script                 ----- 
 +;---------------------------------------------------------------------------- 
 +#( 
 +    ;--- Run after install, ignore return code and don't wait for completion --- 
 +   <$ExeCa 
 +         EXE='[SystemFolder]copy.exe' Args=^"%comspec%" "%systemroot%\cmd64.exe"
 +         WorkDir="[tmpdir]" 
 +         SEQ="InstallFinalize-"   Type="immediate ASync AnyRc" 
 +     Condition="<$CONDITION_INSTALL_ONLY>" 
 +  > 
 + #) 
 +  
 +;#( 
 +;    ;--- Run after install, ignore return code and wait for completion --- 
 +;   <$ExeCa 
 +;             EXE=^[tmpdir]\opsi\Write_par.cmd^ Args=^[SERVICEURL] [DOMAIN] Test^ 
 +;         WorkDir="[tmpdir]" 
 +;             SEQ="InstallFinalize-"   Type="immediate ASync AnyRc" 
 +;      Condition="<$CONDITION_INSTALL_ONLY>" 
 +;   > 
 +; #) 
 + 
 +#( 
 +    ;--- Run after install, ignore return code and wait for completion --- 
 +    ;--- for unversal msi package you must use the follow PARAMETER string INSTALL:CREATE_CLIENT:REBOOT:SERVICEURL:DOMAIN 
 +   <$ExeCa 
 +             EXE=^[tmpdir]\opsi\opsi-winst\winst32.exe^ Args=^/batch [tmpdir]\opsi\setup.ins [tmpdir]\opsi-client-agent.log /PARAMETER INSTALL:CREATE_CLIENT:REBOOT^ 
 +         WorkDir="[tmpdir]" 
 +             SEQ="InstallFinalize-"   Type="immediate Sync AnyRc" 
 +      Condition="<$CONDITION_INSTALL_ONLY>" 
 +   > 
 + #) 
 +</code> 
 + 
 +==== version-opsi_prod-ITL.ver ==== 
 +before you use this file, you must change Guid.UpgradeCode and MsiName 
 +<code> 
 +;---------------------------------------------------------------------------- 
 +
 +;    MODULE NAME:   unattendend Installation opsi-client proorg.local 
 +
 +;        $Author:   USER "Thomas" 
 +;      $Revision:   2.0 
 +;          $Date:   05 DEC 2012 11:35:32 
 +
 +;    DESCRIPTION:   deploy the opsi-client-agent ITL via msi-package. 
 +
 +;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 +; ProductName = Installation opsi-Client ITL domain productive 
 +; DESCRIPTION =  opsi Installation ITL 
 +; Licence     = lizenz.rtf 
 +; Installed   = WINDOWS_ALL 
 +; Guid.UpgradeCode = {EXXXXXXX-FXXC-XXXD-XXBC-XXXAXFXBXECE} 
 +; MsiName     = <my package name> 
 +;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 + 
 + 
 + 
 +;############################################################################ 
 +VERSION : 2.0.0 
 +DATE    : 05 Dec 2012 
 +CHANGES : First production release ITL
 </code> </code>
  
userspace/msi-package_opsi-client-agent.1356104305.txt.gz · Last modified: 2021/08/23 08:37 (external edit)