create desktop and starmenu entries

This commit is contained in:
Mario Fetka 2013-03-26 11:04:44 +01:00
parent ec574b4476
commit 6a59b23de6
2 changed files with 68 additions and 30 deletions

View File

@ -133,14 +133,14 @@ 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:
; ;
; set_basefolder common_desktopdirectory set_basefolder common_desktopdirectory
; set_subfolder "" set_subfolder ""
; delete_element $ProductId$ delete_element $NAME$
[Sub_check_exitcode] [Sub_check_exitcode]
comment "Test for installation success via exit code" comment "Test for installation success via exit code"

View File

@ -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_32
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
@ -129,39 +129,77 @@ copy -s "%ScriptPath%\X86_64\*.*" "$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 set_link
; name: $ProductId$ name: $NAME$
; target: <path to the program> target: "$InstallDir32$\Imagine.exe"
; parameters: parameters:
; working_dir: $InstallDir$ working_dir: $InstallDir32$
; icon_file: icon_file:
; icon_index: icon_index:
; end_link 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:
; ;
; set_basefolder common_desktopdirectory set_basefolder common_desktopdirectory
; set_subfolder "" set_subfolder ""
; ;
; set_link set_link
; name: $ProductId$ name: $ProductId$
; target: <path to the program> target: "$InstallDir32$\Imagine.exe"
; parameters: <some_param> parameters:
; working_dir: $InstallDir$ working_dir: $InstallDir32$
; icon_file: <path to icon file> icon_file:
; icon_index: 2 icon_index:
; 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: "$InstallDir64$\Imagine.exe"
parameters:
working_dir: $InstallDir64$
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: $NAME$
target: "$InstallDir64$\Imagine.exe"
parameters:
working_dir: $InstallDir64$
icon_file:
icon_index:
end_link
[Sub_check_exitcode] [Sub_check_exitcode]
comment "Test for installation success via exit code" comment "Test for installation success via exit code"