First try to add a userlogin script to set the profile
This commit is contained in:
parent
66ef4e36ea
commit
e199723414
@ -133,8 +133,8 @@ del -sf "$InstallDir64$\"
|
|||||||
[LinkFolder_uninstall]
|
[LinkFolder_uninstall]
|
||||||
; Example of deleting a folder from AllUsers startmenu:
|
; Example of deleting a folder from AllUsers startmenu:
|
||||||
;
|
;
|
||||||
; set_basefolder common_programs
|
set_basefolder common_programs
|
||||||
; delete_subfolder $ProductId$
|
delete_subfolder $NAME$
|
||||||
;
|
;
|
||||||
; Example of deleting a shortcut from AllUsers desktop:
|
; Example of deleting a shortcut from AllUsers desktop:
|
||||||
;
|
;
|
||||||
|
@ -4,21 +4,25 @@
|
|||||||
; credits: http://www.opsi.org/en/credits/
|
; credits: http://www.opsi.org/en/credits/
|
||||||
|
|
||||||
[Actions]
|
[Actions]
|
||||||
Message "Profile Patch for VLC ...."
|
Message "XnViewMP Profile Patch ...."
|
||||||
|
if GetScriptMode = "LoginSetup"
|
||||||
comment "Did we run this script before ? - and set version stamp in profile"
|
comment "Product is installed"
|
||||||
if getValue("installationstate", getProductMap) = "installed"
|
Winbatch_profile_init
|
||||||
comment "Product is installed"
|
|
||||||
if not (scriptWasExecutedBefore)
|
|
||||||
comment "loginscript was not run yet "
|
|
||||||
Files_profile_copy
|
|
||||||
Registry_currentuser_set
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
[Files_profile_copy]
|
if GetScriptMode = "LoginUninstall"
|
||||||
copy "%Scriptpath%\profiles\*.*" "%CurrentAppdataDir%\ACME"
|
comment "Product was uninstalled"
|
||||||
|
Files_profile_del
|
||||||
|
endif
|
||||||
|
|
||||||
|
[Winbatch_profile_init]
|
||||||
|
mkdir "%CurrentAppdataDir%\XnViewMP"
|
||||||
|
touch "%CurrentAppdataDir%\XnViewMP\xnview.ini"
|
||||||
|
inifile "%CurrentAppdataDir%\XnViewMP\xnview.ini" [Start] updater=0
|
||||||
|
inifile "%CurrentAppdataDir%\XnViewMP\xnview.ini" [Start] otherFlag=0
|
||||||
|
inifile "%CurrentAppdataDir%\XnViewMP\xnview.ini" [Start] dbFlag=0
|
||||||
|
inifile "%CurrentAppdataDir%\XnViewMP\xnview.ini" [Start] language=
|
||||||
|
|
||||||
|
[Files_profile_del]
|
||||||
|
del -s -f "%CurrentAppdataDir%\XnViewMP"
|
||||||
|
|
||||||
[Registry_currentuser_set]
|
|
||||||
openkey [HKCU\Software\ACME]
|
|
||||||
set "show_greeting_window" = "no"
|
|
||||||
|
@ -80,7 +80,7 @@ else
|
|||||||
comment "Patch Registry"
|
comment "Patch Registry"
|
||||||
Registry_install /32Bit
|
Registry_install /32Bit
|
||||||
comment "Create shortcuts"
|
comment "Create shortcuts"
|
||||||
LinkFolder_install
|
LinkFolder_install_64
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
|
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
|
||||||
@ -94,7 +94,7 @@ else
|
|||||||
comment "Patch Registry"
|
comment "Patch Registry"
|
||||||
Registry_install /64Bit
|
Registry_install /64Bit
|
||||||
comment "Create shortcuts"
|
comment "Create shortcuts"
|
||||||
LinkFolder_install
|
LinkFolder_install_64
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
@ -179,25 +179,59 @@ copy -s "%ScriptPath%\X86_64\XnViewMP\*.*" "$InstallDir64$"
|
|||||||
; set "name2" = REG_DWORD:0001
|
; set "name2" = REG_DWORD:0001
|
||||||
; set "name3" = REG_BINARY:00 af 99 cd
|
; set "name3" = REG_BINARY:00 af 99 cd
|
||||||
|
|
||||||
[LinkFolder_install]
|
[LinkFolder_install_32]
|
||||||
; Example of deleting a folder from AllUsers startmenu:
|
; Example of deleting a folder from AllUsers startmenu:
|
||||||
;
|
;
|
||||||
; set_basefolder common_programs
|
set_basefolder common_programs
|
||||||
; delete_subfolder $ProductId$
|
delete_subfolder $NAME$
|
||||||
;
|
;
|
||||||
; Example of creating an shortcut to the installed exe in AllUsers startmenu:
|
; Example of creating an shortcut to the installed exe in AllUsers startmenu:
|
||||||
;
|
;
|
||||||
; set_basefolder common_programs
|
set_basefolder common_programs
|
||||||
; set_subfolder $ProductId$
|
set_subfolder $NAME$
|
||||||
|
|
||||||
|
set_link
|
||||||
|
name: $NAME$
|
||||||
|
target: xnview.exe
|
||||||
|
parameters:
|
||||||
|
working_dir: $InstallDir$
|
||||||
|
icon_file:
|
||||||
|
icon_index:
|
||||||
|
end_link
|
||||||
|
;
|
||||||
|
; Example of creating an shortcut to the installed exe on AllUsers desktop:
|
||||||
|
;
|
||||||
|
; set_basefolder common_desktopdirectory
|
||||||
|
; set_subfolder ""
|
||||||
;
|
;
|
||||||
; set_link
|
; set_link
|
||||||
; name: $ProductId$
|
; name: $ProductId$
|
||||||
; target: <path to the program>
|
; target: <path to the program>
|
||||||
; parameters:
|
; parameters: <some_param>
|
||||||
; working_dir: $InstallDir$
|
; working_dir: $InstallDir32$
|
||||||
; icon_file:
|
; icon_file: <path to icon file>
|
||||||
; icon_index:
|
; icon_index: 2
|
||||||
; end_link
|
; end_link
|
||||||
|
|
||||||
|
[LinkFolder_install_64]
|
||||||
|
; Example of deleting a folder from AllUsers startmenu:
|
||||||
|
;
|
||||||
|
set_basefolder common_programs
|
||||||
|
delete_subfolder $NAME$
|
||||||
|
;
|
||||||
|
; Example of creating an shortcut to the installed exe in AllUsers startmenu:
|
||||||
|
;
|
||||||
|
set_basefolder common_programs
|
||||||
|
set_subfolder $NAME$
|
||||||
|
|
||||||
|
set_link
|
||||||
|
name: $NAME$
|
||||||
|
target: xnview.exe
|
||||||
|
parameters:
|
||||||
|
working_dir: $InstallDir64$
|
||||||
|
icon_file:
|
||||||
|
icon_index:
|
||||||
|
end_link
|
||||||
;
|
;
|
||||||
; Example of creating an shortcut to the installed exe on AllUsers desktop:
|
; Example of creating an shortcut to the installed exe on AllUsers desktop:
|
||||||
;
|
;
|
||||||
|
14
OPSI/control
14
OPSI/control
@ -19,7 +19,7 @@ updateScript:
|
|||||||
alwaysScript:
|
alwaysScript:
|
||||||
onceScript:
|
onceScript:
|
||||||
customScript:
|
customScript:
|
||||||
userLoginScript:
|
userLoginScript: login.ins
|
||||||
|
|
||||||
[ProductProperty]
|
[ProductProperty]
|
||||||
type: unicode
|
type: unicode
|
||||||
@ -36,4 +36,16 @@ requiredProduct: sereby.aio
|
|||||||
requiredStatus: installed
|
requiredStatus: installed
|
||||||
requirementType: before
|
requirementType: before
|
||||||
|
|
||||||
|
[ProductDependency]
|
||||||
|
action: setup
|
||||||
|
requiredProduct: codeproject.touch
|
||||||
|
requiredStatus: installed
|
||||||
|
requirementType: before
|
||||||
|
|
||||||
|
[ProductDependency]
|
||||||
|
action: setup
|
||||||
|
requiredProduct: horstmuc.inifile
|
||||||
|
requiredStatus: installed
|
||||||
|
requirementType: before
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
############################
|
############################
|
||||||
VENDOR="xnview.com"
|
VENDOR="xnview.com"
|
||||||
PN="xnview.xnviewmp"
|
PN="xnview.xnviewmp"
|
||||||
NAME="XnView Multi Plattform"
|
NAME="XnView MP"
|
||||||
DESCRIPTION="XnViewMP is XnView successor, it's a powerfull cross-platform multimedia browser, viewer and converter. Compatible with more than 500 image formats."
|
DESCRIPTION="XnViewMP is XnView successor, it's a powerfull cross-platform multimedia browser, viewer and converter. Compatible with more than 500 image formats."
|
||||||
VERSION="0.53"
|
VERSION="0.53"
|
||||||
RELEASE="3"
|
RELEASE="3"
|
||||||
|
Loading…
Reference in New Issue
Block a user