Code

Changeset 1d9229 in icofx.icofx


Ignore:
Timestamp:
06/19/2019 07:24:58 AM (6 months ago)
Author:
isnoguter
Branches:
master
Parents:
a6ea31
git-author:
Dominik Daehn <isnoguter@…> (06/19/2019 07:24:58 AM)
git-committer:
Dominik Daehn <isnoguter@…> (06/19/2019 07:24:58 AM)
Message:

change LogDir?; add ProductProperty? desktoplink, custom-post-install, custom-post-uninstall

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CLIENT_DATA/delsub32.ins

    r76c06e r1d9229  
    4141LinkFolder_uninstall 
    4242 
     43DefVar $Property_CustomPostUninstall$ 
     44Set $Property_CustomPostUninstall$ = getProductProperty("custom-post-uninstall","none") 
     45if not ($Property_CustomPostUninstall$ = "none") 
     46        comment "Include custom post uninstall file" 
     47        if FileExists("%ScriptPath%\custom\" + $Property_CustomPostUninstall$) 
     48                sub_CustomPostUninstall 
     49        else 
     50                LogError "Include script NOT exists (" + $Property_CustomPostUninstall$ +")" 
     51        endif 
     52endif 
     53 
    4354[Winbatch_uninstall_old] 
    4455"$UninstallProgramOld$" /SILENT 
     
    6576; Example of deleting a shortcut from AllUsers desktop: 
    6677; 
    67 ; set_basefolder common_desktopdirectory 
    68 ; set_subfolder "" 
    69 ; delete_element $ProductId$ 
     78set_basefolder common_desktopdirectory 
     79set_subfolder "" 
     80delete_element $NAME$ 
     81 
     82[sub_CustomPostUninstall] 
     83include_insert "%ScriptPath%\custom\" + $Property_CustomPostUninstall$ 
    7084 
    7185[Sub_check_exitcode] 
  • CLIENT_DATA/setup32.ins

    r5450ce r1d9229  
    2020DefVar $OLD_RELEASE$ 
    2121 
    22 Set $LogDir$ = "%SystemDrive%\tmp" 
     22;Property Variables 
     23DefVar $Property_CustomPostInstall$ 
     24DefVar $Property_DesktopLink$ 
     25 
     26Set $LogDir$ = "%opsiLogDir%" 
    2327 
    2428; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh 
     
    7074        comment "Patch Registry" 
    7175        Registry_install /32Bit 
     76                 
     77        Set $Property_DesktopLink$ = GetProductProperty("DesktopLink","false") 
     78        if ($Property_DesktopLink$ = "true")             
     79                comment "Create shortcuts" 
     80                LinkFolder_install 
     81        endif 
    7282         
    73         comment "Create shortcuts" 
    74         LinkFolder_install 
     83        Set $Property_CustomPostInstall$ = getProductProperty("custom-post-install","none") 
     84        if not ($Property_CustomPostInstall$ = "none") 
     85                comment "Include custom post install file" 
     86                if FileExists("%ScriptPath%\custom\" + $Property_CustomPostInstall$) 
     87                        sub_CustomPostInstall 
     88                else 
     89                        LogError "Include script NOT exists (" + $Property_CustomPostInstall$ +")" 
     90                endif 
     91        endif 
    7592         
    7693endif 
     
    117134; Example of creating an shortcut to the installed exe on AllUsers desktop: 
    118135; 
    119 ; set_basefolder common_desktopdirectory 
    120 ; set_subfolder "" 
     136set_basefolder common_desktopdirectory 
     137set_subfolder "" 
    121138; 
    122 ; set_link 
    123 ;       name: $ProductId$ 
    124 ;       target: <path to the program> 
    125 ;       parameters: <some_param> 
    126 ;       working_dir: $InstallDir$ 
    127 ;       icon_file: <path to icon file> 
    128 ;       icon_index: 2 
    129 ; end_link 
     139set_link 
     140        name: $NAME$ 
     141        target: "$InstallDir$\IcoFX.exe" 
     142        parameters: 
     143        working_dir: $InstallDir$ 
     144        icon_file: 
     145        icon_index: 
     146end_link 
     147 
     148[sub_CustomPostInstall] 
     149include_insert "%ScriptPath%\custom\" + $Property_CustomPostInstall$ 
    130150 
    131151[Sub_check_exitcode] 
  • CLIENT_DATA/uninstall32.ins

    r5450ce r1d9229  
    1919DefVar $OLD_RELEASE$ 
    2020 
    21 Set $LogDir$ = "%SystemDrive%\tmp" 
     21Set $LogDir$ = "%opsiLogDir%" 
    2222 
    2323; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh 
  • OPSI/control

    r5efb4b r1d9229  
    3131default: ["system specific"] 
    3232 
     33[ProductProperty] 
     34type: bool 
     35name: desktoplink 
     36description: Show Desktop Link on/off 
     37default: False 
     38 
     39[ProductProperty] 
     40type: unicode 
     41name: custom-post-install 
     42multivalue: False 
     43editable: True 
     44description: Define filename for include script in custom directory after installation 
     45values: ["none"] 
     46default: ["none"] 
     47 
     48[ProductProperty] 
     49type: unicode 
     50name: custom-post-uninstall 
     51multivalue: False 
     52editable: True 
     53description: Define filename for include script in custom directory after uninstallation 
     54values: ["none"] 
     55default: ["none"] 
     56 
    3357[ProductDependency] 
    3458action: setup 
Note: See TracChangeset for help on using the changeset viewer.