Code

Changeset cf033c in nerdcave.taskbarshuffle


Ignore:
Timestamp:
03/14/2013 04:12:28 PM (7 years ago)
Author:
geos_one
Branches:
master
Children:
86ad52
Parents:
9a93c2
git-author:
Mario Fetka <mario.fetka@…> (03/14/2013 04:12:28 PM)
git-committer:
Mario Fetka <mario.fetka@…> (03/14/2013 04:12:28 PM)
Message:

update to new opsi builder templates

Files:
3 added
1 deleted
2 edited
3 moved

Legend:

Unmodified
Added
Removed
  • CLIENT_DATA/delsub3264.ins

    rddd9e5 rcf033c  
    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 
    7 Set $UninstallProgram32$ = $InstallDir32$ + "\unins000.exe" 
     7Set $UninstallProgram32$ = $InstallDir32$ + "\" + $UninstallProg32$ 
     8Set $IniFile32$ = $InstallDir32$ + "\opsi-" + $ProductId$ + ".ini" 
    89 
    9 Set $UninstallProgram32$ = $InstallDir64$ + "\unins000.exe" 
     10Set $UninstallProgram64$ = $InstallDir64$ + "\" + $UninstallProg64$ 
     11Set $IniFile64$ = $InstallDir64$ + "\opsi-" + $ProductId$ + ".ini" 
    1012 
    1113if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only") 
    12         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..." 
    1320 
     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                        Winbatch_uninstall_old_32 
     27                        sub_check_exitcode 
     28                endif 
     29        endif 
    1430        if FileExists($UninstallProgram32$) 
    1531                comment "Uninstall program found, starting uninstall" 
     
    2541 
    2642if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) 
    27         Message "Uninstalling " + $ProductId$ + " 64 Bit..." 
     43        if FileExists($IniFile64$) 
     44                Set $OLD_VERSION$ = GetValueFromInifile($IniFile64$,"COMMON","VERSION","") 
     45                Set $OLD_CREATOR_TAG$ = GetValueFromInifile($IniFile64$,"COMMON","CREATOR_TAG","") 
     46                Set $OLD_RELEASE$ = GetValueFromInifile($IniFile64$,"COMMON","RELEASE","") 
     47        endif 
     48        Message "Uninstalling " + $ProductId$ + " "+ $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " 64 Bit..." 
    2849 
     50        if FileExists($IniFile64$) 
     51                Set $UninstallProg64$ = GetValueFromInifile($IniFile64$,"X86_64","UninstallProg64","XXXXXXXX.exe") 
     52                Set $UninstallProgramOld64$ = $InstallDir64$ + "\" + $UninstallProg64$ 
     53                if FileExists($UninstallProgramOld64$) 
     54                        comment "Uninstall program found, starting uninstall" 
     55                        Winbatch_uninstall_old_64 
     56                        sub_check_exitcode 
     57                endif 
     58        endif 
    2959        if FileExists($UninstallProgram64$) 
    3060                comment "Uninstall program found, starting uninstall" 
     
    4272LinkFolder_uninstall 
    4373 
     74[Winbatch_uninstall_old_32] 
     75"$UninstallProgramOld32$" /VERYSILENT 
     76 
    4477[Winbatch_uninstall_32] 
    4578"$UninstallProgram32$" /VERYSILENT 
     
    4881; Example for recursively deleting the installation directory (don't forget the trailing backslash): 
    4982; 
    50 ; delete -sf "$InstallDir32$\" 
     83delete -sf "$InstallDir32$\" 
     84 
     85[Winbatch_uninstall_old_64] 
     86"$UninstallProgramOld64$" /VERYSILENT 
    5187 
    5288[Winbatch_uninstall_64] 
     
    5490 
    5591[Files_uninstall_64] 
    56 ; Example for recursively deleting the installation directory (don't forget the trailing backslash): 
     92; Example for recursively deleting the installation directory: 
    5793; 
    58 ; delete -sf "$InstallDir64$\" 
     94del -sf "$InstallDir64$\" 
    5995 
    6096[Registry_uninstall] 
  • CLIENT_DATA/setup3264.ins

    r9a93c2 rcf033c  
    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 
    99DefVar $UninstallProgram32$ 
     10DefVar $UninstallProgramOld32$ 
     11DefVar $IniFile32$ 
    1012DefVar $UninstallProgram64$ 
     13DefVar $UninstallProgramOld64$ 
     14DefVar $IniFile64$ 
     15DefVar $IniCfgFile$ 
    1116DefVar $LogDir$ 
    1217DefVar $ProductId$   
     
    1722DefVar $INST_SystemType$ 
    1823DefVar $INST_architecture$ 
     24DefVar $OLD_VERSION$ 
     25DefVar $OLD_CREATOR_TAG$ 
     26DefVar $OLD_RELEASE$ 
    1927 
    2028Set $INST_SystemType$ = GetSystemType 
    2129set $INST_architecture$ = GetProductProperty("install_architecture","system specific") 
    22  
    2330 
    2431Set $LogDir$ = "%SystemDrive%\tmp" 
     
    4047; therefore please: only lower letters, no umlauts,  
    4148; no white space use '-' as a seperator 
    42 Set $ProductId$       = "nerdcave.taskbarshuffle" 
    43 Set $MinimumSpace$    = "3 MB" 
     49Set $MinimumSpace$    = "5 MB" 
    4450; the path were we find the product after the installation 
    4551Set $InstallDir32$      = "%ProgramFiles32Dir%\Taskbar Shuffle" 
    4652Set $InstallDir64$      = "%ProgramFiles64Dir%\Taskbar Shuffle" 
    4753; ---------------------------------------------------------------- 
     54 
     55Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini" 
    4856 
    4957if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$)) 
     
    5361else 
    5462        comment "Show product picture" 
    55         ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ 
     63        ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$ 
    5664         
    57         if FileExists("%ScriptPath%\delsub.ins") 
     65        if FileExists("%ScriptPath%\delsub3264.ins") 
    5866                comment "Start uninstall sub section" 
    59                 Sub "%ScriptPath%\delsub.ins" 
     67                Sub "%ScriptPath%\delsub3264.ins" 
    6068        endif 
    6169         
     70        comment "installing" 
     71 
    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..." 
    6474                comment "Start setup program" 
     75                ChangeDirectory "%SCRIPTPATH%" 
    6576                Winbatch_install_32 
    6677                Sub_check_exitcode 
     
    7485 
    7586        if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) 
    76                 Message "Installing " + $ProductId$ + " 64 Bit..." 
     87                Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..." 
    7788                comment "Start setup program" 
     89                ChangeDirectory "%SCRIPTPATH%" 
    7890                Winbatch_install_64 
    7991                Sub_check_exitcode 
     
    92104 
    93105[Files_install_32] 
     106; copy the ini file to the InstallDir 
     107copy "$IniCfgFile$" "$InstallDir32$" 
     108 
    94109; Example of recursively copying some files into the installation directory: 
    95110; 
     
    100115 
    101116[Files_install_64] 
     117; copy the ini file to the InstallDir 
     118copy "$IniCfgFile$" "$InstallDir64$" 
     119 
    102120; Example of recursively copying some files into the installation directory: 
    103121; 
  • CLIENT_DATA/uninstall3264.ins

    r9a93c2 rcf033c  
    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$ 
    910DefVar $UninstallProgram32$ 
     11DefVar $UninstallProgramOld32$ 
     12DefVar $IniFile32$ 
     13DefVar $UninstallProg64$ 
    1014DefVar $UninstallProgram64$ 
     15DefVar $UninstallProgramOld64$ 
     16DefVar $IniFile64$ 
     17DefVar $IniCfgFile$ 
    1118DefVar $LogDir$ 
    1219DefVar $ExitCode$ 
     
    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$       = "nerdcave.taskbarshuffle" 
    39 Set $InstallDir32$      = "%ProgramFiles32Dir%\Taskbar Shuffle" 
    40 Set $InstallDir64$      = "%ProgramFiles64Dir%\Taskbar Shuffle" 
    41 Set $LicenseRequired$ = "false" 
    42 Set $LicensePool$     = "p_" + $ProductId$ 
     47Set $InstallDir32$    = "%ProgramFiles32Dir%\Taskbar Shuffle" 
     48Set $InstallDir64$    = "%ProgramFiles64Dir%\Taskbar Shuffle" 
    4349; ---------------------------------------------------------------- 
    4450 
     51Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini" 
    4552 
    4653comment "Show product picture" 
    47 ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ 
     54ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$ 
    4855 
    4956Message "Uninstalling " + $ProductId$ + " ..." 
    5057 
    51 if FileExists("%ScriptPath%\delsub.ins") 
     58if FileExists("%ScriptPath%\delsub3264.ins") 
    5259        comment "Start uninstall sub section" 
    53         Sub "%ScriptPath%\delsub.ins" 
     60        Sub "%ScriptPath%\delsub3264.ins" 
    5461endif 
    5562 
  • OPSI/control

    rddd9e5 rcf033c  
    1414licenseRequired: False 
    1515productClasses:  
    16 setupScript: setup.ins 
    17 uninstallScript: uninstall.ins 
     16setupScript: setup3264.ins 
     17uninstallScript: uninstall3264.ins 
    1818updateScript:  
    1919alwaysScript:  
  • builder-product.cfg

    rddd9e5 rcf033c  
    44VENDOR="nerdcave.webs.com" 
    55PN="nerdcave.taskbarshuffle" 
     6NAME="Taskbar Shuffle" 
     7DESCRIPTION="Taskbar Shuffle is a simple, small, free utility that lets you drag and drop your Windows taskbar buttons to rearrange them." 
    68VERSION="2.5" 
    79RELEASE="3" 
     
    1416 
    1517   
    16 DL_FILE[0]="taskbar-shuffle-portable-6.jpg" 
    17 DL_SOURCE[0]="http://screenshots.de.sftcdn.net/de/scrn/83000/83890/taskbar-shuffle-portable-6.jpg" 
     18DL_FILE[0]="taskbar-shuffle.jpg" 
     19DL_SOURCE[0]="http://www.econsultant.com/images/taskbar-shuffle.jpg" 
    1820 
    1921DL_FILE[1]="ts2.5_setup.exe" 
     
    3032ICON_DL_INDEX=0 
    3133 
     34OPSI_INI_SECTION[0]="X86" 
     35OPSI_INI_OPTION[0]="UninstallProg32" 
     36OPSI_INI_VALUE[0]="unins000.exe" 
     37 
     38OPSI_INI_SECTION[1]="X86_64" 
     39OPSI_INI_OPTION[1]="UninstallProg64" 
     40OPSI_INI_VALUE[1]="unins000.exe" 
Note: See TracChangeset for help on using the changeset viewer.