Code

Changeset 004d28 in vlc.mediaplayer


Ignore:
Timestamp:
03/18/2013 05:48:33 PM (7 years ago)
Author:
geos_one
Branches:
master
Children:
46d4b9
Parents:
a6888b
git-author:
Mario Fetka <mario.fetka@…> (03/18/2013 05:48:33 PM)
git-committer:
Mario Fetka <mario.fetka@…> (03/18/2013 05:48:33 PM)
Message:

update to new opsi builder template

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CLIENT_DATA/delsub32.ins

    ra449c1 r004d28  
    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 $UninstallProgram$ = $InstallDir$ + "\uninstall.exe" 
     7Set $UninstallProgram$ = $InstallDir$ + "\" + $UninstallProg$ 
     8Set $IniFile$ = $InstallDir$ + "\opsi-" + $ProductId$ + ".ini" 
    89 
    9 Message "Uninstalling " + $ProductId$ + " ..." 
     10if FileExists($IniFile$) 
     11        Set $OLD_VERSION$ = GetValueFromInifile($IniFile$,"COMMON","VERSION","") 
     12        Set $OLD_CREATOR_TAG$ = GetValueFromInifile($IniFile$,"COMMON","CREATOR_TAG","") 
     13        Set $OLD_RELEASE$ = GetValueFromInifile($IniFile$,"COMMON","RELEASE","") 
     14endif 
     15Message "Uninstalling " + $ProductId$ + " " + $OLD_VERSION$ + "-" + $OLD_CREATOR_TAG$ + $OLD_RELEASE$ + " ..." 
    1016 
     17if FileExists($IniFile$) 
     18        Set $UninstallProg$ = GetValueFromInifile($IniFile$,"X86","UninstallProg","XXXXXXXX.exe") 
     19        Set $UninstallProgramOld$ = $InstallDir$ + "\" + $UninstallProg$ 
     20        if FileExists($UninstallProgramOld$) 
     21                comment "Uninstall program found, starting uninstall" 
     22                Winbatch_uninstall_old 
     23                sub_check_exitcode 
     24        endif 
     25endif 
    1126if FileExists($UninstallProgram$) 
    1227        comment "Uninstall program found, starting uninstall" 
     
    2439LinkFolder_uninstall 
    2540 
     41[Winbatch_uninstall_old] 
     42"$UninstallProgramOld$" /S 
     43 
    2644[Winbatch_uninstall] 
    27 ; Choose one of the following examples as basis for program uninstall 
    28 ; 
    2945"$UninstallProgram$" /S 
    3046 
    3147[Files_uninstall] 
    32 ; Example for recursively deleting the installation directory (don't forget the trailing backslash): 
     48; Example for recursively deleting the installation directory: 
    3349; 
    34 ; delete -sf "$InstallDir$\" 
     50del -sf "$InstallDir$\" 
    3551 
    3652[Registry_uninstall] 
  • CLIENT_DATA/setup32.ins

    r863ab3 r004d28  
    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 $UninstallProgram$ 
     10DefVar $UninstallProgramOld$ 
     11DefVar $IniFile$ 
     12DefVar $IniCfgFile$ 
    1013DefVar $LogDir$ 
    1114DefVar $ProductId$   
     
    1316DefVar $InstallDir$ 
    1417DefVar $ExitCode$ 
     18DefVar $OLD_VERSION$ 
     19DefVar $OLD_CREATOR_TAG$ 
     20DefVar $OLD_RELEASE$ 
    1521 
    1622Set $LogDir$ = "%SystemDrive%\tmp" 
     
    3238; therefore please: only lower letters, no umlauts,  
    3339; no white space use '-' as a seperator 
    34 Set $ProductId$       = "videolan.vlc" 
    3540Set $MinimumSpace$    = "30 MB" 
    3641; the path were we find the product after the installation 
     
    3843; ---------------------------------------------------------------- 
    3944 
     45Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini" 
     46 
    4047if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$)) 
    4148        LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$ 
    42         isFatalError 
     49        isFatalError "No Space" 
    4350        ; Stop process and set installation status to failed 
    4451else 
    4552        comment "Show product picture" 
    46         ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ 
     53        ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$ 
    4754         
    4855        if FileExists("%ScriptPath%\delsub32.ins") 
     
    5158        endif 
    5259         
    53         Message "Installing " + $ProductId$ + " ..." 
     60        Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " ..." 
    5461         
    5562        comment "Start setup program" 
     63        ChangeDirectory "%SCRIPTPATH%" 
    5664        Winbatch_install 
    5765        Sub_check_exitcode 
     
    6977 
    7078[Winbatch_install] 
    71 ; Choose one of the following examples as basis for your installation 
    72 ; You can use $LicenseKey$ var to pass a license key to the installer 
    73 ; 
    7479"$InstallExe$" /S 
    7580 
    7681[Files_install] 
     82; copy the ini file to the InstallDir 
     83copy "$IniCfgFile$" "$InstallDir$" 
     84 
    7785; Example of recursively copying some files into the installation directory: 
    7886; 
  • CLIENT_DATA/uninstall32.ins

    r863ab3 r004d28  
    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 
    99DefVar $UninstallProgram$ 
     10DefVar $UninstallProgramOld$ 
     11DefVar $IniFile$ 
     12DefVar $IniCfgFile$ 
    1013DefVar $LogDir$ 
    1114DefVar $ExitCode$ 
    1215DefVar $ProductId$ 
    1316DefVar $InstallDir$ 
     17DefVar $OLD_VERSION$ 
     18DefVar $OLD_CREATOR_TAG$ 
     19DefVar $OLD_RELEASE$ 
    1420 
    1521Set $LogDir$ = "%SystemDrive%\tmp" 
     
    2834; - Please edit the following values                             - 
    2935; ---------------------------------------------------------------- 
    30 Set $ProductId$       = "videolan.vlc" 
    3136Set $InstallDir$      = "%ProgramFiles32Dir%\VideoLAN\VLC" 
    3237; ---------------------------------------------------------------- 
    3338 
     39Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini" 
    3440 
    3541comment "Show product picture" 
    36 ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ 
     42ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$ 
    3743 
    3844Message "Uninstalling " + $ProductId$ + " ..." 
     
    4248        Sub "%ScriptPath%\delsub32.ins" 
    4349endif 
     50 
  • builder-product.cfg

    ra6888b r004d28  
    33############################ 
    44VENDOR="videolan.org" 
    5 PN="videolan.vlc" 
     5PN="vlc.mediaplayer" 
     6NAME="VLC media player" 
     7DESCRIPTION="VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVD, Audio CD, VCD, and various streaming protocols." 
    68VERSION="2.0.5" 
    79RELEASE="1" 
     
    2527ICON_DL_INDEX=0 
    2628 
     29OPSI_INI_SECTION[0]="X86" 
     30OPSI_INI_OPTION[0]="UninstallProg" 
     31OPSI_INI_VALUE[0]="uninstall.exe" 
Note: See TracChangeset for help on using the changeset viewer.