Code

Changeset 1cd488 in srware.iron


Ignore:
Timestamp:
03/18/2013 01:52:07 PM (7 years ago)
Author:
geos_one
Branches:
master
Children:
2c3fb3
Parents:
cbebcc
git-author:
Mario Fetka <mario.fetka@…> (03/18/2013 01:52:07 PM)
git-committer:
Mario Fetka <mario.fetka@…> (03/18/2013 01:52:07 PM)
Message:

update to new opsi builder template

Files:
4 added
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • CLIENT_DATA/delsub32.ins

    r9813fb r1cd488  
    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$ + "\unins000.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$" /silent /norestart /SUPPRESSMSGBOXES /nocancel 
     43 
     44 
    2645[Winbatch_uninstall] 
    27 "$UninstallProgram$" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- 
     46"$UninstallProgram$" /silent /norestart /SUPPRESSMSGBOXES /nocancel 
     47 
    2848 
    2949[Files_uninstall] 
    30 ; Example for recursively deleting the installation directory (don't forget the trailing backslash): 
     50; Example for recursively deleting the installation directory: 
    3151; 
    32 ; delete -sf "$InstallDir$\" 
     52del -sf "$InstallDir$\" 
    3353 
    3454[Registry_uninstall] 
  • CLIENT_DATA/setup32.ins

    r886af0 r1cd488  
    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$       = "srware.iron" 
    3540Set $MinimumSpace$    = "20 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 
     
    6674        LinkFolder_install 
    6775         
    68         comment "Test for installation success" 
    69         ; Test if software marked as installed in registry 
    70         ; if (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}] DisplayName") = "") 
    71         ;       logError "Fatal: After Installation 32 bit [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}] not found" 
    72         ;       isFatalError 
    73         ; else 
    74         ;       comment "Successful Installation" 
    75         ; endif 
    76  
    7776endif 
    7877 
    7978[Winbatch_install] 
    80 ; Choose one of the following examples as basis for your installation 
    81 ; You can use $LicenseKey$ var to pass a license key to the installer 
    82 ; 
    83 ; === Nullsoft Scriptable Install System ================================================================ 
    84 "$InstallExe$" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- 
     79"$InstallExe$" /sp- /silent /norestart /nocancel /SUPPRESSMSGBOXES 
    8580 
    8681[Files_install] 
     82; copy the ini file to the InstallDir 
     83copy "$IniCfgFile$" "$InstallDir$" 
     84 
    8785; Example of recursively copying some files into the installation directory: 
    8886; 
  • CLIENT_DATA/uninstall32.ins

    r886af0 r1cd488  
    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$       = "srware.iron" 
    3136Set $InstallDir$      = "%ProgramFiles32Dir%\SRWare Iron" 
    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$ + " ..." 
  • builder-product.cfg

    rcbebcc r1cd488  
    44VENDOR="srware.net" 
    55PN="srware.iron" 
    6 VERSION="24.0.1350.0" 
     6NAME="SRWare Iron" 
     7DESCRIPTION="Der Browser der Zukunft" 
     8VERSION="25.0.1400.0" 
    79RELEASE="1" 
    810PRIORITY="0" 
     
    1315TYPE="public" 
    1416 
    15 DL_FILE[0]="1329772954_ncybxklgphj7v8t.jpeg" 
    16 DL_SOURCE[0]="http://softwarez.su/uploads/posts/2012-02/1329772954_ncybxklgphj7v8t.jpeg" 
     17DL_FILE[0]="srware-iron1.png" 
     18DL_SOURCE[0]="http://candidsoftwares.com/wp-content/uploads/2012/05/srware-iron1.png" 
    1719 
    1820DL_FILE[1]="srware_iron-${VERSION}.exe" 
     
    2325# File array index for the image showing while installing the program 
    2426ICON_DL_INDEX=0 
     27 
     28OPSI_INI_SECTION[0]="X86" 
     29OPSI_INI_OPTION[0]="UninstallProg" 
     30OPSI_INI_VALUE[0]="unins000.exe" 
Note: See TracChangeset for help on using the changeset viewer.