Changeset 950 for opsi/products


Ignore:
Timestamp:
Jun 18, 2011, 11:42:56 PM (13 years ago)
Author:
joergs
Message:

adapted for Citrix XenServer Tools

Location:
opsi/products/xenserver-tools
Files:
1 added
6 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • opsi/products/xenserver-tools/CLIENT_DATA/delsub.ins

    r949 r950  
    55
    66
    7 Set $MsiId32$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
    8 Set $UninstallProgram32$ = $InstallDir32$ + "\uninstall.exe"
     7;Set $MsiId32$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
     8;Set $MsiId32$ = 'Citrix XenTools'
     9Set $UninstallProgram32$ = $InstallDir32$ + "\uninstaller.exe"
    910
    10 Set $MsiId64$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
    11 Set $UninstallProgram32$ = $InstallDir64$ + "\uninstall.exe"
     11    if FileExists($UninstallProgram32$)
     12        comment "Uninstall program found (32 bit), starting uninstall"
     13        Winbatch_uninstall_32
     14        sub_check_exitcode
     15        ExitWindows /Reboot
     16    endif
     17
     18    if FileExists($UninstallProgram64$)
     19        comment "Uninstall program found (64 bit), starting uninstall"
     20        Winbatch_uninstall_64
     21        sub_check_exitcode
     22        ExitWindows /Reboot
     23    endif
     24
     25
     26;Set $MsiId64$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
     27;Set $MsiId64$ = 'Citrix XenTools'
     28Set $UninstallProgram64$ = $InstallDir64$ + "\uninstaller.exe"
    1229
    1330if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
    1431        Message "Uninstalling " + $ProductId$ + " 32 Bit..."
    1532
    16         if FileExists($UninstallProgram32$)
    17                 comment "Uninstall program found, starting uninstall"
    18                 Winbatch_uninstall_32
    19                 sub_check_exitcode
    20         endif
     33;       if FileExists($UninstallProgram32$)
     34;               comment "Uninstall program found, starting uninstall"
     35;               Winbatch_uninstall_32
     36;               sub_check_exitcode
     37;       endif
    2138
    2239        if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId32$ + "] DisplayName") = "")
     
    3552        Message "Uninstalling " + $ProductId$ + " 64 Bit..."
    3653
    37         if FileExists($UninstallProgram64$)
    38                 comment "Uninstall program found, starting uninstall"
    39                 Winbatch_uninstall_64
    40                 sub_check_exitcode
    41         endif
     54;       if FileExists($UninstallProgram64$)
     55;               comment "Uninstall program found, starting uninstall"
     56;               Winbatch_uninstall_64
     57;               sub_check_exitcode
     58;       endif
    4259
    4360        if not (GetRegistryStringValue64("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId64$ + "] DisplayName") = "")
     
    6178; === Nullsoft Scriptable Install System ================================================================
    6279; "$UninstallProgram32$" /S
    63 ;
     80"$UninstallProgram32$" /S /norestart
     81
    6482; === Inno Setup ========================================================================================
    6583; "$UninstallProgram32$" /silent /norestart
     
    7896;
    7997; === Nullsoft Scriptable Install System ================================================================
    80 ; "$UninstallProgram64$" /S
    81 ;
     98; "$UninstallProgram64$" /S
     99"$UninstallProgram64$" /S /norestart
     100
    82101; === Inno Setup ========================================================================================
    83102; "$UninstallProgram64$" /silent /norestart
  • opsi/products/xenserver-tools/CLIENT_DATA/setup.ins

    r949 r950  
    3535; therefore please: only lower letters, no umlauts,
    3636; no white space use '-' as a seperator
    37 Set $ProductId$       = "opsi-template"
     37Set $ProductId$       = "xenserver-tools"
    3838Set $MinimumSpace$    = "1 MB"
    3939; the path were we find the product after the installation
    40 Set $InstallDir32$      = "%ProgramFiles32Dir%\<path to the product>"
    41 Set $InstallDir64$      = "%ProgramFiles64Dir%\<path to the product>"
     40Set $InstallDir32$      = "%ProgramFiles32Dir%\Citrix\XenTools"
     41Set $InstallDir64$      = "%ProgramFiles64Dir%\Citrix\XenTools"
    4242Set $LicenseRequired$ = "false"
    4343Set $LicensePool$     = "p_" + $ProductId$
     
    8989                LinkFolder_install
    9090        endif
     91
     92    ExitWindows /Reboot
    9193       
    9294endif
     
    98100; === Nullsoft Scriptable Install System ================================================================
    99101; "%ScriptPath%\Setup.exe" /S
     102%ScriptPath%/xensetup.exe /S /norestart
     103
    100104;
    101105; === MSI package =======================================================================================
     
    129133; === Nullsoft Scriptable Install System ================================================================
    130134; "%ScriptPath%\Setup.exe" /S
     135%ScriptPath%/xensetup.exe /S /norestart
     136
    131137;
    132138; === MSI package =======================================================================================
  • opsi/products/xenserver-tools/CLIENT_DATA/uninstall.ins

    r949 r950  
    3030; - Please edit the following values                             -
    3131; ----------------------------------------------------------------
    32 Set $ProductId$       = "opsi-template"
    33 Set $InstallDir32$      = "%ProgramFiles32Dir%\<path to the product>"
    34 Set $InstallDir64$      = "%ProgramFiles64Dir%\<path to the product>"
     32Set $ProductId$       = "xenserver-tools"
     33Set $InstallDir32$      = "%ProgramFiles32Dir%\Citrix\XenTools"
     34Set $InstallDir64$      = "%ProgramFiles64Dir%\Citrix\XenTools"
    3535Set $LicenseRequired$ = "false"
    3636Set $LicensePool$     = "p_" + $ProductId$
  • opsi/products/xenserver-tools/OPSI/control

    r949 r950  
    11[Package]
    2 version: 1
     2version: 4
    33depends:
    44incremental: False
     
    66[Product]
    77type: localboot
    8 id: opsi-template
    9 name: opsi template product
    10 description: A template for opsi products
    11 advice:
    12 version: 4.0
     8id: xenserver-tools
     9name: Citrix XenServer Client Tools
     10description: Client Tools für den Citrix XenServer
     11advice: reboot required
     12version: 5.6.0
    1313priority: 0
    1414licenseRequired: False
     
    2222userLoginScript:
    2323
    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"]
     24[Changelog]
     25xenserver-tools (5.6.0-1) testing; urgency=low
    3226
     27  * Initial package
     28
     29 -- Jörg Steffens <packager@dass-it.de>  Sat, 18 Jun 2011 21:19:43 +0000
     30
     31
     32
     33
  • opsi/products/xenserver-tools/OPSI/postinst

    r949 r950  
    1 #! /bin/sh
     1#! /bin/bash
    22#
    3 # postinst script for softprod
    4 # This script executes after unpacking files from that archive and registering the product at the server.
     3# postinst script
     4# This script executes after unpacking files from that archive and registering the product at the depot.
    55#
    66# The following environment variables can be used to obtain information about the current installation:
  • opsi/products/xenserver-tools/OPSI/preinst

    r949 r950  
    1 #! /bin/sh
     1#! /bin/bash
    22#
    3 # preinst script for softprod
     3# preinst script
    44# This script executes before that package will be unpacked from its archive file.
    55#
Note: See TracChangeset for help on using the changeset viewer.