Code

Changeset 0c2864 in kliu.fontreg


Ignore:
Timestamp:
03/13/2013 07:02:13 PM (7 years ago)
Author:
geos_one
Branches:
master
Parents:
e5eec2
git-author:
Mario Fetka <mario.fetka@…> (03/13/2013 07:02:13 PM)
git-committer:
Mario Fetka <mario.fetka@…> (03/13/2013 07:02:13 PM)
Message:

update to new opsi builder template

Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • CLIENT_DATA/delsub3264.ins

    re5eec2 r0c2864  
    22; This sourcecode is owned by uib gmbh 
    33; and published under the Terms of the General Public License. 
    4 ; credits: http://www.opsi.org/credits/ 
     4; credits: http://www.opsi.org/en/credits/ 
    55 
    66 
     7Set $UninstallProgram32$ = $InstallDir32$ + $UninstallProg32$ 
     8Set $IniFile32$ = $InstallDir32$ + "\opsi-" + $ProductId$ + ".ini" 
     9 
     10Set $UninstallProgram64$ = $InstallDir64$ + $UninstallProg64$ 
     11Set $IniFile64$ = $InstallDir64$ + "\opsi-" + $ProductId$ + ".ini" 
     12 
    713if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only") 
    8         Message "Uninstalling " + $ProductId$ + " 32 Bit..." 
     14        if FileExists($IniFile32$) 
     15                Set $OLD_VERSION$ = GetValueFromInifile($IniFile32$,"COMMON","VERSION","") 
     16                Set $OLD_CREATOR_TAG$ = GetValueFromInifile($IniFile32$,"COMMON","CREATOR_TAG","") 
     17                Set $OLD_RELEASE$ = GetValueFromInifile($IniFile32$,"COMMON","RELEASE","") 
     18        endif 
     19        Message "Uninstalling " + $ProductId$ + " "+ $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " 32 Bit..." 
    920 
    10         comment "Delete files" 
    11         Files_uninstall_32 /32Bit 
     21        if FileExists($IniFile32$) 
     22                Set $UninstallProg32$ = GetValueFromInifile($IniFile32$,"X86","UninstallProg32","XXXXXXXX.exe") 
     23                Set $UninstallProgramOld32$ = $InstallDir32$ + "\" + $UninstallProg32$ 
     24                if FileExists($UninstallProgramOld32$) 
     25                        comment "Uninstall program found, starting uninstall" 
     26                        Files_uninstall_old_32 
     27                        sub_check_exitcode 
     28                endif 
     29        endif 
     30        if FileExists($UninstallProgram32$) 
     31                comment "Uninstall program found, starting uninstall" 
     32                Files_uninstall_32 
     33                sub_check_exitcode 
     34        endif 
     35 
    1236        comment "Cleanup registry" 
    1337        Registry_uninstall /32Bit 
     
    1539 
    1640if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) 
    17         Message "Uninstalling " + $ProductId$ + " 64 Bit..." 
     41        if FileExists($IniFile64$) 
     42                Set $OLD_VERSION$ = GetValueFromInifile($IniFile64$,"COMMON","VERSION","") 
     43                Set $OLD_CREATOR_TAG$ = GetValueFromInifile($IniFile64$,"COMMON","CREATOR_TAG","") 
     44                Set $OLD_RELEASE$ = GetValueFromInifile($IniFile64$,"COMMON","RELEASE","") 
     45        endif 
     46        Message "Uninstalling " + $ProductId$ + " "+ $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " 64 Bit..." 
    1847 
    19         comment "Delete files" 
    20         Files_uninstall_64 /64Bit 
     48        if FileExists($IniFile64$) 
     49                Set $UninstallProg64$ = GetValueFromInifile($IniFile64$,"X86_64","UninstallProg64","XXXXXXXX.exe") 
     50                Set $UninstallProgramOld64$ = $InstallDir64$ + "\" + $UninstallProg64$ 
     51                if FileExists($UninstallProgramOld64$) 
     52                        comment "Uninstall program found, starting uninstall" 
     53                        Files_uninstall_old_64 
     54                        sub_check_exitcode 
     55                endif 
     56        endif 
     57        if FileExists($UninstallProgram64$) 
     58                comment "Uninstall program found, starting uninstall" 
     59                Files_uninstall_64 
     60                sub_check_exitcode 
     61        endif 
     62 
    2163        comment "Cleanup registry" 
    2264        Registry_uninstall /64Bit 
     
    2668LinkFolder_uninstall 
    2769 
     70[Files_uninstall_old_32] 
     71delete -sf "$UninstallProgramOld32$" 
     72 
    2873[Files_uninstall_32] 
    29 delete -sf "$InstallDir32$\FontReg.exe" 
     74delete -sf "$UninstallProgram32$" 
     75 
     76[Files_uninstall_old_64] 
     77delete -sf "$UninstallProgramOld64$" 
    3078 
    3179[Files_uninstall_64] 
    32 delete -sf "$InstallDir64$\FontReg.exe" 
     80delete -sf "$UninstallProgram64$" 
    3381 
    3482[Registry_uninstall] 
  • CLIENT_DATA/setup3264.ins

    re5eec2 r0c2864  
    22; This sourcecode is owned by uib 
    33; and published under the Terms of the General Public License. 
    4 ; credits: http://www.opsi.org/credits/ 
     4; credits: http://www.opsi.org/en/credits/ 
    55 
    66[Actions] 
    7 requiredWinstVersion >= "4.10.8.6" 
     7requiredWinstVersion >= "4.11.2.6" 
    88 
     9DefVar $UninstallProgram32$ 
     10DefVar $UninstallProgramOld32$ 
     11DefVar $IniFile32$ 
     12DefVar $UninstallProgram64$ 
     13DefVar $UninstallProgramOld64$ 
     14DefVar $IniFile64$ 
     15DefVar $IniCfgFile$ 
    916DefVar $LogDir$ 
    1017DefVar $ProductId$   
     
    1522DefVar $INST_SystemType$ 
    1623DefVar $INST_architecture$ 
     24DefVar $OLD_VERSION$ 
     25DefVar $OLD_CREATOR_TAG$ 
     26DefVar $OLD_RELEASE$ 
    1727 
    1828Set $INST_SystemType$ = GetSystemType 
    1929set $INST_architecture$ = GetProductProperty("install_architecture","system specific") 
    20  
    2130 
    2231Set $LogDir$ = "%SystemDrive%\tmp" 
     
    3847; therefore please: only lower letters, no umlauts,  
    3948; no white space use '-' as a seperator 
    40 Set $ProductId$       = "kliu.fontreg" 
    4149Set $MinimumSpace$    = "1 MB" 
    4250; the path were we find the product after the installation 
     
    4452Set $InstallDir64$      = "%Systemroot%" 
    4553; ---------------------------------------------------------------- 
     54 
     55Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini" 
    4656 
    4757if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$)) 
     
    5161else 
    5262        comment "Show product picture" 
    53         ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ 
     63        ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$ 
    5464         
    5565        if FileExists("%ScriptPath%\delsub3264.ins") 
     
    6171 
    6272        if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only") 
    63                 Message "Installing " + $ProductId$ + " 32 Bit..." 
     73                Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 32 Bit..." 
     74                comment "Start setup program" 
     75                ChangeDirectory "%SCRIPTPATH%" 
    6476                comment "Copy files" 
    6577                Files_install_32 /32Bit 
     
    7183 
    7284        if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) 
    73                 Message "Installing " + $ProductId$ + " 64 Bit..." 
     85                Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..." 
     86                comment "Start setup program" 
     87                ChangeDirectory "%SCRIPTPATH%" 
    7488                comment "Copy files" 
    7589                Files_install_64 /64Bit 
     
    8397 
    8498[Files_install_32] 
    85 copy "$FontReg32Exe$" "$InstallDir32$" 
    86  
     99; copy the ini file to the InstallDir 
     100copy "$IniCfgFile$" "$InstallDir32$" 
     101copy "$Install32Exe$" "$InstallDir32$" 
    87102 
    88103[Files_install_64] 
    89 copy "$FontReg64Exe$" "$InstallDir64$" 
     104; copy the ini file to the InstallDir 
     105copy "$IniCfgFile$" "$InstallDir64$" 
     106copy "$install64Exe$" "$InstallDir64$" 
    90107 
    91108[Registry_install] 
  • CLIENT_DATA/uninstall3264.ins

    re5eec2 r0c2864  
    22; This sourcecode is owned by uib gmbh 
    33; and published under the Terms of the General Public License. 
    4 ; credits: http://www.opsi.org/credits/ 
     4; credits: http://www.opsi.org/en/credits/ 
    55 
    66[Actions] 
    7 requiredWinstVersion >= "4.10.8.6" 
     7requiredWinstVersion >= "4.11.2.6" 
    88 
     9DefVar $UninstallProg32$ 
     10DefVar $UninstallProgram32$ 
     11DefVar $UninstallProgramOld32$ 
     12DefVar $IniFile32$ 
     13DefVar $UninstallProg64$ 
     14DefVar $UninstallProgram64$ 
     15DefVar $UninstallProgramOld64$ 
     16DefVar $IniFile64$ 
     17DefVar $IniCfgFile$ 
    918DefVar $LogDir$ 
    1019DefVar $ExitCode$ 
     
    1221DefVar $InstallDir32$ 
    1322DefVar $InstallDir64$ 
    14 DefVar $LicenseRequired$ 
    15 DefVar $LicensePool$ 
    1623DefVar $INST_SystemType$ 
    1724DefVar $INST_architecture$ 
     25DefVar $OLD_VERSION$ 
     26DefVar $OLD_CREATOR_TAG$ 
     27DefVar $OLD_RELEASE$ 
    1828 
    1929Set $INST_SystemType$ = GetSystemType 
    2030set $INST_architecture$ = GetProductProperty("install_architecture","system specific") 
    21  
    2231 
    2332Set $LogDir$ = "%SystemDrive%\tmp" 
     
    3645; - Please edit the following values                             - 
    3746; ---------------------------------------------------------------- 
    38 Set $ProductId$       = "kliu.fontreg" 
    3947Set $InstallDir32$    = "%Systemroot%" 
    4048Set $InstallDir64$    = "%Systemroot%" 
    4149; ---------------------------------------------------------------- 
    4250 
     51Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini" 
    4352 
    4453comment "Show product picture" 
    45 ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ 
     54ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$ 
    4655 
    4756Message "Uninstalling " + $ProductId$ + " ..." 
  • builder-product.cfg

    re5eec2 r0c2864  
    44VENDOR="code.kliu.org" 
    55PN="kliu.fontreg" 
     6NAME="Kliu Font Reg" 
     7DESCRIPTION="FontReg is a small Windows utility to install fonts and/or repair the font registry." 
    68VERSION="2.1.3" 
    79RELEASE="3" 
     
    1315TYPE="public" 
    1416 
    15    
    1617DL_FILE[0]="fonts-icon.png" 
    1718DL_SOURCE[0]="http://icons.iconarchive.com/icons/icontoaster/icons-10-bundle/256/fonts-icon.png" 
     
    2526ICON_DL_INDEX=0 
    2627 
    27 WINST_NAME[0]="FontReg32Exe" 
     28WINST_NAME[0]="Install32Exe" 
    2829WINST_VALUE[0]="@DL_EXTRACT_WINST_PATH[1]@\\bin.x86-32\\FontReg.exe" 
    2930 
    30 WINST_NAME[1]="FontReg64Exe" 
     31WINST_NAME[1]="Install64Exe" 
    3132WINST_VALUE[1]="@DL_EXTRACT_WINST_PATH[1]@\\bin.x86-64\\FontReg.exe" 
    3233 
     34OPSI_INI_SECTION[0]="X86" 
     35OPSI_INI_OPTION[0]="UninstallProg32" 
     36OPSI_INI_VALUE[0]="FontReg.exe" 
    3337 
     38OPSI_INI_SECTION[1]="X86_64" 
     39OPSI_INI_OPTION[1]="UninstallProg64" 
     40OPSI_INI_VALUE[1]="FontReg.exe" 
     41 
  • builder-targets-cb.sh

    re5eec2 r0c2864  
    2424    builder_cleanup 
    2525} 
     26 
     27function create() { 
     28    echo "Create" 
     29    builder_create 
     30    rm -rf $INST_DIR/CLIENT_DATA/X86/src 
     31} 
Note: See TracChangeset for help on using the changeset viewer.