Changeset 2b5e4d in openvpn.manager
- Timestamp:
- 03/08/2014 07:12:57 AM (7 years ago)
- Branches:
- master
- Children:
- 4fc1f9
- Parents:
- 109108
- git-author:
- Mario Fetka <mario.fetka@…> (03/08/2014 07:12:57 AM)
- git-committer:
- Mario Fetka <mario.fetka@…> (03/08/2014 07:12:57 AM)
- Files:
-
- 2 added
- 1 deleted
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
CLIENT_DATA/setup3264.ins
r109108 r2b5e4d 7 7 requiredWinstVersion >= "4.11.2.6" 8 8 9 DefVar $UninstallProgram$ 10 DefVar $UninstallProgramOld$ 11 DefVar $IniFile$ 9 DefVar $UninstallProgram32$ 10 DefVar $UninstallProgramOld32$ 11 DefVar $IniFile32$ 12 DefVar $UninstallProgram64$ 13 DefVar $UninstallProgramOld64$ 14 DefVar $IniFile64$ 12 15 DefVar $IniCfgFile$ 13 16 DefVar $LogDir$ 14 17 DefVar $ProductId$ 15 18 DefVar $MinimumSpace$ 16 DefVar $InstallDir$ 19 DefVar $InstallDir32$ 20 DefVar $InstallDir64$ 17 21 DefVar $ExitCode$ 22 DefVar $INST_SystemType$ 23 DefVar $INST_architecture$ 18 24 DefVar $OLD_VERSION$ 19 25 DefVar $OLD_CREATOR_TAG$ 20 26 DefVar $OLD_RELEASE$ 27 28 Set $INST_SystemType$ = GetSystemType 29 set $INST_architecture$ = GetProductProperty("install_architecture","system specific") 21 30 22 31 Set $LogDir$ = "%SystemDrive%\tmp" … … 38 47 ; therefore please: only lower letters, no umlauts, 39 48 ; no white space use '-' as a seperator 40 Set $MinimumSpace$ = "1 MB"49 Set $MinimumSpace$ = "10 MB" 41 50 ; the path were we find the product after the installation 42 Set $InstallDir$ = "%ProgramFiles32Dir%\OpenVPN Manager" 51 Set $InstallDir32$ = "%ProgramFiles32Dir%\OpenVPN Manager" 52 Set $InstallDir64$ = "%ProgramFiles64Dir%\OpenVPN Manager" 43 53 ; ---------------------------------------------------------------- 44 54 … … 47 57 if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$)) 48 58 LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$ 49 isFatalError "No Space"59 isFatalError 50 60 ; Stop process and set installation status to failed 51 61 else … … 53 63 ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$ 54 64 55 if FileExists("%ScriptPath%\delsub32 .ins")65 if FileExists("%ScriptPath%\delsub3264.ins") 56 66 comment "Start uninstall sub section" 57 Sub "%ScriptPath%\delsub32 .ins"67 Sub "%ScriptPath%\delsub3264.ins" 58 68 endif 59 69 60 Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " ..." 61 62 comment "Start setup program" 63 ChangeDirectory "%SCRIPTPATH%" 64 comment "Copy files" 65 Files_install /32Bit 66 67 Winbatch_install 68 Sub_check_exitcode 69 70 comment "Patch Registry" 71 Registry_install /32Bit 72 73 comment "Create shortcuts" 74 LinkFolder_install 70 comment "installing" 71 72 if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only") 73 Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 32 Bit..." 74 comment "Start setup program" 75 ChangeDirectory "%SCRIPTPATH%" 76 comment "Copy files" 77 Files_install_32 /32Bit 78 Winbatch_install_32 79 Sub_check_exitcode 80 comment "Patch Registry" 81 Registry_install /32Bit 82 comment "Create shortcuts" 83 LinkFolder_install 84 endif 85 86 if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) 87 Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..." 88 comment "Start setup program" 89 ChangeDirectory "%SCRIPTPATH%" 90 comment "Copy files" 91 Files_install_64 /64Bit 92 Winbatch_install_64 93 Sub_check_exitcode 94 comment "Patch Registry" 95 Registry_install /64Bit 96 comment "Create shortcuts" 97 LinkFolder_install 98 endif 75 99 76 100 endif 77 101 78 [Winbatch_install] 79 "$InstallDir$\OpenVPNManager.exe" -install 102 [Winbatch_install_32] 103 "$InstallDir32$\OpenVPNManagerService.exe" INSTALL "%ProgramFiles32Dir%\OpenVPN\\bin\openvpn.exe" 104 "$InstallDir32$\OpenVPNManager.exe" -install 80 105 81 [Files_install ]106 [Files_install_32] 82 107 ; copy the ini file to the InstallDir 83 copy "$IniCfgFile$" "$InstallDir $"108 copy "$IniCfgFile$" "$InstallDir32$" 84 109 85 110 ; Example of recursively copying some files into the installation directory: 86 111 ; 87 copy -s "%ScriptPath%\X86\*.*" "$InstallDir$" 112 ; copy -s "%ScriptPath%\files\*.*" "$InstallDir32$" 113 114 [Winbatch_install_64] 115 "$InstallDir64$\OpenVPNManagerService.exe" INSTALL "%ProgramFiles64Dir%\OpenVPN\\bin\openvpn.exe" 116 "$InstallDir64$\OpenVPNManager.exe" -install 117 118 [Files_install_64] 119 ; copy the ini file to the InstallDir 120 copy "$IniCfgFile$" "$InstallDir64$" 121 122 ; Example of recursively copying some files into the installation directory: 123 ; 124 ; copy -s "%ScriptPath%\files\*.*" "$InstallDir64$" 88 125 89 126 [Registry_install] -
CLIENT_DATA/uninstall3264.ins
r822551 r2b5e4d 7 7 requiredWinstVersion >= "4.11.2.6" 8 8 9 DefVar $UninstallProgram$ 10 DefVar $UninstallProgramOld$ 11 DefVar $IniFile$ 9 DefVar $UninstallProgram32$ 10 DefVar $UninstallProgramOld32$ 11 DefVar $IniFile32$ 12 DefVar $UninstallProgram64$ 13 DefVar $UninstallProgramOld64$ 14 DefVar $IniFile64$ 12 15 DefVar $IniCfgFile$ 13 16 DefVar $LogDir$ 14 17 DefVar $ExitCode$ 15 18 DefVar $ProductId$ 16 DefVar $InstallDir$ 19 DefVar $InstallDir32$ 20 DefVar $InstallDir64$ 21 DefVar $INST_SystemType$ 22 DefVar $INST_architecture$ 17 23 DefVar $OLD_VERSION$ 18 24 DefVar $OLD_CREATOR_TAG$ 19 25 DefVar $OLD_RELEASE$ 26 27 Set $INST_SystemType$ = GetSystemType 28 set $INST_architecture$ = GetProductProperty("install_architecture","system specific") 20 29 21 30 Set $LogDir$ = "%SystemDrive%\tmp" … … 34 43 ; - Please edit the following values - 35 44 ; ---------------------------------------------------------------- 36 Set $InstallDir$ = "%ProgramFiles32Dir%\OpenVPN Manager" 45 Set $InstallDir32$ = "%ProgramFiles32Dir%\OpenVPN Manager" 46 Set $InstallDir64$ = "%ProgramFiles64Dir%\OpenVPN Manager" 37 47 ; ---------------------------------------------------------------- 38 48 … … 44 54 Message "Uninstalling " + $ProductId$ + " ..." 45 55 46 if FileExists("%ScriptPath%\delsub32 .ins")56 if FileExists("%ScriptPath%\delsub3264.ins") 47 57 comment "Start uninstall sub section" 48 Sub "%ScriptPath%\delsub32 .ins"58 Sub "%ScriptPath%\delsub3264.ins" 49 59 endif 50 60 -
OPSI/control
r723f31 r2b5e4d 14 14 licenseRequired: False 15 15 productClasses: 16 setupScript: setup32 .ins17 uninstallScript: uninstall32 .ins16 setupScript: setup3264.ins 17 uninstallScript: uninstall3264.ins 18 18 updateScript: 19 19 alwaysScript: … … 21 21 customScript: 22 22 userLoginScript: 23 24 [ProductProperty] 25 type: unicode 26 name: install_architecture 27 multivalue: False 28 editable: False 29 description: which architecture (32/64 bit) has to be installed 30 values: ["32 only", "64 only", "both", "system specific"] 31 default: ["system specific"] 23 32 24 33 [ProductDependency] -
builder-product.cfg
r109108 r2b5e4d 1 ############################2 # Setup product information3 ############################4 1 VENDOR="jochenwierum.github.com" 5 2 PN="openvpn.manager" … … 20 17 DL_FILE[1]="openvpnmanager_${VERSION}_bin.zip" 21 18 DL_SOURCE[1]="http://openvpn.jowisoftware.de/downloads/openvpnmanager_${VERSION}_bin.zip" 22 DL_ARCH[1]=" X86"19 DL_ARCH[1]="ALL" 23 20 DL_EXTRACT_FORMAT[1]="unzip" 24 21 22 DL_FILE[2]="openvpnmanager_${VERSION}_setup.exe" 23 DL_SOURCE[2]="http://openvpn.jowisoftware.de/downloads/openvpnmanager_${VERSION}_setup.exe" 24 DL_ARCH[2]="TEMP" 25 DL_EXTRACT_FORMAT[2]="7zip" 26 27 # File array index for the image showing while installing the program 28 ICON_DL_INDEX=0 29 25 30 OPSI_INI_SECTION[0]="X86" 26 OPSI_INI_OPTION[0]="UninstallProg "31 OPSI_INI_OPTION[0]="UninstallProg32" 27 32 OPSI_INI_VALUE[0]="OpenVPNManager.exe" 28 33 34 OPSI_INI_SECTION[1]="X86_64" 35 OPSI_INI_OPTION[1]="UninstallProg64" 36 OPSI_INI_VALUE[1]="OpenVPNManager.exe" 37 -
builder-targets-cb.sh
r822551 r2b5e4d 24 24 builder_cleanup 25 25 } 26 27 function create() { 28 echo "Create" 29 builder_create 30 31 mv $INST_DIR/CLIENT_DATA/TEMP/\$COMMONFILES/OpenVPN\ Manager/* $INST_DIR/CLIENT_DATA/ALL 32 rm -rf $INST_DIR/CLIENT_DATA/TEMP 33 }
Note: See TracChangeset
for help on using the changeset viewer.