First try to add a userlogin script to set the profile

This commit is contained in:
Mario Fetka 2013-03-25 20:16:02 +01:00
parent 66ef4e36ea
commit e199723414
5 changed files with 80 additions and 30 deletions

View File

@ -133,8 +133,8 @@ del -sf "$InstallDir64$\"
[LinkFolder_uninstall]
; Example of deleting a folder from AllUsers startmenu:
;
; set_basefolder common_programs
; delete_subfolder $ProductId$
set_basefolder common_programs
delete_subfolder $NAME$
;
; Example of deleting a shortcut from AllUsers desktop:
;

View File

@ -4,21 +4,25 @@
; credits: http://www.opsi.org/en/credits/
[Actions]
Message "Profile Patch for VLC ...."
comment "Did we run this script before ? - and set version stamp in profile"
if getValue("installationstate", getProductMap) = "installed"
comment "Product is installed"
if not (scriptWasExecutedBefore)
comment "loginscript was not run yet "
Files_profile_copy
Registry_currentuser_set
endif
Message "XnViewMP Profile Patch ...."
if GetScriptMode = "LoginSetup"
comment "Product is installed"
Winbatch_profile_init
endif
[Files_profile_copy]
copy "%Scriptpath%\profiles\*.*" "%CurrentAppdataDir%\ACME"
if GetScriptMode = "LoginUninstall"
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"

View File

@ -80,7 +80,7 @@ else
comment "Patch Registry"
Registry_install /32Bit
comment "Create shortcuts"
LinkFolder_install
LinkFolder_install_64
endif
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"
Registry_install /64Bit
comment "Create shortcuts"
LinkFolder_install
LinkFolder_install_64
endif
endif
@ -179,25 +179,59 @@ copy -s "%ScriptPath%\X86_64\XnViewMP\*.*" "$InstallDir64$"
; set "name2" = REG_DWORD:0001
; set "name3" = REG_BINARY:00 af 99 cd
[LinkFolder_install]
[LinkFolder_install_32]
; Example of deleting a folder from AllUsers startmenu:
;
; set_basefolder common_programs
; delete_subfolder $ProductId$
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 $ProductId$
set_basefolder common_programs
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
; name: $ProductId$
; target: <path to the program>
; parameters:
; working_dir: $InstallDir$
; icon_file:
; icon_index:
; parameters: <some_param>
; working_dir: $InstallDir32$
; icon_file: <path to icon file>
; icon_index: 2
; 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:
;

View File

@ -19,7 +19,7 @@ updateScript:
alwaysScript:
onceScript:
customScript:
userLoginScript:
userLoginScript: login.ins
[ProductProperty]
type: unicode
@ -36,4 +36,16 @@ requiredProduct: sereby.aio
requiredStatus: installed
requirementType: before
[ProductDependency]
action: setup
requiredProduct: codeproject.touch
requiredStatus: installed
requirementType: before
[ProductDependency]
action: setup
requiredProduct: horstmuc.inifile
requiredStatus: installed
requirementType: before

View File

@ -3,7 +3,7 @@
############################
VENDOR="xnview.com"
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."
VERSION="0.53"
RELEASE="3"